Commit 81bb33f0dff999bdfe56693398446e725ec99095
1 parent
2559a2fd
礼包详情的优化
Showing
2 changed files
with
7 additions
and
9 deletions
pages/user/assistance/giftpacklist.js
@@ -50,7 +50,8 @@ Page({ | @@ -50,7 +50,8 @@ Page({ | ||
50 | if (options.is_libao == 1) { | 50 | if (options.is_libao == 1) { |
51 | th.setData({ | 51 | th.setData({ |
52 | giftBagId: options.libao_id, | 52 | giftBagId: options.libao_id, |
53 | - is_type: 1 | 53 | + is_type: 1, |
54 | + taskId: options.taskId | ||
54 | }) | 55 | }) |
55 | th.GetBuyGiftList(); | 56 | th.GetBuyGiftList(); |
56 | } | 57 | } |
@@ -61,14 +62,11 @@ Page({ | @@ -61,14 +62,11 @@ Page({ | ||
61 | }) | 62 | }) |
62 | th.GetMyGiftList(); | 63 | th.GetMyGiftList(); |
63 | } | 64 | } |
65 | + var nav_b = th.selectComponent("#nav_b"); //组件的id | ||
66 | + nav_b.set_name("助力", "/pages/user/assistance/assistance"); | ||
64 | }, | 67 | }, |
65 | onShow: function() { | 68 | onShow: function() { |
66 | - var th = this; | ||
67 | - var is_read = th.data.is_read; | ||
68 | - if (is_read){ | ||
69 | - var nav_b = th.selectComponent("#nav_b"); //组件的id | ||
70 | - nav_b.set_name("助力", "/pages/user/assistance/assistance"); | ||
71 | - } | 69 | + |
72 | }, | 70 | }, |
73 | //助力活动查看礼包详情调用 | 71 | //助力活动查看礼包详情调用 |
74 | help: function(e) { | 72 | help: function(e) { |
@@ -204,7 +202,7 @@ Page({ | @@ -204,7 +202,7 @@ Page({ | ||
204 | is_sub: 1 | 202 | is_sub: 1 |
205 | }) | 203 | }) |
206 | var json = { | 204 | var json = { |
207 | - "actId": th.data.held_id, //活动Id | 205 | + "actId": th.data.taskId, //活动Id |
208 | "actType": 5, //活动类型 1:新人礼、2:评价有礼、3:节日营销、4:生日营销 | 206 | "actType": 5, //活动类型 1:新人礼、2:评价有礼、3:节日营销、4:生日营销 |
209 | "giftBagId": th.data.giftBagId, //礼包Id | 207 | "giftBagId": th.data.giftBagId, //礼包Id |
210 | "storeId": a.stoid, //商家Id | 208 | "storeId": a.stoid, //商家Id |
pages/user/assistance/giftpacklist.wxml
@@ -141,4 +141,4 @@ | @@ -141,4 +141,4 @@ | ||
141 | <!-- 弹出框扫描 --> | 141 | <!-- 弹出框扫描 --> |
142 | <qr_code id="qc_com"></qr_code> | 142 | <qr_code id="qc_com"></qr_code> |
143 | <!-- 制作一个圆球导航 --> | 143 | <!-- 制作一个圆球导航 --> |
144 | -<nav_b wx:if="{{is_head}}" id="nav_b"></nav_b> | ||
145 | \ No newline at end of file | 144 | \ No newline at end of file |
145 | +<nav_b id="nav_b"></nav_b> | ||
146 | \ No newline at end of file | 146 | \ No newline at end of file |