Browse Source

修改钱包充值不进行请求多次

master
liaoxinyu 2 years ago
parent
commit
257f404f1c
  1. 21
      src/views/wallet/exchange-assets.vue

21
src/views/wallet/exchange-assets.vue

@ -565,6 +565,9 @@
getEmailCodeLock: false,
JStime: 0,
tiemr: null,
bool:false,
address1:"",
address2:""
};
},
@ -573,7 +576,15 @@
watch: {
//
depositeAdressType() {
this.getDepositeAdress();
this.deposite.address = ""
if(this.depositeAdressType==3&&this.bool==true){
this.getDepositeAdress();
}else{
this.deposite.address = this.address2
}
if(this.depositeAdressType==2){
this.deposite.address = this.address1
}
},
allAssets(val) {
@ -668,6 +679,13 @@
})
.then(data => {
this.deposite.address = data.address;
if(this.depositeAdressType==2){
this.address1 = data.address
}
if(this.depositeAdressType==3){
this.address2 = data.address
this.bool = false
}
})
.catch(err => {});
},
@ -679,6 +697,7 @@
this.deposite.coin_id = item.coin_id;
//
this.getDepositeAdress();
this.bool = true;
$("#deposite").modal("show");
} else {
// this.$message.error(this.$t("wallet.auth"))

Loading…
Cancel
Save