|
@@ -44,7 +44,7 @@ Page({
|
|
"signType": arr.data.wxSign.signType,
|
|
"signType": arr.data.wxSign.signType,
|
|
"paySign": arr.data.wxSign.paySign,
|
|
"paySign": arr.data.wxSign.paySign,
|
|
"success": async function (res) {
|
|
"success": async function (res) {
|
|
- let money = parseInt(rcsInfo.money || 0) + parseFloat(params.money);
|
|
|
|
|
|
+ let money = Math.floor((Number(rcsInfo.money || 0) + Number(params.money)) * 100) / 100;
|
|
const aee = await app.$post(`/rcs/${rcsInfo._id}`, { money: money });
|
|
const aee = await app.$post(`/rcs/${rcsInfo._id}`, { money: money });
|
|
if (aee.errcode == '0') {
|
|
if (aee.errcode == '0') {
|
|
wx.showToast({ title: `支付成功`, icon: 'success', duration: 2000 });
|
|
wx.showToast({ title: `支付成功`, icon: 'success', duration: 2000 });
|