diff --git a/pages/user/financialInformation/index.vue b/pages/user/financialInformation/index.vue index 5b2c9ec..c11f6aa 100644 --- a/pages/user/financialInformation/index.vue +++ b/pages/user/financialInformation/index.vue @@ -258,6 +258,11 @@ export default { this.bankImg1 = bank.bank_img_1 ? ({url: this.imgBaseUrl + bank.bank_img_1}) : {} this.show = false; this.$refs.alertDialog.open(); + if (this.current === 2){ + this.getUSDTCurrency() + }else { + this.getCurrency() + } }, closeDialog() { this.show = true; @@ -303,6 +308,16 @@ export default { })); } }, + async getUSDTCurrency() { + const res = await getDictByCode('currency_type'); + const usdt = res.data?.filter(i => i.fun_item_code == 'USDT TRC20' || i.fun_item_code == 'USDT ERC20') + if (res && res.code === 0) { + this.currencyOptions = usdt?.map((item) => ({ + text: item.fun_item_text, + value: item.fun_item_code + })); + } + }, async handleDeleteBank() { uni.showModal({ content: this.$t('modal.deleteBankCardContent'), @@ -441,7 +456,6 @@ export default { async created() { await this.getImgPathData(); this.getBankListData(); - this.getCurrency(); }, components: { Segmented,