Bläddra i källkod

盲票列表与运营活动列表修改页面显示盲豆数量

DELL 3 år sedan
förälder
incheckning
df0fd2ce14

+ 1 - 1
src/views/business/marketing/add.vue

@@ -267,7 +267,7 @@ export default {
                 refId: ele.refId || ele.goodsId || ele.couponId || ele.id ,
                 prizeType: ele.prizeType,
                 quantity: ele.quantity,
-                value: Number(ele.coinValue),
+                value: Number(ele.value),
               };
             });
           });

+ 6 - 1
src/views/business/marketing/components/AwardsList.vue

@@ -37,7 +37,12 @@
                 </el-image>
               </template>
             </el-table-column>
-            <el-table-column label="奖品名称" prop="title" />
+            <el-table-column label="奖品名称" prop="title" >
+              <template slot-scope="scope">
+                <div v-if="scope.row.prizeType == 'coin' && scope.row.value >= 0">盲豆 x{{scope.row.value}}</div>
+                <div v-else>{{scope.row.title}}</div>
+              </template>
+            </el-table-column>
             <el-table-column label="奖品类型">
               <template slot-scope="scope">
                 <div v-if="scope.row.prizeType == 'goods'">商品</div>

+ 2 - 2
src/views/business/marketing/components/CoinAdd.vue

@@ -64,7 +64,7 @@ export default {
         // quantity: 1,
         title: `盲豆 x${this.coinForm.quantity}`,
         picUrl: publicFileGetUrl + "md.jpeg",
-        coinValue: this.coinForm.quantity,
+        value: this.coinForm.quantity,
         sortWeight: 100
       };
       this.$refs["coinForm"].validate((valid) => {
@@ -91,4 +91,4 @@ export default {
     width: 40px;
   }
 }
-</style>
+</style>

+ 6 - 1
src/views/business/marketing/detail.vue

@@ -63,7 +63,12 @@
                       </el-image>
                     </template>
                   </el-table-column>
-                  <el-table-column label="奖品名称" prop="title" align="center" />
+                  <el-table-column label="奖品名称" prop="title" align="center" >
+                    <template slot-scope="scope">
+                      <div v-if="scope.row.prizeType == 'coin'">盲豆 x{{scope.row.value}}</div>
+                      <div v-else>{{scope.row.title}}</div>
+                    </template>
+                  </el-table-column>
                   <el-table-column label="奖品类型" align="center">
                     <template slot-scope="scope">
                       <div v-if="scope.row.prizeType == 'goods'">商品</div>

+ 7 - 2
src/views/business/ticket/components/AwardsList.vue

@@ -28,7 +28,12 @@
                 </el-image>
               </template>
             </el-table-column>
-            <el-table-column label="奖品名称" prop="title" />
+            <el-table-column label="奖品名称" prop="title" >
+              <template slot-scope="{ row }">
+                <div v-if="row.prizeType == 'coin' && row.value >= 0">盲豆 x{{ row.value }}</div>
+                <div v-else>{{ row.title }}</div>
+              </template>
+            </el-table-column>
             <el-table-column label="奖品类型">
               <template slot-scope="scope">
                 <div v-if="scope.row.prizeType == 'goods'">商品</div>
@@ -198,7 +203,7 @@ export default {
       this.prizeIndex = index;
       this.$emit('handleCommand', e)
     },
-    
+
     // 改变奖级数量
     handleChangeAll(e, item) {
       this.$set(item, "quantity", e);

+ 1 - 1
src/views/business/ticket/detail.vue

@@ -189,4 +189,4 @@ export default {
     }
   }
 }
-</style>
+</style>