Commit a7c4ef64 by wangzhihui

优化

1 parent 74944c48
......@@ -1548,8 +1548,8 @@ export const evaluationStatusOptMap = {
}
// 合同类型
export const electronicContractTypeOpt = [
{ confId: "1", confValue: "二手车买卖合同" },
{ confId: "3", confValue: "二手车车辆交接单" },
{ confId: "1", confValue: "二手车转让协议" },
{ confId: "3", confValue: "二手车买卖补充协议" },
{ confId: "2", confValue: "二手车代保管协议" },
{ confId: "4", confValue: "确认交接单" }
]
......
......@@ -25,7 +25,9 @@
</video>
<img
class="video-poster"
src="../../../../assets/video-default.png"
:src="
videoImg ? videoImg : '../../../../assets/video-default.png'
"
/>
<div class="mask">
<div
......@@ -209,6 +211,10 @@ export default {
index: {
type: Number,
default: -1
},
videoImg: {
type: String,
default: ""
}
},
watch: {
......@@ -496,7 +502,6 @@ export default {
position: absolute;
width: 100%;
height: 100%;
border-radius: 4px;
}
.video-poster {
position: absolute;
......@@ -507,7 +512,6 @@ export default {
right: 0;
left: 0;
bottom: 0;
border-radius: 4px;
}
.mask {
display: flex;
......@@ -522,7 +526,6 @@ export default {
left: 0;
bottom: 0;
z-index: 999;
border-radius: 4px;
.pic-pane-close {
width: 16px;
height: 16px;
......
......@@ -79,6 +79,20 @@
position: static !important;
border-radius: 4px;
}
::v-deep .video-poster {
position: absolute;
width: 104px;
height: 104px;
object-fit: fill;
top: 0;
right: 0;
left: 0;
bottom: 0;
border-radius: 4px;
}
::v-deep .mask {
border-radius: 4px;
}
::v-deep .pic-box {
margin-right: 16px;
.video-poster {
......
......@@ -27,6 +27,7 @@
:image-url-arr="
detailInfo[item.key] ? detailInfo[item.key] : []
"
:videoImg="detailInfo[item.key][0] + videoStr"
:picOptions="{ ...picOptions, type: item.otherType }"
limit="1"
></glsx-preview>
......@@ -171,6 +172,7 @@ export default {
},
data() {
return {
videoStr: "?x-oss-process=video/snapshot,t_7000,f_jpg,w_800,h_600,m_fast",
picOptions: {
width: "90px",
height: "90px",
......
......@@ -230,6 +230,7 @@ export default {
if (res.data.code == 0) {
this.$message.success("操作成功")
this.visible = true
this.$emit("handleAddConfirm")
} else {
this.$message.error(res.data.msg)
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!