- 
Status changed to merged 
- 
mentioned in commit 88eb8a9cf79b43612f85ee1154ae915e28e787e9 
Showing
3 changed files
pages/getphone/getphone.js
| @@ -21,8 +21,9 @@ Page({ | @@ -21,8 +21,9 @@ Page({ | ||
| 21 | if (getApp().globalData.userInfo) | 21 | if (getApp().globalData.userInfo) | 
| 22 | openid = getApp().globalData.userInfo.weapp_openid; | 22 | openid = getApp().globalData.userInfo.weapp_openid; | 
| 23 | } | 23 | } | 
| 24 | + var r = getApp().globalData.getu; | ||
| 24 | 25 | ||
| 25 | - if(openid=="" || openid==null ){ | 26 | + if (openid == "" || openid == null || r==null ){ | 
| 26 | getApp().globalData.user_id=null; | 27 | getApp().globalData.user_id=null; | 
| 27 | getApp().globalData.userInfo=null; | 28 | getApp().globalData.userInfo=null; | 
| 28 | console.log("openid"); | 29 | console.log("openid"); | 
| @@ -102,7 +103,7 @@ Page({ | @@ -102,7 +103,7 @@ Page({ | ||
| 102 | } | 103 | } | 
| 103 | 104 | ||
| 104 | wx.setStorageSync("userinfo",e.data.data); | 105 | wx.setStorageSync("userinfo",e.data.data); | 
| 105 | - wx.setStorageSync("isAuth", !0), a.globalData.userInfo = e.data.data, a.globalData.userInfo.head_pic = t.getFullUrl(a.globalData.userInfo.head_pic); | 106 | + wx.setStorageSync("isAuth", !0), app.globalData.userInfo = e.data.data, app.globalData.userInfo.head_pic = t.getFullUrl(a.globalData.userInfo.head_pic); | 
| 106 | wx.navigateBack({ delta: 1}) | 107 | wx.navigateBack({ delta: 1}) | 
| 107 | 108 | ||
| 108 | }, | 109 | }, | 
pages/team/team_show/team_show.js
| @@ -77,8 +77,13 @@ Page({ | @@ -77,8 +77,13 @@ Page({ | ||
| 77 | 77 | ||
| 78 | //显示加载 | 78 | //显示加载 | 
| 79 | onShow:function(){ | 79 | onShow:function(){ | 
| 80 | - var tg_id = this.data.tg_id; | ||
| 81 | - this.init(tg_id) | 80 | + var tg_id = this.data.tg_id,th=this; | 
| 81 | + this.init(tg_id); | ||
| 82 | + | ||
| 83 | + getApp().get_user_store(function (e) { | ||
| 84 | + if(e) | ||
| 85 | + th.setData({ pick_id: e.pickup_id, end_name: e.pickup_name,ii:1 }) | ||
| 86 | + }) | ||
| 82 | }, | 87 | }, | 
| 83 | 88 | ||
| 84 | //c点击打开拼团弹窗 | 89 | //c点击打开拼团弹窗 | 
pages/user/assistance/friend_assistance.js
| @@ -55,9 +55,9 @@ Page({ | @@ -55,9 +55,9 @@ Page({ | ||
| 55 | */ | 55 | */ | 
| 56 | onShow: function() { | 56 | onShow: function() { | 
| 57 | var th=this; | 57 | var th=this; | 
| 58 | + if (!th.data.user) th.setData({ user: getApp().globalData.userInfo}); | ||
| 58 | if (this.data.tasking != null && this.data.tasking != 'undefined' && this.data.tasking != "" && this.data.tasking != | 59 | if (this.data.tasking != null && this.data.tasking != 'undefined' && this.data.tasking != "" && this.data.tasking != | 
| 59 | 0) { | 60 | 0) { | 
| 60 | - | ||
| 61 | getApp().request.promiseGet("/api/weshop/marketing/help/help/tasking/get", { | 61 | getApp().request.promiseGet("/api/weshop/marketing/help/help/tasking/get", { | 
| 62 | data: { | 62 | data: { | 
| 63 | taskingId: th.data.tasking, | 63 | taskingId: th.data.tasking, | 
