|
@@ -26,7 +26,7 @@
|
|
|
<view class="cash-content-cash-money">
|
|
|
<text class="cash-content-cash-money-icon">¥</text>
|
|
|
<view class="cash-content-cash-input">
|
|
|
- <u--input readonly placeholder="请输入内容" border="none" clearable type="number" v-model="moneyValue"
|
|
|
+ <u--input :readonly="true" placeholder="请输入内容" border="none" clearable type="number" v-model="moneyValue"
|
|
|
@change="moneyAccountFun"></u--input>
|
|
|
</view>
|
|
|
|
|
@@ -325,14 +325,14 @@
|
|
|
moneyAccountFun() {
|
|
|
let money = ''
|
|
|
if (this.withdrawInfo.serviceType == 1) {
|
|
|
- money = this.moneyValue - (isNaN(this.withdrawInfo.serviceCharge) ? 0 : this.withdrawInfo
|
|
|
+ money = (isNaN(this.withdrawInfo.serviceCharge) ? 0 : this.withdrawInfo
|
|
|
.serviceCharge)
|
|
|
} else if (this.withdrawInfo.serviceType == 2) {
|
|
|
let num1 = this.withdrawInfo.serviceCharge;
|
|
|
let num = isNaN(num1) ? 0 : (Number(num1) / 100)
|
|
|
money = num ? new Decimal(this.moneyValue).mul(new Decimal(num)) : 0
|
|
|
}
|
|
|
- this.moneyAccount = money < 0 ? '金额过小于零' : new Decimal(this.moneyValue).sub(new Decimal(money.toFixed(2)))
|
|
|
+ this.moneyAccount = money < 0 ? '金额小于零' : new Decimal(this.moneyValue).sub(new Decimal(money.toFixed(2)))
|
|
|
},
|
|
|
browserBack() {
|
|
|
console.log(1);
|