From ac048d6146b9b2f1f9d48b5ec4b369ebd6903db1 Mon Sep 17 00:00:00 2001 From: yvan.ni Date: Fri, 17 Dec 2021 15:32:38 +0800 Subject: [PATCH] 购物车 阶梯促销的问题优化 --- app.js | 8 +++++--- pages/cart/cart/ladder_calculate.js | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app.js b/app.js index 638efc4..3ba33ea 100644 --- a/app.js +++ b/app.js @@ -50,7 +50,7 @@ App({ config: null, //门店参数 config2: null, //门店配置 code: null, - user_id:null,//3277,// 6519901,//6453964,// 4687,// 6519870,//5682094, + user_id:null,// 6519870,//5682094, buy_now:null, picklist:null, //门店列表 wuliuprice: null, //物流价格表 @@ -661,8 +661,10 @@ App({ this.globalData.config=null; //清除config的缓存 this.globalData.gr_index=0; //商品分组的序列 this.globalData.pk_store=null; - this.globalData.wxapp_buy_obj=null - + this.globalData.wxapp_buy_obj=null; + this.globalData.dis_buy_obj=null; //等级卡的购买记录 + this.globalData.storeFooter=null; //底部的导航 + this.globalData.full_screen=null; //全屏 }, clear_word:function (word) { diff --git a/pages/cart/cart/ladder_calculate.js b/pages/cart/cart/ladder_calculate.js index 779e1d2..c08e8f0 100644 --- a/pages/cart/cart/ladder_calculate.js +++ b/pages/cart/cart/ladder_calculate.js @@ -90,7 +90,7 @@ module.exports = { var vh=car_item.goods.findIndex(function (e) { return e.goods_id == ite.goods_id }) - if(vh>-1) return vh; + if(vh>-1) return car_item.goods[vh]; return 0; } -- libgit2 0.21.4