Commit d6859088f6142c9a075f5fbd398122d5626f56cd

Authored by yvan.ni
1 parent 4dd0a819

~~ 多规格的优化,优惠券的显示 ~~

pages/goods/goodsInfo/goodsInfo.js
... ... @@ -149,6 +149,7 @@ Page({
149 149  
150 150 //商品的活动类型 0普通 1秒杀 2团购 3优惠 4 积分购 6拼单
151 151 prom_type: 0,
  152 + f_prom_type: 0, //前端判断要不要显示券
152 153 prom_time_text: "",
153 154 prom_price: null,
154 155 f_prom_price: null, //秒杀使用
... ... @@ -4767,6 +4768,7 @@ Page({
4767 4768 ee.setData({
4768 4769 prom_price: t.data.data.price,
4769 4770 prom_type: 2,
  4771 + f_prom_type: 2,
4770 4772 prom_id: prom_id,
4771 4773 prom_buy_limit: t.data.data.buy_limit,
4772 4774 prom_act: t.data.data,
... ... @@ -4865,7 +4867,9 @@ Page({
4865 4867 prom_price: t.data.data.user_price,
4866 4868 f_prom_price: t.data.data.user_price,
4867 4869 prom_type: 1,
  4870 + f_prom_type: 1,
4868 4871 prom_id: prom_id,
  4872 + f_prom_id: prom_id,
4869 4873 prom_buy_limit: t.data.data.buy_limit,
4870 4874 prom_act: t.data.data,
4871 4875 f_prom_act: t.data.data,
... ... @@ -5002,6 +5006,7 @@ Page({
5002 5006 prom_price: parseFloat(inte_data.addmoney),
5003 5007 prom_integral: parseFloat(inte_data.integral),
5004 5008 prom_type: 4,
  5009 + f_prom_type: 4,
5005 5010 prom_id: inte_data.id,
5006 5011 prom_buy_limit: inte_data.limitvipqty,
5007 5012 prom_act: inte_data,
... ...
pages/goods/goodsInfo/goodsInfo.wxml
... ... @@ -675,8 +675,8 @@
675 675 </view>
676 676  
677 677  
678   - <!-- 许程 7.24暂时注释 -->
679   - <view class="bdt16" wx:if="{{ prom_type!=1 && prom_act.kttype!=3&&prom_act.kttype!=2&&prom_act.kttype!=1 && is_closecoupon!=1 && front_g.is_xz_yh !=1 && fir_quan.length>0 }}">
  678 + <!-- 许程 7.24暂时注释,秒杀,团购,积分,拼团的详情页面不显示券的领取 -->
  679 + <view class="bdt16" wx:if="{{ f_prom_type!=1 && f_prom_type!=2 && f_prom_type!=4 && f_prom_type!=6 && prom_act.kttype!=3&&prom_act.kttype!=2&&prom_act.kttype!=1 && is_closecoupon!=1 && front_g.is_xz_yh !=1 && fir_quan.length>0 }}">
680 680 <view data-coupon="1" bindtap="switchCoupon" class="cx-frame flex" style="position: relative">
681 681 <view class="cx-sizs fs30">领券</view>
682 682 <view class="flex ai_c f1 pdh20">
... ...