Commit 3c5c3ae1 authored by 谢卓城's avatar 谢卓城

修复:购物车商品数量减少逻辑错误

parent 72060550
...@@ -247,7 +247,9 @@ Page({ ...@@ -247,7 +247,9 @@ Page({
return return
} }
let totalPrice = this.data.totalPrice let totalPrice = this.data.totalPrice
if (goods.isSelect) {
totalPrice = totalPrice - goods.goodsPrice totalPrice = totalPrice - goods.goodsPrice
}
goods.goodsCount = number goods.goodsCount = number
this.setData({ this.setData({
goodsList: goodsList, goodsList: goodsList,
......
...@@ -32,7 +32,6 @@ ...@@ -32,7 +32,6 @@
}, },
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "2.14.1", "libVersion": "2.14.1",
"appid": "wx8b5f30d2d4a5a6e0",
"projectname": "ChengjingPremiumMember", "projectname": "ChengjingPremiumMember",
"debugOptions": { "debugOptions": {
"hidedInDevtools": [] "hidedInDevtools": []
...@@ -41,6 +40,7 @@ ...@@ -41,6 +40,7 @@
"isGameTourist": false, "isGameTourist": false,
"simulatorType": "wechat", "simulatorType": "wechat",
"simulatorPluginLibVersion": {}, "simulatorPluginLibVersion": {},
"appid": "wx8b5f30d2d4a5a6e0",
"condition": { "condition": {
"search": { "search": {
"list": [] "list": []
......
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