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 | 50 | if (options.is_libao == 1) { |
51 | 51 | th.setData({ |
52 | 52 | giftBagId: options.libao_id, |
53 | - is_type: 1 | |
53 | + is_type: 1, | |
54 | + taskId: options.taskId | |
54 | 55 | }) |
55 | 56 | th.GetBuyGiftList(); |
56 | 57 | } |
... | ... | @@ -61,14 +62,11 @@ Page({ |
61 | 62 | }) |
62 | 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 | 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 | 72 | help: function(e) { |
... | ... | @@ -204,7 +202,7 @@ Page({ |
204 | 202 | is_sub: 1 |
205 | 203 | }) |
206 | 204 | var json = { |
207 | - "actId": th.data.held_id, //活动Id | |
205 | + "actId": th.data.taskId, //活动Id | |
208 | 206 | "actType": 5, //活动类型 1:新人礼、2:评价有礼、3:节日营销、4:生日营销 |
209 | 207 | "giftBagId": th.data.giftBagId, //礼包Id |
210 | 208 | "storeId": a.stoid, //商家Id | ... | ... |
pages/user/assistance/giftpacklist.wxml