Commit 54739721a5a3f9e28b22791de905c9a7cd9c0cc2

Authored by 前端开发-罗建龙
1 parent 700ffa55

分组优化

components/diy_goodsGroup/diy_goodsGroup.js
@@ -449,8 +449,10 @@ Component({ @@ -449,8 +449,10 @@ Component({
449 var url = "/api/weshop/activitylist/getGoodActInfo"; 449 var url = "/api/weshop/activitylist/getGoodActInfo";
450 var req_data = { 450 var req_data = {
451 store_id: os.stoid, goodsidlist: val.goods_id, is_detail: 1, user_id: user_id 451 store_id: os.stoid, goodsidlist: val.goods_id, is_detail: 1, user_id: user_id
452 - };  
453 - 452 + };
  453 +
  454 + item.prom_type = 0;
  455 + item.prom_id = 0;
454 //获取商品的实际活动 456 //获取商品的实际活动
455 await getApp().request.promiseGet(url, { data: req_data }).then(res => { 457 await getApp().request.promiseGet(url, { data: req_data }).then(res => {
456 if (res.data.code == 0 && res.data.data && res.data.data.length == 1) { 458 if (res.data.code == 0 && res.data.data && res.data.data.length == 1) {
@@ -469,12 +471,12 @@ Component({ @@ -469,12 +471,12 @@ Component({
469 item.cardprice1 = val.cardprice1; 471 item.cardprice1 = val.cardprice1;
470 item.cardprice2 = val.cardprice2; 472 item.cardprice2 = val.cardprice2;
471 item.cardprice3 = val.cardprice3; 473 item.cardprice3 = val.cardprice3;
472 - item.prom_type = val.prom_type;  
473 - item.prom_id = val.prom_id; 474 + // item.prom_type = val.prom_type;
  475 + // item.prom_id = val.prom_id;
474 if (val.prom_price) item.prom_price = val.prom_price; 476 if (val.prom_price) item.prom_price = val.prom_price;
475 if (val.prom_integral) item.prom_integral = val.prom_integral; 477 if (val.prom_integral) item.prom_integral = val.prom_integral;
476 478
477 - prom_id = val.prom_id; 479 + prom_id = item.prom_id;
478 480
479 var prom_type = item.prom_type; //0普通商品 1秒杀 6拼单 2团购 4积分购 481 var prom_type = item.prom_type; //0普通商品 1秒杀 6拼单 2团购 4积分购
480 482