Commit 2a6960a288ef1f3ebd20a65c3c567f3c053a44c4
1 parent
4a7d01ad
选中助力任务与剩余时间的过滤器
Showing
2 changed files
with
15 additions
and
3 deletions
pages/user/assistance/surplus_time.wxs
0 → 100644
pages/user/assistance/task_assistance.js
... | ... | @@ -16,6 +16,7 @@ Page({ |
16 | 16 | is_task:0,//历史记录与任务 |
17 | 17 | aitem:"",//活动的轮播图 |
18 | 18 | switch_head: 0, //0:我的任务,1:记录 |
19 | + help_id:"",//活动的id | |
19 | 20 | }, |
20 | 21 | |
21 | 22 | /** |
... | ... | @@ -25,6 +26,7 @@ Page({ |
25 | 26 | var help_id=options.help_id; |
26 | 27 | console.log("是什么鬼",help_id); |
27 | 28 | var th=this; |
29 | + th.setData({help_id:help_id}); | |
28 | 30 | th.close(); |
29 | 31 | }, |
30 | 32 | // 轮播图点击左边 |
... | ... | @@ -89,10 +91,13 @@ Page({ |
89 | 91 | */ |
90 | 92 | onShow: function () { |
91 | 93 | var th=this; |
94 | + var help_id=th.data.help_id; | |
95 | + console.log("活动的id", help_id); | |
92 | 96 | /*-----统计-----*/ |
93 | - rq.get("/api/weshop/zl_task", { | |
94 | - data: { user_id: app_d.user_id, | |
95 | - strod_id:os.stoid | |
97 | + rq.get("/api/weshop/marketing/help/help/task/page", { | |
98 | + data: { | |
99 | + helpId: help_id, | |
100 | + storeId:os.stoid | |
96 | 101 | }, |
97 | 102 | success: function (su) { |
98 | 103 | ... | ... |