Browse Source

兑换码为空处理

natasha 1 year ago
parent
commit
eeb4ad68ad
2 changed files with 13 additions and 3 deletions
  1. 1 0
      src/views/cdkey_manage/CreateCdkey.vue
  2. 12 3
      src/views/finance_manage/FlowManage.vue

+ 1 - 0
src/views/cdkey_manage/CreateCdkey.vue

@@ -384,6 +384,7 @@ export default {
     handleCreateCdkey(){
         this.loading = true
         let MethodName = "/ShopServer/Manager/DiscountCodeManager/CreateDiscountCode";
+        this.organizeForm.valid_day_count = this.organizeForm.valid_day_count*1
         let form = this.organizeForm
         let data = form
         getLogin(MethodName, data)

+ 12 - 3
src/views/finance_manage/FlowManage.vue

@@ -194,8 +194,13 @@
                                 未使用
                             </template>
                             <template v-else>
-                                <span class="code" :id="'copy-'+scope.row.discount_code">{{scope.row.discount_code}}</span>
-                                <svg-icon icon-class="copy" class="copy" @click="CopyToClipboard('copy-'+scope.row.discount_code)"></svg-icon>
+                                <template v-if="scope.row.discount_code">
+                                    <span class="code" :id="'copy-'+scope.row.discount_code">{{scope.row.discount_code}}</span>
+                                    <svg-icon icon-class="copy" class="copy" @click="CopyToClipboard('copy-'+scope.row.discount_code)"></svg-icon>
+                                </template>
+                                <template v-else>
+                                    -
+                                </template>
                             </template>
                         </template>
                     </el-table-column>
@@ -414,6 +419,10 @@ export default {
             }
         ], //交易状态列表
         transactionListCss: {
+            0:{
+                bg:'rgb(245, 63, 63)',
+                text:'未支付'
+            },
             1:{
                 bg:'#00B42A',
                 text:'支付成功'
@@ -429,7 +438,7 @@ export default {
             4:{
                 bg:'#FF7D00',
                 text:'已撤回'
-            }
+            },
         },
         goodsTypeList:[
             {