Commit 6d58c4165af57ce91e3ee7aab5275c6fc1d22c63

Authored by yvan.ni
1 parent 57804065

优惠促销到购物车都是prom_type=0

pages/goods/goodsInfo/goodsInfo.js
@@ -1933,26 +1933,10 @@ Page({ @@ -1933,26 +1933,10 @@ Page({
1933 //if (this.data.data.goods.is_virtual) return this.buyVirtualGoods(d); 1933 //if (this.data.data.goods.is_virtual) return this.buyVirtualGoods(d);
1934 if ("add" == t.currentTarget.dataset.action) { 1934 if ("add" == t.currentTarget.dataset.action) {
1935 1935
1936 - if ([3, 5, 10].indexOf(newd.prom_type) > -1) {  
1937 - newd.prom_type = 0;  
1938 - newd.prom_id = 0;  
1939 - }  
1940 -  
1941 - //如果有搭配购的时候的时候  
1942 - if (th.data.collocationGoods && newd.prom_type == 0) {  
1943 - newd.prom_type = 5;  
1944 - newd.prom_id = th.data.collocationGoods.id; 1936 + if( [3,5,7,10].indexOf(newd.prom_type)>-1){
  1937 + newd.prom_type=0;
  1938 + newd.prom_id=0;
1945 } 1939 }
1946 -  
1947 - //如果有搭配购的时候的时候  
1948 - 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) {  
1949 - newd.prom_type = 7;  
1950 - newd.prom_id = th.data.zh_act.id;  
1951 - }  
1952 - // if( [3,5,10].indexOf(newd.prom_type)>-1){  
1953 - // newd.prom_type=0;  
1954 - // newd.prom_id=0;  
1955 - // }  
1956 // 1940 //
1957 // //如果有搭配购的时候的时候 1941 // //如果有搭配购的时候的时候
1958 // if(th.data.collocationGoods && newd.prom_type==0){ 1942 // if(th.data.collocationGoods && newd.prom_type==0){