Commit 9e90ed0fc65c03733ed2d4a8be89798c994b86ab

Authored by yvan.ni
1 parent 7821045e

报错的提交

Showing 1 changed file with 1 additions and 1 deletions
pages/cart/cart/cart.js
... ... @@ -2637,7 +2637,7 @@ Page({
2637 2637 //console.log("累计:"+tfeel);
2638 2638  
2639 2639 //-- 如果价格有发生变动,要更新界面中的价格显示 --
2640   - if(th.data.dp_car[a].goods) {
  2640 + if(th.data.dp_car && th.data.dp_car[a] && th.data.dp_car[a].goods) {
2641 2641 if (item[c].goods_price != th.data.dp_car[a].goods[c].goods_price) {
2642 2642 let txt = 'requestData[' + a + '].goods[' + c + '].goods_price';
2643 2643 th.setData({
... ...