Commit 2afb87d2 by 张立顺

战败订单商品bug修复

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