Commit ea4f1d77 by 高淑倩

购物车警告

parent af24302e
......@@ -81,11 +81,11 @@ wxService.page({
if (result == 0) {
wx.hideLoading()
// item.checked
data.skuVOList.forEach(item=>{
data && data.skuVOList.forEach(item=>{
item.checked = false
})
this.setData({
cartList: data.skuVOList
cartList: data && data.skuVOList || []
})
}
}
......
......@@ -397,11 +397,10 @@ class WXService extends Http {
// 对应的path
let currentPaths = [];
localPath.forEach(item => {
console.log('---------', item, data)
if (item.hasOwnProperty(data)) {
currentPaths = item[data]
} else {
console.log(222);
}
})
return Promise.resolve({ currentPaths })
......
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