diff --git a/pages/goods/goodsInfo/goodsInfo.js b/pages/goods/goodsInfo/goodsInfo.js index 19347c1..aaf3055 100644 --- a/pages/goods/goodsInfo/goodsInfo.js +++ b/pages/goods/goodsInfo/goodsInfo.js @@ -1933,26 +1933,10 @@ Page({ //if (this.data.data.goods.is_virtual) return this.buyVirtualGoods(d); if ("add" == t.currentTarget.dataset.action) { - if ([3, 5, 10].indexOf(newd.prom_type) > -1) { - newd.prom_type = 0; - newd.prom_id = 0; - } - - //如果有搭配购的时候的时候 - if (th.data.collocationGoods && newd.prom_type == 0) { - newd.prom_type = 5; - newd.prom_id = th.data.collocationGoods.id; + if( [3,5,7,10].indexOf(newd.prom_type)>-1){ + newd.prom_type=0; + newd.prom_id=0; } - - //如果有搭配购的时候的时候 - if (th.data.zh_act && (!th.data.zh_act.zh_num || th.data.zh_act.zh_buy_num < th.data.zh_act.zh_num) && newd.prom_type == 0) { - newd.prom_type = 7; - newd.prom_id = th.data.zh_act.id; - } - // if( [3,5,10].indexOf(newd.prom_type)>-1){ - // newd.prom_type=0; - // newd.prom_id=0; - // } // // //如果有搭配购的时候的时候 // if(th.data.collocationGoods && newd.prom_type==0){