Commit 0c4e500a50d90f70d5edf002feb136a012448898
1 parent
e846192a
卡项详情再来一单修改
Showing
1 changed file
with
13 additions
and
1 deletions
packageA/pages/details_serviceCard/details_serviceCard.js
@@ -283,7 +283,19 @@ Page({ | @@ -283,7 +283,19 @@ Page({ | ||
283 | if (getApp().globalData.guide_id) { | 283 | if (getApp().globalData.guide_id) { |
284 | newd['guide_id'] = getApp().globalData.guide_id; | 284 | newd['guide_id'] = getApp().globalData.guide_id; |
285 | newd['guide_type'] = 0; | 285 | newd['guide_type'] = 0; |
286 | - } | 286 | + }; |
287 | + // 秒杀:单独购买的情况下,加入购物车显示的是零售价,否则显示秒杀活动价 | ||
288 | + if(details.list[0].prom_type == 1) { | ||
289 | + newd['prom_type'] = details.list[0].prom_type; | ||
290 | + newd['prom_id'] = details.list[0].prom_id; | ||
291 | + // if(th.data.openSpecModal_flash_normal) { | ||
292 | + // newd['money'] = th.data.data.shop_price; | ||
293 | + // newd['is_pd_normal'] = 1; | ||
294 | + // } else { | ||
295 | + // newd['money'] = th.data.prom_price; | ||
296 | + // }; | ||
297 | + }; | ||
298 | + | ||
287 | 299 | ||
288 | //----先看会员在购物车中是否加入了该商品----- | 300 | //----先看会员在购物车中是否加入了该商品----- |
289 | app.request.get("/api/weshop/cartService/page", { | 301 | app.request.get("/api/weshop/cartService/page", { |