Commit 1dd40f0cef2cd13e70b8f05139c7fa254af84e2c
1 parent
966a8768
1. 活动开始时候,文字标题的蟹盖
2. 把模板预览改成 模板的标题
Showing
3 changed files
with
19 additions
and
5 deletions
pages/giftpack/giftpacklist/giftpacklist.js
| @@ -283,6 +283,7 @@ Page({ | @@ -283,6 +283,7 @@ Page({ | ||
| 283 | 283 | ||
| 284 | _this2.setData({ | 284 | _this2.setData({ |
| 285 | giftDate: res.data.data.endTime, | 285 | giftDate: res.data.data.endTime, |
| 286 | + giftStart: res.data.data.starTime, | ||
| 286 | giftPosPrice: res.data.data.giftPosPrice, | 287 | giftPosPrice: res.data.data.giftPosPrice, |
| 287 | giftQty: res.data.data.giftQty, | 288 | giftQty: res.data.data.giftQty, |
| 288 | giftIntegral: res.data.data.payIntegral, | 289 | giftIntegral: res.data.data.payIntegral, |
pages/giftpack/giftpacklist/giftpacklist.wxml
| @@ -7,8 +7,18 @@ | @@ -7,8 +7,18 @@ | ||
| 7 | <text class="data-v-3a5b7e36 ellipsis-2">{{giftTitle}}</text> | 7 | <text class="data-v-3a5b7e36 ellipsis-2">{{giftTitle}}</text> |
| 8 | </view> | 8 | </view> |
| 9 | <view class="top_time data-v-3a5b7e36"> | 9 | <view class="top_time data-v-3a5b7e36"> |
| 10 | - <text class="data-v-3a5b7e36" wx:if="{{isBuy==0}}">{{"兑换截至时间:"+giftDate}}</text> | ||
| 11 | - <text class="data-v-3a5b7e36" wx:else>{{"活动结束至时间:"+giftDate}}</text> | 10 | + <block wx:if="{{isBuy==1 && giftTitle && isStart!=1}}" > |
| 11 | + <text class="data-v-3a5b7e36"> | ||
| 12 | + {{"活动开始时间:"+giftStart}} | ||
| 13 | + </text> | ||
| 14 | + </block> | ||
| 15 | + <block wx:else> | ||
| 16 | + <text class="data-v-3a5b7e36" wx:if="{{isBuy==0}}">{{"兑换结束时间:"+giftDate}}</text> | ||
| 17 | + <text class="data-v-3a5b7e36" wx:else> | ||
| 18 | + {{"活动结束时间:"+giftDate}} | ||
| 19 | + </text> | ||
| 20 | + </block> | ||
| 21 | + | ||
| 12 | </view> | 22 | </view> |
| 13 | <view class="top_price data-v-3a5b7e36"> | 23 | <view class="top_price data-v-3a5b7e36"> |
| 14 | <block wx:if="{{giftPrice>0}}"> | 24 | <block wx:if="{{giftPrice>0}}"> |
pages/template/index.js
| @@ -45,6 +45,11 @@ Page({ | @@ -45,6 +45,11 @@ Page({ | ||
| 45 | var data = res.data.data; | 45 | var data = res.data.data; |
| 46 | if (data) { | 46 | if (data) { |
| 47 | var temp_data = data; | 47 | var temp_data = data; |
| 48 | + | ||
| 49 | + wx.setNavigationBarTitle({ | ||
| 50 | + title: temp_data.page_title, | ||
| 51 | + }); | ||
| 52 | + | ||
| 48 | var t_arr = JSON.parse(temp_data.json_str); | 53 | var t_arr = JSON.parse(temp_data.json_str); |
| 49 | th.setData({ | 54 | th.setData({ |
| 50 | template_arr: t_arr, | 55 | template_arr: t_arr, |
| @@ -63,9 +68,7 @@ Page({ | @@ -63,9 +68,7 @@ Page({ | ||
| 63 | } | 68 | } |
| 64 | }) | 69 | }) |
| 65 | 70 | ||
| 66 | - wx.setNavigationBarTitle({ | ||
| 67 | - title: '模板预览', | ||
| 68 | - }); | 71 | + |
| 69 | 72 | ||
| 70 | }, | 73 | }, |
| 71 | 74 |