Commit 081e8e35 authored by gaodapeng's avatar gaodapeng

修改了精度

parent ea245d29
...@@ -987,7 +987,8 @@ Page({ ...@@ -987,7 +987,8 @@ Page({
//后屏跳转 //后屏跳转
this.goPage('waitoperate'); this.goPage('waitoperate');
var amount = this.data.totalPrice - this.data.discCouponPrice; var miyapay = require("/utils/miyapay4.js");
var amount = miyapay.fen2Yuan(miyapay.yuan2Fen(this.data.totalPrice)-miyapay.yuan2Fen(this.data.discCouponPrice));
this.setData({ this.setData({
waitOperateAmount: amount, waitOperateAmount: amount,
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment