|
@@ -79,11 +79,11 @@
|
79
|
79
|
<div class="flex-item">
|
80
|
80
|
<div>
|
81
|
81
|
<div class="drawTemplateItem" v-for="(item,index) in templateList" :key="index">
|
82
|
|
- <a :class="{'active': templateActiveIndex === index}" @click="cutTemplate(index)" @dblclick="dbTemplateClick(index)">
|
|
82
|
+ <a :class="{'active': templateActiveIndex === index}" @click="cutTemplate(index)">
|
83
|
83
|
<input type="file" :ref="'templateImg' + index" hidden @change="templateImgChange(item, $event)">
|
84
|
84
|
<img :src="item.MiniPic" style="width:100%;height:100%;object-fit: contain;">
|
85
|
85
|
</a>
|
86
|
|
- <span style="width:100%;display:block;text-align:center;font-size:11px;color:#ccc;margin-bottom:5px;">(双击更换背景图)</span>
|
|
86
|
+ <!-- <span style="width:100%;display:block;text-align:center;font-size:11px;color:#ccc;margin-bottom:5px;">(双击更换背景图)</span> -->
|
87
|
87
|
<!-- <el-button
|
88
|
88
|
v-if="item.currentImg !== ''"
|
89
|
89
|
size="mini"
|
|
@@ -99,7 +99,13 @@
|
99
|
99
|
<div style="width:300px;text-align:center" v-for="(item,index) in templateList" :key="index" v-if="index === templateActiveIndex">
|
100
|
100
|
<div :style="{height: item.currentImg ? '300px' : '40px'}">
|
101
|
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>
|
|
102
|
+ <!-- <span v-else style="width:100%;line-height:40px;font-size:11px;color:#ccc;text-align:left;display:block;">默认背景图</span> -->
|
|
103
|
+ <el-button
|
|
104
|
+ v-else
|
|
105
|
+ style="float:left;margin-top:5px;"
|
|
106
|
+ size="mini"
|
|
107
|
+ @click="dbTemplateClick(index)"
|
|
108
|
+ type="success">更换背景图</el-button>
|
103
|
109
|
</div>
|
104
|
110
|
<span v-if="item.currentImg" style="width:100%;display:block;text-align:center;font-size:11px;color:#ccc;margin-bottom:5px;">(双击更换背景图)</span>
|
105
|
111
|
<el-button
|
|
@@ -687,6 +693,10 @@ export default {
|
687
|
693
|
usedid: this.$route.query.id || '',
|
688
|
694
|
caseid: this.CaseId,
|
689
|
695
|
}).then((res) => {
|
|
696
|
+ res.list = res.list || []
|
|
697
|
+ for (var n = 0; n < res.list.length; n++) {
|
|
698
|
+ res.list[n].select = true
|
|
699
|
+ }
|
690
|
700
|
this.cardList = res.list
|
691
|
701
|
})
|
692
|
702
|
this.GetCouponList({ // 获取券列表
|
|
@@ -697,6 +707,10 @@ export default {
|
697
|
707
|
usedid: this.$route.query.id || '',
|
698
|
708
|
caseid: this.CaseId,
|
699
|
709
|
}).then((res) => {
|
|
710
|
+ res.list = res.list || []
|
|
711
|
+ for (var n = 0; n < res.list.length; n++) {
|
|
712
|
+ res.list[n].select = true
|
|
713
|
+ }
|
700
|
714
|
this.couponList = res.list
|
701
|
715
|
})
|
702
|
716
|
this.getDrawTemplateList().then((res) => { // 获取活动模板列表
|