From 601596a0e87012f8f75ef90e09e832e1ff9e4562 Mon Sep 17 00:00:00 2001 From: yvan.ni Date: Wed, 19 Apr 2023 20:19:52 +0800 Subject: [PATCH] ~~ 秒杀的多活动,在切换的优化 ~~ --- pages/goods/goodsInfo/goodsInfo.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pages/goods/goodsInfo/goodsInfo.js b/pages/goods/goodsInfo/goodsInfo.js index 8b0e02b..9b05235 100644 --- a/pages/goods/goodsInfo/goodsInfo.js +++ b/pages/goods/goodsInfo/goodsInfo.js @@ -3290,6 +3290,8 @@ Page({ //普通商品多规格的时候,商品切换 + if(this.data.base_nor_prom_type) this.data.base_nor_prom_type=parseInt(this.data.base_nor_prom_type); + if([1,2,4,8,9].indexOf(this.data.base_nor_prom_type)==-1){ this.setData({ prom_goods:null, @@ -3333,10 +3335,10 @@ Page({ if (nor) that.get_sto(1); else that.get_sto(); - if (!item.whsle_id) that.check_is_youhui(gid, that.data.is_normal); + if (!item.whsle_id && [1,2,4,6].indexOf(item.prom_type)==-1) that.check_is_youhui(gid, that.data.is_normal); //默认门店要拿下门店库存 - if (that.data.sales_rules >= 2 && that.data.def_pick_store && !that.data.sele_g.whsle_id) { + if (that.data.sales_rules >= 2 && that.data.def_pick_store && !that.data.sele_g.whsle_id && [1,2,4,6].indexOf(item.prom_type)==-1) { var lock = 0, plist = null; -- libgit2 0.21.4