Commit 1dd40f0cef2cd13e70b8f05139c7fa254af84e2c
1 parent
966a8768
1. 活动开始时候,文字标题的蟹盖
2. 把模板预览改成 模板的标题
Showing
3 changed files
with
19 additions
and
5 deletions
pages/giftpack/giftpacklist/giftpacklist.js
pages/giftpack/giftpacklist/giftpacklist.wxml
... | ... | @@ -7,8 +7,18 @@ |
7 | 7 | <text class="data-v-3a5b7e36 ellipsis-2">{{giftTitle}}</text> |
8 | 8 | </view> |
9 | 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 | 22 | </view> |
13 | 23 | <view class="top_price data-v-3a5b7e36"> |
14 | 24 | <block wx:if="{{giftPrice>0}}"> | ... | ... |
pages/template/index.js
... | ... | @@ -45,6 +45,11 @@ Page({ |
45 | 45 | var data = res.data.data; |
46 | 46 | if (data) { |
47 | 47 | var temp_data = data; |
48 | + | |
49 | + wx.setNavigationBarTitle({ | |
50 | + title: temp_data.page_title, | |
51 | + }); | |
52 | + | |
48 | 53 | var t_arr = JSON.parse(temp_data.json_str); |
49 | 54 | th.setData({ |
50 | 55 | template_arr: t_arr, |
... | ... | @@ -63,9 +68,7 @@ Page({ |
63 | 68 | } |
64 | 69 | }) |
65 | 70 | |
66 | - wx.setNavigationBarTitle({ | |
67 | - title: '模板预览', | |
68 | - }); | |
71 | + | |
69 | 72 | |
70 | 73 | }, |
71 | 74 | ... | ... |