Browse Source

修复部分提现bug

wzy 3 months ago
parent
commit
ec26b39360
1 changed files with 8 additions and 2 deletions
  1. 8 2
      src/views/finance/withdrawal/components/DetailModal.vue

+ 8 - 2
src/views/finance/withdrawal/components/DetailModal.vue

@@ -223,7 +223,11 @@ export default {
         summaryNotHsbAmount: ''
       },
       //  身份证信息
-      cardData: {}
+      cardData: {
+        name:"",
+        idCard:"",
+        phone:""
+      }
     }
   },
   methods: {
@@ -284,7 +288,9 @@ export default {
     // 单独用来请求提现的身份证以及手机号姓名等
     async getWithdrawalInfo(id) {
       let { data } = await getWithdrawalAccount({ shopIds: id })
-      this.cardData = data[0]
+      if(data.length > 0){
+        this.cardData = data[0]
+      }
     }
   }
 }