Commit a2e57a7a73d6fb41552d56b6817dd2c5f947a8f4

Authored by antploy
1 parent a54e369f

组合购会员身份购物车商品优化

Showing 1 changed file with 10 additions and 10 deletions
pages/cart/cart/cart.js
@@ -408,11 +408,11 @@ Page({ @@ -408,11 +408,11 @@ Page({
408 } 408 }
409 act=res.data.data; 409 act=res.data.data;
410 410
411 - }else{  
412 - //未找到商品的活动  
413 - isok = 0;  
414 } 411 }
415 - 412 + // else{
  413 + // //未找到商品的活动
  414 + // isok = 0;
  415 + // }
416 }) 416 })
417 if (!isok){ 417 if (!isok){
418 var url = '/api/weshop/cart/del/' + oo.stoid + '/' + item.id; 418 var url = '/api/weshop/cart/del/' + oo.stoid + '/' + item.id;
@@ -453,12 +453,12 @@ Page({ @@ -453,12 +453,12 @@ Page({
453 item.buyqty=t_item.buyqty; 453 item.buyqty=t_item.buyqty;
454 item.zh_b_num=promgoodsbuynum; 454 item.zh_b_num=promgoodsbuynum;
455 item.act=th.data.zuhe_map[item.prom_id]; 455 item.act=th.data.zuhe_map[item.prom_id];
456 - }else{  
457 - var url = '/api/weshop/cart/del/' + oo.stoid + '/' + item.id;  
458 - getApp().request.delete(url, {});  
459 - th.data.zuhe_map[item.prom_id]=-1;  
460 - continue;  
461 - } 456 + }//else{
  457 + // var url = '/api/weshop/cart/del/' + oo.stoid + '/' + item.id;
  458 + // getApp().request.delete(url, {});
  459 + // th.data.zuhe_map[item.prom_id]=-1;
  460 + // continue;
  461 + // }
462 } 462 }
463 else if(item.prom_type == 0) { 463 else if(item.prom_type == 0) {
464 //如果有优惠活动,要更新活动 464 //如果有优惠活动,要更新活动