|
@@ -244,10 +244,18 @@
|
|
|
}else{
|
|
|
this.moneyMaxLeng = 8
|
|
|
}
|
|
|
+ try{
|
|
|
+ let money = await calculator({money:val,user_type:this.typeMoney[this.typeIndex].value});
|
|
|
+ this.withdraw_fee = money.data.fee;
|
|
|
+ this.true_money = val - this.withdraw_fee;
|
|
|
+ }catch(e){
|
|
|
+ uni.showToast({
|
|
|
+ title: e,
|
|
|
+ icon:"error"
|
|
|
+ });
|
|
|
+ //TODO handle the exception
|
|
|
+ }
|
|
|
|
|
|
- let money = await calculator({money:val,user_type:this.typeMoney[this.typeIndex].value});
|
|
|
- this.withdraw_fee = money.data.fee;
|
|
|
- this.true_money = val - this.withdraw_fee;
|
|
|
},
|
|
|
// uploadpicW(){
|
|
|
// this.uploadpic(this.qrcodeUrlW);
|