From 87cdba2adf6d20ac25087b23a40b7ca52f0be8cf Mon Sep 17 00:00:00 2001 From: yvan.ni Date: Sat, 27 Apr 2024 16:36:33 +0800 Subject: [PATCH] 拼团优化使用券的,要判断对象是否存在 --- packageE/pages/cart/cart2_pt/cart2_pt.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packageE/pages/cart/cart2_pt/cart2_pt.js b/packageE/pages/cart/cart2_pt/cart2_pt.js index 35e3360..072bfe0 100644 --- a/packageE/pages/cart/cart2_pt/cart2_pt.js +++ b/packageE/pages/cart/cart2_pt/cart2_pt.js @@ -1851,7 +1851,7 @@ Page({ return th.get_wuliu(th.calculatePrice2()); } - if (ty !=0 && th.data.using_quan[th.data.bn_pick].isby==1) { + if (ty !=0 && th.data.using_quan[th.data.bn_pick] && th.data.using_quan[th.data.bn_pick].isby==1) { let using_quan={ [th.data.bn_pick]:{ is_nouse_red:1 -- libgit2 0.21.4