소스 검색

盲票查看详情页面新增显示字段

DELL 3 년 전
부모
커밋
0e89342067
1개의 변경된 파일12개의 추가작업 그리고 2개의 파일을 삭제
  1. 12 2
      src/views/business/ticket/detail.vue

+ 12 - 2
src/views/business/ticket/detail.vue

@@ -26,6 +26,10 @@
           <span :class="loading ? 'el-icon-loading' : ''"></span>
           {{ info && info.salePrice && $numberFormat(info.salePrice) }}元
         </el-form-item>
+        <el-form-item label="划线价:" v-if="info.type == 'online'">
+          <span :class="loading ? 'el-icon-loading' : ''"></span>
+          {{ info && info.originPrice && $numberFormat(info.originPrice) }}元
+        </el-form-item>
         <el-form-item label="盲票总数:">
           <span :class="loading ? 'el-icon-loading' : ''"></span>
           {{ info && info.quantity }}张
@@ -58,6 +62,7 @@
         <div class="prize-top">
           <div>奖级名称:{{ item.name }}</div>
           <div>奖级:{{ item.sort }}</div>
+          <div v-if="info.type == 'online'" >关联奖级:{{ item.awardsLabel }}</div>
           <div>奖级数量:{{ item.quantity }}</div>
         </div>
         <div class="prize-table">
@@ -86,7 +91,12 @@
                 <div v-if="row.prizeType.value == 'coin'">盲豆</div>
               </template>
             </el-table-column>
-            <el-table-column label="排序" prop="title" align="center">
+            <el-table-column v-if="info.type == 'online'" label="奖品数量" prop="quantity" align="center">
+              <template slot-scope="{ row }">
+                <div>{{ row.quantity }}</div>
+              </template>
+            </el-table-column>
+            <el-table-column label="排序" prop="sortWeight" align="center">
               <template slot-scope="{ row }">
                 <div>{{ row.sortWeight }}</div>
               </template>
@@ -134,7 +144,7 @@ export default {
             })
             this.info = {
               ...data,
-              type: JSON.parse(data.type),
+              type: JSON.parse(data.type).value,
               picUrl: picUrl,
               channelTitle: data.channelList.map(item => item.name).join(',')
             };