增加新模块
This commit is contained in:
@@ -56,7 +56,7 @@
|
||||
</up-input>
|
||||
<view class="amount_">
|
||||
<view>可提现金额:¥{{withdrawAmount}}</view>
|
||||
<view>手续费:{{form.rateAmount}}({{(ruleObj && ruleObj.rate) || 0}}%)</view>
|
||||
<view>手续费:{{form.rateAmount}}({{(ruleObj && ruleObj.rate * 100) || 0}}%)</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -64,9 +64,10 @@
|
||||
<view class="warm_reminder">
|
||||
<view>温馨提示</view>
|
||||
<view>
|
||||
<view>单笔最小提现金额:{{(ruleObj && ruleObj.minAmount) || 0}}</view>
|
||||
<view>单日最大提现金额:{{(ruleObj && ruleObj.dayAmount) || 0}}</view>
|
||||
<view>单日最大提现次数:{{(ruleObj && ruleObj.dayTimes) || 0}}</view>
|
||||
<view>1、提现T+1到账,节假日顺延!</view>
|
||||
<view>2、单笔最小提现金额:{{(ruleObj && ruleObj.minAmount) || 0}}</view>
|
||||
<view>3、单日最大提现金额:{{(ruleObj && ruleObj.dayAmount) || 0}}</view>
|
||||
<view>4、单日最大提现次数:{{(ruleObj && ruleObj.dayTimes) || 0}}</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -151,6 +152,14 @@
|
||||
});
|
||||
return;
|
||||
}
|
||||
const withdrawAmount = this.withdrawAmount;
|
||||
if(!withdrawAmount && withdrawAmount !=="0"){
|
||||
this.$refs.uToastRef.show({
|
||||
type: 'error',
|
||||
message: "可提现余额不足",
|
||||
});
|
||||
return;
|
||||
}
|
||||
delete params.bankName;
|
||||
const resp = await withdrawal(params);
|
||||
if(resp && resp.bizcode === 100){
|
||||
@@ -212,9 +221,13 @@
|
||||
this.bankShowCheck(false);
|
||||
},
|
||||
amountChange(amount){
|
||||
const withdrawAmount = this.withdrawAmount;
|
||||
if(!withdrawAmount && withdrawAmount !=="0"){
|
||||
return;
|
||||
}
|
||||
const rate = this.ruleObj.rate;
|
||||
if(rate && amount){
|
||||
const rateAmount = amount * (rate / 100);
|
||||
const rateAmount = amount * rate;
|
||||
this.form.rateAmount = rateAmount.toFixed(2);
|
||||
this.form.dzAmount = (amount - rateAmount).toFixed(2);
|
||||
}else{
|
||||
|
||||
Reference in New Issue
Block a user