Commit 1bd015e92a630d390f0746da8795fe12014a97ac

Authored by 后端研发-苏泰源
1 parent 8834c259

购物车服务卡修改

Showing 1 changed file with 13 additions and 8 deletions
pages/cart/cart/cart.js
@@ -1080,16 +1080,19 @@ Page({ @@ -1080,16 +1080,19 @@ Page({
1080 goods_num: a, 1080 goods_num: a,
1081 goods_id: e.goods_id, 1081 goods_id: e.goods_id,
1082 id: e.id, 1082 id: e.id,
1083 - store_id: oo.stoid 1083 + store_id: oo.stoid,
1084 }; 1084 };
1085 - if(a.prom_type) {  
1086 - s.prom_type = a.prom_type; 1085 + if(e.prom_type) {
  1086 + s.prom_type = e.prom_type;
1087 }; 1087 };
1088 - if(a.prom_id) {  
1089 - s.prom_id = a.prom_id; 1088 + if(e.prom_id) {
  1089 + s.prom_id = e.prom_id;
1090 }; 1090 };
1091 - if(a.is_pd_normal) {  
1092 - s.is_pd_normal = a.is_pd_normal; 1091 + if(e.is_pd_normal) {
  1092 + s.is_pd_normal = e.is_pd_normal;
  1093 + };
  1094 + if(e.service_id) {
  1095 + s.card_id = e.service_id;
1093 }; 1096 };
1094 th.postCardList_ser(s, t.currentTarget.dataset.item, t.currentTarget.dataset.pitems); 1097 th.postCardList_ser(s, t.currentTarget.dataset.item, t.currentTarget.dataset.pitems);
1095 } 1098 }
@@ -1109,7 +1112,6 @@ Page({ @@ -1109,7 +1112,6 @@ Page({
1109 id: a.id, 1112 id: a.id,
1110 goods_id: a.service_id, 1113 goods_id: a.service_id,
1111 store_id: oo.stoid, 1114 store_id: oo.stoid,
1112 - card_id: a.service_id,  
1113 }; 1115 };
1114 if(a.prom_type) { 1116 if(a.prom_type) {
1115 e.prom_type = a.prom_type; 1117 e.prom_type = a.prom_type;
@@ -1120,6 +1122,9 @@ Page({ @@ -1120,6 +1122,9 @@ Page({
1120 if(a.is_pd_normal) { 1122 if(a.is_pd_normal) {
1121 e.is_pd_normal = a.is_pd_normal; 1123 e.is_pd_normal = a.is_pd_normal;
1122 }; 1124 };
  1125 + if(a.service_id) {
  1126 + e.card_id = a.service_id;
  1127 + };
1123 this.postCardList_ser(e, t.currentTarget.dataset.item, t.currentTarget.dataset.pitems); 1128 this.postCardList_ser(e, t.currentTarget.dataset.item, t.currentTarget.dataset.pitems);
1124 1129
1125 }, 1130 },