account/deposit的笔误

This commit is contained in:
Xu Chang 2024-05-23 01:17:47 +08:00
parent 631fc50d8c
commit d503341ffb
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ export default OakComponent({
}
else if (PAY_ORG_CHANNELS.includes(next.channel) && (!prev.channel || !PAY_ORG_CHANNELS.includes(prev.channel))) {
// 计算损耗
const ratio = this.features.pay.getDepositRatio(prev.channel);
const ratio = this.features.pay.getDepositRatio(next.channel);
if (ratio > 0) {
const ratioDelta = Math.floor(price * ratio / 100);
this.onPriceChange(ToYuan(price + ratioDelta), true, ratioDelta);

View File

@ -56,7 +56,7 @@ export default OakComponent({
}
else if (PAY_ORG_CHANNELS.includes(next.channel) && (!prev.channel || !PAY_ORG_CHANNELS.includes(prev.channel))) {
// 计算损耗
const ratio = this.features.pay.getDepositRatio(prev.channel);
const ratio = this.features.pay.getDepositRatio(next.channel);
if (ratio > 0) {
const ratioDelta = Math.floor(price * ratio / 100);
this.onPriceChange(ToYuan(price + ratioDelta), true, ratioDelta);