fix:数字货币 只保留 USDT TRC20 和 USDT ERC20

This commit is contained in:
2025-09-15 17:04:06 +08:00
parent 5ae2c56b19
commit 878503d685

View File

@ -258,6 +258,11 @@ export default {
this.bankImg1 = bank.bank_img_1 ? ({url: this.imgBaseUrl + bank.bank_img_1}) : {} this.bankImg1 = bank.bank_img_1 ? ({url: this.imgBaseUrl + bank.bank_img_1}) : {}
this.show = false; this.show = false;
this.$refs.alertDialog.open(); this.$refs.alertDialog.open();
if (this.current === 2){
this.getUSDTCurrency()
}else {
this.getCurrency()
}
}, },
closeDialog() { closeDialog() {
this.show = true; 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() { async handleDeleteBank() {
uni.showModal({ uni.showModal({
content: this.$t('modal.deleteBankCardContent'), content: this.$t('modal.deleteBankCardContent'),
@ -441,7 +456,6 @@ export default {
async created() { async created() {
await this.getImgPathData(); await this.getImgPathData();
this.getBankListData(); this.getBankListData();
this.getCurrency();
}, },
components: { components: {
Segmented, Segmented,