Commit f5e36aba2dd9fa409bcbdb968cdf708a6512c424
1 parent
8cdcc4fc
帮拆记录的功能实现
Showing
1 changed file
with
5 additions
and
4 deletions
pages/user/assistance/friend_assistance.js
... | ... | @@ -20,12 +20,12 @@ Page({ |
20 | 20 | */ |
21 | 21 | onLoad: function (options) { |
22 | 22 | var th=this; |
23 | - this.data.task_id=options.options; | |
24 | - this.data.userId=options.userId; | |
23 | + if(options.task_id) this.data.task_id=options.task_id; | |
24 | + if(options.userId) this.data.userId=options.userId; | |
25 | 25 | //任务是不是为空 |
26 | 26 | if(this.data.task_id==0 || this.data.task_id==undefined){ |
27 | 27 | this.data.task_id= decodeURIComponent(options.scene); |
28 | - if(this.data.task_id){ | |
28 | + if(this.data.task_id!=null && this.data.task_id!='undefined' && this.data.task_id!="" && this.data.task_id!=0){ | |
29 | 29 | getApp().request.get("http://172.20.3.102:8022/api/weshop/zl_act_user",{ |
30 | 30 | data:{}, |
31 | 31 | success:function(res){ |
... | ... | @@ -57,7 +57,8 @@ Page({ |
57 | 57 | cklie_button:function(){ |
58 | 58 | var th=this; |
59 | 59 | var t_user_id=app_d.user_id; |
60 | - var data={id:this.data.task_id,storeId:os.store_id,userId:this.data.user_id, zlUserId:t_user_id}; | |
60 | + var data={id:this.data.task_id,storeId:os.stoid,userId:this.data.user_id, zlUserId:t_user_id}; | |
61 | + console.log(data); | |
61 | 62 | getApp().request.json_post("/api/weshop/marketing/help/help/task/involve/insert", |
62 | 63 | data, //入参 |
63 | 64 | function(res){ //成功 | ... | ... |