|
@@ -25,7 +25,7 @@ Page({
|
|
|
const form = that.data.form;
|
|
|
const params = e.detail.value;
|
|
|
var money = params.paymoney;
|
|
|
- if (form.money) money = Number(form.money) + Number(params.paymoney);
|
|
|
+ if (form.money) money = Math.floor((Number(form.money) + Number(params.paymoney)) * 100) / 100;
|
|
|
if (!this.WxValidate.checkForm(params)) {
|
|
|
const error = this.WxValidate.errorList[0];
|
|
|
wx.showToast({ title: `${error.msg}`, icon: 'error', duration: 2000 })
|