diff --git a/pages/giftpack/giftpacklist/giftpacklist.js b/pages/giftpack/giftpacklist/giftpacklist.js index ff806b1..1e0becd 100644 --- a/pages/giftpack/giftpacklist/giftpacklist.js +++ b/pages/giftpack/giftpacklist/giftpacklist.js @@ -283,6 +283,7 @@ Page({ _this2.setData({ giftDate: res.data.data.endTime, + giftStart: res.data.data.starTime, giftPosPrice: res.data.data.giftPosPrice, giftQty: res.data.data.giftQty, giftIntegral: res.data.data.payIntegral, diff --git a/pages/giftpack/giftpacklist/giftpacklist.wxml b/pages/giftpack/giftpacklist/giftpacklist.wxml index 92065b4..70208c2 100644 --- a/pages/giftpack/giftpacklist/giftpacklist.wxml +++ b/pages/giftpack/giftpacklist/giftpacklist.wxml @@ -7,8 +7,18 @@ {{giftTitle}} - {{"兑换截至时间:"+giftDate}} - {{"活动结束至时间:"+giftDate}} + + + {{"活动开始时间:"+giftStart}} + + + + {{"兑换结束时间:"+giftDate}} + + {{"活动结束时间:"+giftDate}} + + + diff --git a/pages/template/index.js b/pages/template/index.js index 28870d2..bfbc70d 100644 --- a/pages/template/index.js +++ b/pages/template/index.js @@ -45,6 +45,11 @@ Page({ var data = res.data.data; if (data) { var temp_data = data; + + wx.setNavigationBarTitle({ + title: temp_data.page_title, + }); + var t_arr = JSON.parse(temp_data.json_str); th.setData({ template_arr: t_arr, @@ -63,9 +68,7 @@ Page({ } }) - wx.setNavigationBarTitle({ - title: '模板预览', - }); + },