Handy_Cao před 9 měsíci
rodič
revize
3f423a6ea1

+ 8 - 1
src/packages/tss/views/bank/wallet/components/withdraw/Index.vue

@@ -133,7 +133,14 @@ const onChange = (item: Model.HybridReceiverOnboard) => {
     onboard.bank_account = item.bank_account
     showReciver.value = false
     // 切换银行
-    onHibirdChange(item.channel_code)
+    const hybird = hybrids.value.filter(e => e.channel_code === item.channel_code)[0]
+    method_types.value = getMethodTypeKeys(hybird.out_bank_infos)
+    method_type.value = item.method_type
+    // 默认去下面的银行信息
+    channel_banks.value = hybird.out_bank_infos[method_type.value]
+    // 获取信息
+    hyBankName.value = item.bank_name
+    bank_code.value = item.bank_code
 }
 
 const onHibirdChange = (code: string) => {

+ 1 - 0
src/types/model/bank.d.ts

@@ -601,6 +601,7 @@ declare namespace Model {
         channel_code: string // 渠道代码
         name: string // 名称 / 企业名称
         phone_number?: string // 电话号码
+        method_type: string // 方式类型
         receiver_type: string // 接收者类型 // 个人-Individual 企业-Organization
     }
 }