增加新模块
This commit is contained in:
+15
-3
@@ -72,6 +72,14 @@ const _sfc_main = {
|
||||
});
|
||||
return;
|
||||
}
|
||||
const withdrawAmount = this.withdrawAmount;
|
||||
if (!withdrawAmount && withdrawAmount !== "0") {
|
||||
this.$refs.uToastRef.show({
|
||||
type: "error",
|
||||
message: "可提现余额不足"
|
||||
});
|
||||
return;
|
||||
}
|
||||
delete params.bankName;
|
||||
const resp = await api_finance.withdrawal(params);
|
||||
if (resp && resp.bizcode === 100) {
|
||||
@@ -133,9 +141,13 @@ const _sfc_main = {
|
||||
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 {
|
||||
@@ -207,7 +219,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
}),
|
||||
m: common_vendor.t($data.withdrawAmount),
|
||||
n: common_vendor.t($data.form.rateAmount),
|
||||
o: common_vendor.t($data.ruleObj && $data.ruleObj.rate || 0),
|
||||
o: common_vendor.t($data.ruleObj && $data.ruleObj.rate * 100 || 0),
|
||||
p: common_vendor.o((...args) => $options.withdrawFun && $options.withdrawFun(...args)),
|
||||
q: common_vendor.t($data.ruleObj && $data.ruleObj.minAmount || 0),
|
||||
r: common_vendor.t($data.ruleObj && $data.ruleObj.dayAmount || 0),
|
||||
@@ -222,7 +234,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
itemHeight: "34",
|
||||
loading: $data.bankLoading
|
||||
}),
|
||||
y: common_vendor.sr("uToastRef", "9f7e0d0e-5")
|
||||
y: common_vendor.sr("uToastRef", "10e87ca8-5")
|
||||
};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
||||
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
<view class="mine_purse_bonus_waithdraw"><view class="waithdraw_header_"><view style="margin-top:10rpx" bindtap="{{b}}"><up-image wx:if="{{a}}" u-i="9f7e0d0e-0" bind:__l="__l" u-p="{{a}}"></up-image></view><view>提现</view><view bindtap="{{c}}">提现记录</view></view><view class="waithdraw_content_"><view class="content_bank_item"><view class="title_comm">提现账户</view><view class="bank_" bindtap="{{f}}"><view>{{d}}</view><up-image wx:if="{{e}}" u-i="9f7e0d0e-1" bind:__l="__l" u-p="{{e}}"></up-image></view></view><view class="content_amout_item"><view class="title_comm">提现金额</view><up-input wx:if="{{j}}" u-s="{{['suffix']}}" bindchange="{{h}}" u-i="9f7e0d0e-2" bind:__l="__l" bindupdateModelValue="{{i}}" u-p="{{j}}"><view slot="suffix"><text>元</text><text class="all_" bindtap="{{g}}">全部</text></view></up-input></view><view class="content_amout_item" style="margin-top:20rpx"><view class="title_comm">实际到账</view><up-input wx:if="{{l}}" u-s="{{['suffix']}}" u-i="9f7e0d0e-3" bind:__l="__l" bindupdateModelValue="{{k}}" u-p="{{l}}"><text slot="suffix">元</text></up-input><view class="amount_"><view>可提现金额:¥{{m}}</view><view>手续费:{{n}}({{o}}%)</view></view></view></view><view class="withdraw_but" bindtap="{{p}}">提现</view><view class="warm_reminder"><view>温馨提示</view><view><view>单笔最小提现金额:{{q}}</view><view>单日最大提现金额:{{r}}</view><view>单日最大提现次数:{{s}}</view></view></view><up-picker wx:if="{{x}}" bindconfirm="{{t}}" bindcancel="{{v}}" bindclose="{{w}}" u-i="9f7e0d0e-4" bind:__l="__l" u-p="{{x}}"></up-picker><up-toast class="r" u-r="uToastRef" u-i="9f7e0d0e-5" bind:__l="__l"></up-toast></view>
|
||||
<view class="mine_purse_bonus_waithdraw"><view class="waithdraw_header_"><view style="margin-top:10rpx" bindtap="{{b}}"><up-image wx:if="{{a}}" u-i="10e87ca8-0" bind:__l="__l" u-p="{{a}}"></up-image></view><view>提现</view><view bindtap="{{c}}">提现记录</view></view><view class="waithdraw_content_"><view class="content_bank_item"><view class="title_comm">提现账户</view><view class="bank_" bindtap="{{f}}"><view>{{d}}</view><up-image wx:if="{{e}}" u-i="10e87ca8-1" bind:__l="__l" u-p="{{e}}"></up-image></view></view><view class="content_amout_item"><view class="title_comm">提现金额</view><up-input wx:if="{{j}}" u-s="{{['suffix']}}" bindchange="{{h}}" u-i="10e87ca8-2" bind:__l="__l" bindupdateModelValue="{{i}}" u-p="{{j}}"><view slot="suffix"><text>元</text><text class="all_" bindtap="{{g}}">全部</text></view></up-input></view><view class="content_amout_item" style="margin-top:20rpx"><view class="title_comm">实际到账</view><up-input wx:if="{{l}}" u-s="{{['suffix']}}" u-i="10e87ca8-3" bind:__l="__l" bindupdateModelValue="{{k}}" u-p="{{l}}"><text slot="suffix">元</text></up-input><view class="amount_"><view>可提现金额:¥{{m}}</view><view>手续费:{{n}}({{o}}%)</view></view></view></view><view class="withdraw_but" bindtap="{{p}}">提现</view><view class="warm_reminder"><view>温馨提示</view><view><view>1、提现T+1到账,节假日顺延!</view><view>2、单笔最小提现金额:{{q}}</view><view>3、单日最大提现金额:{{r}}</view><view>4、单日最大提现次数:{{s}}</view></view></view><up-picker wx:if="{{x}}" bindconfirm="{{t}}" bindcancel="{{v}}" bindclose="{{w}}" u-i="10e87ca8-4" bind:__l="__l" u-p="{{x}}"></up-picker><up-toast class="r" u-r="uToastRef" u-i="10e87ca8-5" bind:__l="__l"></up-toast></view>
|
||||
Reference in New Issue
Block a user