许成详 6 years ago
parent
commit
23a3fb2489

+ 1
- 1
dist/index.html View File

1
-<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><link rel=stylesheet href=//at.alicdn.com/t/font_775069_dwqa9wy3lkh.css><link rel="shortcut icon" href=favorite.ico><title>城的空间后台管理系统</title><link href=./static/css/app.997396bafac1fcf11c0eff9e4b1e775e.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.71fd787520fc12b02935.js></script><script type=text/javascript src=./static/js/app.b52aa2b0fa79bb077f8f.js></script></body></html>
1
+<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><link rel=stylesheet href=//at.alicdn.com/t/font_775069_dwqa9wy3lkh.css><link rel="shortcut icon" href=favorite.ico><title>城的空间后台管理系统</title><link href=./static/css/app.9d9fc4874482f8e3281ef69bfb280e40.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.71fd787520fc12b02935.js></script><script type=text/javascript src=./static/js/app.1c2716965433abe100fe.js></script></body></html>

+ 17
- 5
src/pages/system/marketingActivities/listOfLotteryActivities/edit.vue View File

84
                         <img :src="item.MiniPic" style="width:100%;height:100%;object-fit: contain;">
84
                         <img :src="item.MiniPic" style="width:100%;height:100%;object-fit: contain;">
85
                       </a>
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
-                      <el-button
87
+                      <!-- <el-button
88
                         v-if="item.currentImg !== ''"
88
                         v-if="item.currentImg !== ''"
89
                         size="mini"
89
                         size="mini"
90
                         @click="resetCurrentImg(item, index)"
90
                         @click="resetCurrentImg(item, index)"
91
-                        type="success">重置</el-button>
91
+                        type="success">重置</el-button> -->
92
                     </div>
92
                     </div>
93
                   </div>
93
                   </div>
94
                 </div>
94
                 </div>
96
               <li class="flex-h">
96
               <li class="flex-h">
97
                 <span>模板背景图:</span>
97
                 <span>模板背景图:</span>
98
                 <div class="flex-item">
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
                   </div>
110
                   </div>
103
                 </div>
111
                 </div>
104
               </li>
112
               </li>
1202
       if (!this.isread) {
1210
       if (!this.isread) {
1203
         item.currentImg = ''
1211
         item.currentImg = ''
1204
         if (this.templateActiveIndex === index) this.postData.Imgs = []
1212
         if (this.templateActiveIndex === index) this.postData.Imgs = []
1213
+        this.$refs['templateImg' + index][0].value = ''
1205
       }
1214
       }
1206
     },
1215
     },
1207
     addPrize () { // 新增奖品
1216
     addPrize () { // 新增奖品
1247
     border: 1px solid #eee;
1256
     border: 1px solid #eee;
1248
     border-bottom: none;
1257
     border-bottom: none;
1249
   }
1258
   }
1259
+  .currentImg:hover{
1260
+    cursor: pointer;
1261
+  }
1250
 }
1262
 }
1251
 </style>
1263
 </style>