钱包提现增加手续费

master
gongfuxiang 2024-05-28 00:49:34 +08:00
parent e88d363ea2
commit 1441d9b837
5 changed files with 41 additions and 17 deletions

View File

@ -1279,6 +1279,7 @@
"cash-create": {
"cash-create": {
"qg404q": "Withdrawal amount",
"9ugssd": "Handling fees",
"5o1q52": "Gift amount cannot be withdrawn",
"iaw845": "Withdrawable amount",
"1dbkw2": "Available amount",
@ -1301,7 +1302,8 @@
"0mn186": "Please fill in the receiving account number",
"c7h4mu": "Please fill in the name of the account holder",
"724kn8": "Withdrawals cannot be lower than",
"duo0ts": "Withdrawal cannot be greater than"
"duo0ts": "Withdrawal cannot be greater than",
"678iu2": "Estimated handling fee"
}
},
"payment-code": {

View File

@ -1270,6 +1270,7 @@
"cash-create": {
"cash-create": {
"qg404q": "提现金额",
"9ugssd": "手续费",
"5o1q52": "赠送金额不可提现",
"iaw845": "可提现金额",
"1dbkw2": "可用金额",
@ -1292,7 +1293,8 @@
"0mn186": "请填写收款账号",
"c7h4mu": "请填写开户人姓名",
"724kn8": "提现不能低于",
"duo0ts": "提现不能大于"
"duo0ts": "提现不能大于",
"678iu2": "预计手续费"
}
},
"payment-code": {

View File

@ -5,24 +5,28 @@
<view class="padding-main oh">
<view class="form-gorup">
<view class="form-gorup-title">{{$t('cash-create.cash-create.qg404q')}}<text class="form-group-tips-must">*</text></view>
<input type="digit" name="money" :value="default_data.money || ''" placeholder-class="cr-grey" class="cr-base" :placeholder="$t('cash-create.cash-create.cymbdz') + ((data_base.cash_minimum_amount || 0) <= 0 ? 0.01 : data_base.cash_minimum_amount) + $t('cash-create.cash-create.27ky42') + can_cash_max_money" />
<view class="cr-red text-size-xs">
<view v-if="(data_base || null) == null || data_base.is_cash_retain_give != 0" class="cr-red margin-bottom-sm">{{$t('cash-create.cash-create.5o1q52')}}</view>
<input type="digit" name="money" :value="default_data.money || ''" placeholder-class="cr-grey" class="cr-base" :placeholder="$t('cash-create.cash-create.cymbdz') + ((data_base.cash_minimum_amount || 0) <= 0 ? 0.01 : data_base.cash_minimum_amount) + $t('cash-create.cash-create.27ky42') + can_cash_max_money" @input="cash_money_event" />
<view class="text-size-xs">
<view v-if="(data_base || null) != null && data_base.cash_minimum_amount > 0">
<text>{{$t('cash-auth.cash-auth.27b4w5')}}</text>
<text class="cr-red fw-b margin-left-sm margin-right-sm">{{ data_base.cash_minimum_amount }}</text>
<text class="cr-red fw-b margin-left-sm">{{ data_base.cash_minimum_amount }}</text>
</view>
<view>
<text>{{$t('cash-create.cash-create.iaw845')}}</text>
<text class="cr-main fw-b margin-left-sm margin-right-sm">{{ can_cash_max_money }}</text>
<text class="cr-main fw-b margin-left-sm">{{ can_cash_max_money }}</text>
</view>
<view>
<text>{{$t('cash-create.cash-create.1dbkw2')}}</text>
<text class="cr-green fw-b margin-left-sm margin-right-sm">{{ user_wallet.normal_money }}</text>
<text class="cr-green fw-b margin-left-sm">{{ user_wallet.normal_money }}</text>
</view>
<view>
<text>{{$t('cash-create.cash-create.162f7o')}}</text>
<text class="cr-base fw-b margin-left-sm margin-right-sm">{{ user_wallet.give_money }}</text>
<text class="cr-base fw-b margin-left-sm">{{ user_wallet.give_money }}</text>
<text v-if="(data_base || null) == null || data_base.is_cash_retain_give != 0" class="cr-red margin-left-lg">{{$t('cash-create.cash-create.5o1q52')}}</text>
</view>
<view v-if="(data_base || null) == null || data_base.cash_commission_rate != 0" class="margin-top-sm cr-red">
<text>{{$t('cash-create.cash-create.678iu2')}}</text>
<text class="fw-b margin-left-sm">{{cash_commission_value}}</text>
</view>
</view>
</view>
@ -57,9 +61,7 @@
<view v-else-if="check_status === 0" class="overdue tc">
<view class="padding-main">
<view class="cr-red margin-top-xxxl">{{$t('cash-create.cash-create.858o54')}}</view>
<navigator class="dis-inline" hover-class="none" open-type="navigateBack">
<button class="round bg-main cr-white cr-white text-size margin-top-xl" size="mini" type="default" hover-class="none">{{$t('cash-create.cash-create.ke15x5')}}</button>
</navigator>
<button class="round bg-main cr-white cr-white text-size margin-top-xl" size="mini" type="default" hover-class="none" data-value="/pages/plugins/wallet/cash-auth/cash-auth" data-redirect="1" @tap="url_event">{{$t('cash-create.cash-create.ke15x5')}}</button>
</view>
</view>
<view v-else>
@ -85,7 +87,8 @@
user_wallet: {},
default_data: {},
check_status: null,
can_cash_max_money: 0.0,
can_cash_max_money: 0.00,
cash_commission_value: 0.00
};
},
@ -174,6 +177,16 @@
app.globalData.showToast(this.$t('common.internet_error_tips'));
},
});
},
//
cash_money_event(e) {
if((this.data_base || null) != null && (this.data_base.cash_commission_rate || 0) != 0) {
var value = parseFloat(e.detail.value || 0);
this.setData({
cash_commission_value: app.globalData.price_two_decimal(value*parseFloat(this.data_base.cash_commission_rate)),
})
}
},
//
@ -240,10 +253,15 @@
},
});
}
},
},
// url
url_event(e) {
app.globalData.url_event(e);
}
},
};
</script>
<style>
@import './cash-create';
</style>
</style>

View File

@ -70,7 +70,8 @@
nav_status_index: 0,
content_list: [
{ name: this.$t('user-cash-detail.user-cash-detail.e8a3e8'), field: 'cash_no' },
{ name: this.$t('cash-create.cash-create.qg404q'), field: 'money' },
{ name: this.$t('cash-create.cash-create.qg404q'), field: 'money' },
{ name: this.$t('cash-create.cash-create.9ugssd'), field: 'commission' },
],
};
},

View File

@ -90,7 +90,8 @@ export default {
detail_list: [
{ name: this.$t('user-cash-detail.user-cash-detail.e8a3e8'), value: data.data.cash_no || "" },
{ name: this.$t('user-cash-detail.user-cash-detail.wyad6w'), value: data.data.status_name || "" },
{ name: this.$t('cash-create.cash-create.qg404q'), value: data.data.money || "" },
{ name: this.$t('cash-create.cash-create.qg404q'), value: data.data.money || "" },
{ name: this.$t('cash-create.cash-create.9ugssd'), value: data.data.commission || "" },
{ name: this.$t('user-cash-detail.user-cash-detail.j5s3u6'), value: data.data.bank_name || "" },
{ name: this.$t('user-cash-detail.user-cash-detail.53k647'), value: data.data.bank_username || "" },
{ name: this.$t('user-cash-detail.user-cash-detail.m556tl'), value: data.data.bank_accounts || "" },