Commit 4e9e4259 authored by jiangjiantao's avatar jiangjiantao

bugfix

parent 4ef72b74
......@@ -918,11 +918,18 @@ Page({
quantitytemp = quantitytemp + item.quantity
pricetemp = pricetemp + item.price * item.quantity
})
pricetemp = this.fen2Yuan(pricetemp)
this.setData({ totalQuantity: quantitytemp, totalPrice: pricetemp })
//数据同步到前屏
this.sendGoodInfoToFront()
},
fen2Yuan(num) {
if (typeof num !== "number" || isNaN(num)) return null;
return (num / 100).toFixed(2);
},
sendMemberLogin(result) {
......
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