Commit 2afb87d2 by 张立顺

战败订单商品bug修复

1 parent 25f2b964
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
* 2测试 * 2测试
* 3生产环境 * 3生产环境
*/ */
let index = 2 let index = 3
const accountInfo = wx.getAccountInfoSync() const accountInfo = wx.getAccountInfoSync()
const systemInfo = wx.getSystemInfoSync() const systemInfo = wx.getSystemInfoSync()
......
...@@ -126,7 +126,10 @@ Page({ ...@@ -126,7 +126,10 @@ Page({
deleteName.map(item => { deleteName.map(item => {
if (orderObj[item]) delete orderObj[item] if (orderObj[item]) delete orderObj[item]
}) })
goodsList = [] if (orderObj.selectPayType!=0) {
goodsList = []
}
// goodsList = []
this.setData({ this.setData({
orderObj, orderObj,
goodsList goodsList
...@@ -596,6 +599,8 @@ Page({ ...@@ -596,6 +599,8 @@ Page({
v.price = 0 v.price = 0
v.shopMinPrice = 0 v.shopMinPrice = 0
v.upgradePrice = 0 v.upgradePrice = 0
v.totalPrice = 0
v.number = 1
}) })
}) })
// 是战败并且只有一个商品 默认选中 // 是战败并且只有一个商品 默认选中
...@@ -610,6 +615,7 @@ Page({ ...@@ -610,6 +615,7 @@ Page({
} }
} }
console.log(subOrderList, 'subOrderList') console.log(subOrderList, 'subOrderList')
// debugger
this.setData({ this.setData({
goodsData, goodsData,
goodsList: subOrderList, goodsList: subOrderList,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!