Commit ea4f1d77 by 高淑倩

购物车警告

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