Commit 553618619e1242545f748f2f02603d3ae7cd76cc
1 parent
65dadb7b
只有礼品的要有兑换时间
Showing
3 changed files
with
10 additions
and
3 deletions
pages/giftpack/giftpacklist/giftpacklist.js
| ... | ... | @@ -228,6 +228,11 @@ Page({ |
| 228 | 228 | giftTitle: res.data.data.giftTitle, |
| 229 | 229 | default_color: res.data.data.bgcolor |
| 230 | 230 | }) |
| 231 | + | |
| 232 | + if(res.data.data.iswarelbtype==1) { | |
| 233 | + th.setData({iswarelbtype:1}) | |
| 234 | + } | |
| 235 | + | |
| 231 | 236 | if (!res.data.data.giftRemark || res.data.data.giftRemark == '') { |
| 232 | 237 | th.setData({ |
| 233 | 238 | giftRemark: '暂无详情......' | ... | ... |
pages/giftpack/giftpacklist/giftpacklist.wxml
| ... | ... | @@ -18,13 +18,13 @@ |
| 18 | 18 | </text> |
| 19 | 19 | </block> |
| 20 | 20 | <block wx:else> |
| 21 | - <text class="data-v-3a5b7e36" wx:if="{{isBuy==0}}">{{"兑换结束时间:"+giftDate}}</text> | |
| 21 | + <text class="data-v-3a5b7e36" wx:if="{{isBuy==0 && iswarelbtype}}">{{"兑换结束时间:"+giftDate}}</text> | |
| 22 | 22 | <text class="data-v-3a5b7e36" wx:else> |
| 23 | 23 | {{"活动结束时间:"+giftDate}} |
| 24 | 24 | </text> |
| 25 | 25 | </block> |
| 26 | 26 | </view> |
| 27 | - <view class="top_time data-v-3a5b7e36" wx:if="{{flag == 1}}"> | |
| 27 | + <view class="top_time data-v-3a5b7e36" wx:if="{{flag == 1 && iswarelbtype}}"> | |
| 28 | 28 | <text class="data-v-3a5b7e36" wx:if="{{exchangeType == 1}}"> |
| 29 | 29 | {{"兑换时间:领取后"+exchangeDay+"天内兑换"}} |
| 30 | 30 | </text> | ... | ... |
pages/giftpack/mygiftpack/mygiftpack.wxml
| ... | ... | @@ -81,7 +81,8 @@ |
| 81 | 81 | <view class="content_ware_price"> |
| 82 | 82 | <text>{{"零售价:¥"+item.giftPosPrice}}</text> |
| 83 | 83 | </view> |
| 84 | - <view class="content_ware_time"> | |
| 84 | + | |
| 85 | + <view class="content_ware_time" wx:if="{{item.iswarelbtype==1}}"> | |
| 85 | 86 | <block wx:if="{{getDate>item.endTime}}"> |
| 86 | 87 | <text>{{"兑换截至日期:"+item.endTime}}</text> |
| 87 | 88 | </block> |
| ... | ... | @@ -89,6 +90,7 @@ |
| 89 | 90 | <text>{{"距兑换开始时间: "+item.starTime}}</text> |
| 90 | 91 | </block> |
| 91 | 92 | </view> |
| 93 | + | |
| 92 | 94 | </view> |
| 93 | 95 | </view> |
| 94 | 96 | <view class="content_box_button" bindtap="navigateTo" data-url="/pages/giftpack/giftpacklist/giftpacklist?isBuy=0&lbId={{item.lbId}}&orderSn={{item.orderSn}}"> | ... | ... |