From a2e57a7a73d6fb41552d56b6817dd2c5f947a8f4 Mon Sep 17 00:00:00 2001 From: antploy Date: Tue, 2 Nov 2021 17:24:54 +0800 Subject: [PATCH] 组合购会员身份购物车商品优化 --- pages/cart/cart/cart.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/pages/cart/cart/cart.js b/pages/cart/cart/cart.js index 5b704e4..19006ac 100644 --- a/pages/cart/cart/cart.js +++ b/pages/cart/cart/cart.js @@ -408,11 +408,11 @@ Page({ } act=res.data.data; - }else{ - //未找到商品的活动 - isok = 0; } - + // else{ + // //未找到商品的活动 + // isok = 0; + // } }) if (!isok){ var url = '/api/weshop/cart/del/' + oo.stoid + '/' + item.id; @@ -453,12 +453,12 @@ Page({ item.buyqty=t_item.buyqty; item.zh_b_num=promgoodsbuynum; item.act=th.data.zuhe_map[item.prom_id]; - }else{ - var url = '/api/weshop/cart/del/' + oo.stoid + '/' + item.id; - getApp().request.delete(url, {}); - th.data.zuhe_map[item.prom_id]=-1; - continue; - } + }//else{ + // var url = '/api/weshop/cart/del/' + oo.stoid + '/' + item.id; + // getApp().request.delete(url, {}); + // th.data.zuhe_map[item.prom_id]=-1; + // continue; + // } } else if(item.prom_type == 0) { //如果有优惠活动,要更新活动 -- libgit2 0.21.4