Commit 6b5196955fe03e062aa360881757792c1c69ef88

Authored by yvan.ni
1 parent 800802b7

单赠品的时候不跳转

components/promate_pop/promate_pop.wxml
... ... @@ -32,8 +32,12 @@
32 32 <block wx:for="{{item.more}}" wx:for-item="bm">
33 33 <text wx:if="{{bm.is_fir}}" class="tick pdr20" >{{bm.text}}</text>
34 34 <view class="tick pdr20" wx:if="{{bm.is_quan}}">{{bm.text}}</view>
35   - <view class="tick pdr20 ellipsis-1x lh2 details " wx:if="{{bm.is_gift}}" bindtap="show_zp"
36   - data-index="{{item.yh_index}}" data-prom="{{bm.prom_id}}" >{{bm.text}}</view>
  35 + <view class="tick pdr20 ellipsis-1x lh2 {{!bm.is_no_goto?'details':'' }} " wx:if="{{bm.is_gift}}"
  36 + bindtap="show_zp"
  37 + data-is_no_goto="{{is_no_goto}}"
  38 + data-index="{{item.yh_index}}"
  39 + data-prom="{{bm.prom_id}}" >{{bm.text}}</view>
  40 +
37 41 <!-- 旧礼包 -->
38 42 <view class="tick pdr20 ellipsis-1x lh2 details" wx:if="{{bm.lb_id}}"
39 43 data-id="{{bm.lb_id}}" bindtap="viewLbDetails">{{bm.text}}</view>
... ...
utils/util.js
... ... @@ -848,7 +848,8 @@ module.exports = {
848 848 more_arr.push({
849 849 text:'送' + fir_act.goods_name + ' x' + fir_act.zp_num,
850 850 is_gift:1,
851   - prom_id:fir_act.prom_id
  851 + prom_id:fir_act.prom_id,
  852 + is_no_goto:1,//不进行跳转的意思
852 853 });
853 854 }
854 855 }
... ...