|
@@ -84,11 +84,11 @@
|
84
|
84
|
<img :src="item.MiniPic" style="width:100%;height:100%;object-fit: contain;">
|
85
|
85
|
</a>
|
86
|
86
|
<span style="width:100%;display:block;text-align:center;font-size:11px;color:#ccc;margin-bottom:5px;">(双击更换背景图)</span>
|
87
|
|
- <el-button
|
|
87
|
+ <!-- <el-button
|
88
|
88
|
v-if="item.currentImg !== ''"
|
89
|
89
|
size="mini"
|
90
|
90
|
@click="resetCurrentImg(item, index)"
|
91
|
|
- type="success">重置</el-button>
|
|
91
|
+ type="success">重置</el-button> -->
|
92
|
92
|
</div>
|
93
|
93
|
</div>
|
94
|
94
|
</div>
|
|
@@ -96,9 +96,17 @@
|
96
|
96
|
<li class="flex-h">
|
97
|
97
|
<span>模板背景图:</span>
|
98
|
98
|
<div class="flex-item">
|
99
|
|
- <div style="width:300px;" :style="{height: this.postData.Imgs.length ? '300px' : '40px'}">
|
100
|
|
- <img v-if="this.postData.Imgs.length" class="contain" :src="this.postData.Imgs[0].ImgUrl" alt="">
|
101
|
|
- <span v-else style="line-height:40px;font-size:11px;color:#ccc;">默认背景图</span>
|
|
99
|
+ <div style="width:300px;text-align:center" v-for="(item,index) in templateList" :key="index" v-if="index === templateActiveIndex">
|
|
100
|
+ <div :style="{height: item.currentImg ? '300px' : '40px'}">
|
|
101
|
+ <img v-if="item.currentImg" class="contain currentImg" :src="item.currentImg" alt="" @dblclick="dbTemplateClick(index)">
|
|
102
|
+ <span v-else style="width:100%;line-height:40px;font-size:11px;color:#ccc;text-align:left;display:block;">默认背景图</span>
|
|
103
|
+ </div>
|
|
104
|
+ <span v-if="item.currentImg" style="width:100%;display:block;text-align:center;font-size:11px;color:#ccc;margin-bottom:5px;">(双击更换背景图)</span>
|
|
105
|
+ <el-button
|
|
106
|
+ v-if="item.currentImg"
|
|
107
|
+ size="mini"
|
|
108
|
+ @click="resetCurrentImg(item, index)"
|
|
109
|
+ type="success">重置</el-button>
|
102
|
110
|
</div>
|
103
|
111
|
</div>
|
104
|
112
|
</li>
|
|
@@ -1202,6 +1210,7 @@ export default {
|
1202
|
1210
|
if (!this.isread) {
|
1203
|
1211
|
item.currentImg = ''
|
1204
|
1212
|
if (this.templateActiveIndex === index) this.postData.Imgs = []
|
|
1213
|
+ this.$refs['templateImg' + index][0].value = ''
|
1205
|
1214
|
}
|
1206
|
1215
|
},
|
1207
|
1216
|
addPrize () { // 新增奖品
|
|
@@ -1247,5 +1256,8 @@ export default {
|
1247
|
1256
|
border: 1px solid #eee;
|
1248
|
1257
|
border-bottom: none;
|
1249
|
1258
|
}
|
|
1259
|
+ .currentImg:hover{
|
|
1260
|
+ cursor: pointer;
|
|
1261
|
+ }
|
1250
|
1262
|
}
|
1251
|
1263
|
</style>
|