From 9e90ed0fc65c03733ed2d4a8be89798c994b86ab Mon Sep 17 00:00:00 2001 From: yvan.ni Date: Tue, 20 Feb 2024 17:34:45 +0800 Subject: [PATCH] 报错的提交 --- pages/cart/cart/cart.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/cart/cart/cart.js b/pages/cart/cart/cart.js index 017e25c..338ff7d 100644 --- a/pages/cart/cart/cart.js +++ b/pages/cart/cart/cart.js @@ -2637,7 +2637,7 @@ Page({ //console.log("累计:"+tfeel); //-- 如果价格有发生变动,要更新界面中的价格显示 -- - if(th.data.dp_car[a].goods) { + if(th.data.dp_car && th.data.dp_car[a] && th.data.dp_car[a].goods) { if (item[c].goods_price != th.data.dp_car[a].goods[c].goods_price) { let txt = 'requestData[' + a + '].goods[' + c + '].goods_price'; th.setData({ -- libgit2 0.21.4