Commit 9983b7c6 by 杨北旺

查看

1 parent a06c5986
......@@ -10,7 +10,7 @@
<div v-for="(item, index) in contentListData" :key="index" class="cell">
<div class="label">{{ item.label }}</div>
<div v-if="item.type == 'text'" class="value">
{{ orderInfo[item.prop] || '--'}}
{{ orderInfo[item.prop] || "--" }}
</div>
<div v-else-if="item.type == 'img'" class="imgBox">
<el-image
......@@ -28,13 +28,19 @@
:key="idx"
class="img-box mar"
>
<el-image
<!-- <el-image
v-if="orderInfo.type == 0"
style="width: 88px; height: 88px"
:src="i"
:preview-src-list="orderInfo[item.prop]"
>
</el-image>
</el-image> -->
<img
@click="showMiniView"
:src="i"
style="width: 88px; height: 88px; cursor: pointer"
v-if="orderInfo.type == 0"
/>
<video
controls
style="
......@@ -113,6 +119,30 @@
</div>
</div>
</div>
<d2-dialog
width="415px"
:isVisible="showImageView"
:noCancel="true"
:isShowFooter="false"
@closeDialog="closeDialog"
>
<div class="img-wrapper">
<img class="bg-icon" src="../../assets/mini_pro_bg.png" />
<div class="min-title">
<span class="ti-posi">{{ orderInfo.title }}</span>
</div>
<div class="image-pannel">
<div class="inner">
<img
class="icon-item"
v-for="(item, index) in orderInfo.contentList"
:key="index"
:src="item"
/>
</div>
</div>
</div>
</d2-dialog>
</d2-container>
</template>
......@@ -166,7 +196,8 @@ export default {
prop: "assignInfos"
}
],
orderInfo: {}
orderInfo: {},
showImageView: false
}
},
......@@ -208,6 +239,12 @@ export default {
},
toOpenPDF(url) {
window.open(url)
},
closeDialog() {
this.showImageView = false
},
showMiniView() {
this.showImageView = true
}
}
}
......@@ -304,4 +341,64 @@ export default {
.publish-info {
margin-top: 16px;
}
.img-wrapper {
height: 812px;
background: #fff;
position: relative;
.bg-icon {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
height: 812px;
}
.min-title {
position: absolute;
top: 0;
left: 0;
right: 0;
height: 88px;
display: flex;
justify-content: center;
align-items: flex-end;
box-sizing: border-box;
padding-bottom: 10px;
.ti-posi {
width: 170px;
height: 24px;
font-weight: 600;
font-size: 17px;
color: #2d2d2e;
text-align: center;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
.image-pannel {
width: 100%;
height: 724px;
overflow: hidden;
position: absolute;
top: 88px;
left: 0;
.inner {
width: 100%;
height: 724px;
overflow-y: scroll;
background: #fff;
.icon-item {
width: 100%;
height: auto;
}
}
.inner::-webkit-scrollbar {
width: 6px !important;
}
}
}
.img-size {
cursor: pointer;
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!