@@ -13,9 +13,16 @@ Page({
wx.getSetting({
success: (res) => {
if (res.authSetting['scope.userInfo']) {
- wx.reLaunch({
- url: '/pages/index/index',
+ // app.globalData.userInfo = res.userInfo
+ wx.getUserInfo({
+ success: res => {
+ app.globalData.userInfo = res.userInfo
+ wx.reLaunch({
+ url: '/pages/index/index',
+ })
+ }
})
+
}
@@ -374,7 +374,7 @@ Page({
that.posthisfind(JSON.parse(options.row).industryId,)
that.postpredfind(JSON.parse(options.row).industryId,)
-
+ console.log(app.globalData.userInfo)
},
postfollow:function(){
var that = this;