Commit 7af9fa7b1c4a0340a0fb1cb12496d5e81bab3251
Merge branch 'dev' of http://git.vipzhuang.cn/wxd/MShopWeApp into test
Showing
1 changed file
with
2 additions
and
1 deletions
packageE/pages/cart/cart2/cart2.js
... | ... | @@ -3538,7 +3538,8 @@ Page({ |
3538 | 3538 | |
3539 | 3539 | if (cartlist && cartlist.length > 0) { |
3540 | 3540 | for (let index = 0, length = cartlist.length; index < length; index++) { |
3541 | - let item = cartlist[index].goods | |
3541 | + let item = cartlist[index].goods; | |
3542 | + if(!item) continue; | |
3542 | 3543 | for (let i = 0, leng = item.length; i < leng; i++) { |
3543 | 3544 | if (item[i].prom_type == 7) { |
3544 | 3545 | strarr.push(item[i]) | ... | ... |