diff --git a/pages/cart/cart/cart.js b/pages/cart/cart/cart.js index aec62f8..223428b 100644 --- a/pages/cart/cart/cart.js +++ b/pages/cart/cart/cart.js @@ -1080,16 +1080,19 @@ Page({ goods_num: a, goods_id: e.goods_id, id: e.id, - store_id: oo.stoid + store_id: oo.stoid, }; - if(a.prom_type) { - s.prom_type = a.prom_type; + if(e.prom_type) { + s.prom_type = e.prom_type; }; - if(a.prom_id) { - s.prom_id = a.prom_id; + if(e.prom_id) { + s.prom_id = e.prom_id; }; - if(a.is_pd_normal) { - s.is_pd_normal = a.is_pd_normal; + if(e.is_pd_normal) { + s.is_pd_normal = e.is_pd_normal; + }; + if(e.service_id) { + s.card_id = e.service_id; }; th.postCardList_ser(s, t.currentTarget.dataset.item, t.currentTarget.dataset.pitems); } @@ -1109,7 +1112,6 @@ Page({ id: a.id, goods_id: a.service_id, store_id: oo.stoid, - card_id: a.service_id, }; if(a.prom_type) { e.prom_type = a.prom_type; @@ -1120,6 +1122,9 @@ Page({ if(a.is_pd_normal) { e.is_pd_normal = a.is_pd_normal; }; + if(a.service_id) { + e.card_id = a.service_id; + }; this.postCardList_ser(e, t.currentTarget.dataset.item, t.currentTarget.dataset.pitems); },