|
|
|
@ -511,7 +511,10 @@ export default { |
|
|
|
JStime: 0, |
|
|
|
tiemr: null, |
|
|
|
// Graph_che: '', |
|
|
|
lang:'' |
|
|
|
lang:'', |
|
|
|
bool:false, |
|
|
|
address1:"", |
|
|
|
address2:"" |
|
|
|
}; |
|
|
|
}, |
|
|
|
|
|
|
|
@ -520,7 +523,15 @@ export default { |
|
|
|
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) { |
|
|
|
@ -619,6 +630,13 @@ export default { |
|
|
|
}) |
|
|
|
.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 => { }); |
|
|
|
}, |
|
|
|
@ -630,6 +648,7 @@ export default { |
|
|
|
this.deposite.coin_id = item.coin_id; |
|
|
|
// 初始化充值地址 |
|
|
|
this.getDepositeAdress(); |
|
|
|
this.bool = true; |
|
|
|
$("#deposite").modal("show"); |
|
|
|
}else{ |
|
|
|
// this.$message.error(this.$t("wallet.auth")) |
|
|
|
|