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;