许成详 6 years ago
parent
commit
81c1e81071

+ 35
- 1
src/pages/system/marketingActivities/activitiesList/index.vue View File

@@ -5,6 +5,23 @@
5 5
         <div class="flex-item flex-h">
6 6
           <el-button size="mini" type="success" @click="redirection('addActivities')">新增活动</el-button>
7 7
         </div>
8
+        <ul>
9
+          <li>
10
+            <el-select v-model="CaseId" placeholder="请选择案场">
11
+              <el-option
12
+                key=""
13
+                label="不限案场"
14
+                value="">
15
+              </el-option>
16
+              <el-option
17
+                v-for="item in cases"
18
+                :key="item.CaseId"
19
+                :label="item.CaseName"
20
+                :value="item.CaseId">
21
+              </el-option>
22
+            </el-select>
23
+          </li>
24
+        </ul>
8 25
         <el-button
9 26
           size="mini"
10 27
           type="primary" @click="clickList">搜索</el-button>
@@ -87,6 +104,7 @@
87 104
   </div>
88 105
 </template>
89 106
 <script>
107
+import { mapState } from 'vuex'
90 108
 export default {
91 109
   data () {
92 110
     return {
@@ -102,7 +120,8 @@ export default {
102 120
       }],
103 121
       value: '10', // 一页多少数据
104 122
       tableData: [],
105
-      postData: { // 表格搜索条件 //caseid: '', // 案场id
123
+      postData: { // 表格搜索条件
124
+        caseid: '', // 案场id
106 125
         page: 1, // 当前页码
107 126
         pageSize: 10, // 请求数据量
108 127
       },
@@ -110,6 +129,21 @@ export default {
110 129
       total: 0 // 数据条数
111 130
     }
112 131
   },
132
+  computed: {
133
+    ...mapState({
134
+      cases: x => x.app.cases.list,
135
+      defaultCaseId: x => x.app.cases.default,
136
+      clientUrl: x => x.app.clientUrl,
137
+    }),
138
+    CaseId: {
139
+      get () {
140
+        return this.postData.caseid || this.defaultCaseId
141
+      },
142
+      set (val) {
143
+        this.postData.caseid = val
144
+      }
145
+    }
146
+  },
113 147
   mounted () {
114 148
     this.getList()
115 149
   },

+ 10
- 9
src/pages/system/marketingActivities/listOfLotteryActivities/edit.vue View File

@@ -1,6 +1,9 @@
1 1
 <template>
2 2
   <div class="subPage flex-h">
3
-    <div class="flex-item" style="margin:20px;">
3
+    <div class="img">
4
+      <img v-if="templateList.length" :src="templateList[templateActiveIndex].TplImg" width="100%" alt="">
5
+    </div>
6
+    <div class="flex-item">
4 7
       <nav class="flex-h">
5 8
         <a class="flex-item" :class="{'active': activeIndex === 0}" @click="activeIndex = 0">基础信息</a>
6 9
         <a class="flex-item" :class="{'active': activeIndex === 1}" @click="activeIndex = 1">奖品信息</a>
@@ -290,7 +293,7 @@
290 293
                     :disabled="!editAll || isread"
291 294
                     size="mini"
292 295
                     type="success"
293
-                    @click="addPrizeItemPhone(scope.$index)">编辑</el-button>
296
+                    @click="addPrizeItemPhone(scope.$index)">内定设置</el-button>
294 297
                 </template>
295 298
               </el-table-column>
296 299
             </el-table>
@@ -309,9 +312,6 @@
309 312
           @click="rebackList">取消</el-button>
310 313
       </div>
311 314
     </div>
312
-    <div class="img" style="margin-left:0px;margin-right:20px;">
313
-      <img v-if="templateList.length" :src="templateList[templateActiveIndex].TplImg" width="100%" alt="">
314
-    </div>
315 315
     <el-dialog
316 316
       :title="editPrizeOff ? '编辑奖品' : '新增奖品'"
317 317
       :visible.sync="centerDialogVisible"
@@ -347,7 +347,7 @@
347 347
               <span style="line-height:40px;font-size:11px;color:#ccc;">(选择“否”即为“谢谢参与”奖项)</span>
348 348
             </div>
349 349
           </li>
350
-          <li class="flex-h" style="width:50%;float:left;" v-if="addPrizeInfo.PrizeType === 'third' && addPrizeInfo.IsReality === 1">
350
+          <li class="flex-h" style="width:50%;float:left;" v-if="addPrizeInfo.PrizeType === 'third'">
351 351
             <span>奖品名称:<em>*</em></span>
352 352
             <div class="flex-item">
353 353
               <div style="width: 200px;">
@@ -848,11 +848,11 @@ export default {
848 848
       this.$router.push({ name: 'listOfLotteryActivities' })
849 849
     },
850 850
     submitLuckdrawData () { // 提交活动信息
851
+      if (!this.checkData()) {
852
+        return false
853
+      }
851 854
       if (this.submitOff) {
852 855
         this.submitOff = false
853
-        if (!this.checkData()) {
854
-          return false
855
-        }
856 856
         this.postData.ShareAddNum = this.postData.ShareAddNum - 0
857 857
         this.postData.LuckdrawNum = this.postData.LuckdrawNum - 0
858 858
         if (!this.postData.IsInternalDefault) {
@@ -865,6 +865,7 @@ export default {
865 865
             if (this.postData.Prizes[a].VerificationStart === '') {
866 866
               delete this.postData.Prizes[a].VerificationStart
867 867
               delete this.postData.Prizes[a].VerificationEnd
868
+              this.postData.Prizes[a].ValidDays = this.postData.Prizes[a].ValidDays - 0
868 869
             } else {
869 870
               delete this.postData.Prizes[a].ValidDays
870 871
             }

+ 3
- 3
src/pages/system/marketingActivities/snapUpList/edit.vue View File

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <div class="subPage flex-h">
3 3
     <div class="img">
4
-      <img v-if="templateList.length" :src="templateList[templateActiveIndex].ModelImgUrl" width="100%" alt="">
4
+      <img v-if="templateList.length" :src="templateList[templateActiveIndex].ModelLargeImgUrl" width="100%" alt="">
5 5
     </div>
6 6
     <div class="flex-item">
7 7
       <h1>基本信息</h1>
@@ -84,7 +84,7 @@
84 84
                 </div>
85 85
               </li>
86 86
               <li class="flex-h">
87
-                <span>活动说明:</span>
87
+                <span>活动说明:<em>*</em></span>
88 88
                 <div class="flex-item">
89 89
                   <div>
90 90
                     <quill-editor
@@ -282,7 +282,7 @@ export default {
282 282
       if (this.postData.FlashBuyName === '') {
283 283
         this.$message({
284 284
           type: 'error',
285
-          message: '活动名称不能为空'
285
+          message: '活动说明不能为空'
286 286
         })
287 287
         return false
288 288
       }