|
|
@@ -25,6 +25,7 @@ Page({
|
|
|
userInfo: res.data
|
|
|
})
|
|
|
this.getData();
|
|
|
+ this.getuser()
|
|
|
} else {
|
|
|
wx.switchTab({
|
|
|
url: '../user/user',
|
|
|
@@ -44,11 +45,26 @@ Page({
|
|
|
if (!this.data.userInfo.token) {
|
|
|
this.onLoad()
|
|
|
} else {
|
|
|
- console.log(233)
|
|
|
wx.showNavigationBarLoading()
|
|
|
this.getData()
|
|
|
+ thid.getuser()
|
|
|
}
|
|
|
},
|
|
|
+ getuser() {
|
|
|
+ wx.request({
|
|
|
+ url: host + '/api/wx/authinfo',
|
|
|
+ header: {
|
|
|
+ 'Authorization': this.data.userInfo.token
|
|
|
+ },
|
|
|
+ success: res => {
|
|
|
+ if (res.data.data.need_fill) {
|
|
|
+ wx.switchTab({
|
|
|
+ url: '../user/user',
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
getData() {
|
|
|
wx.request({
|
|
|
url: host + '/api/wx/group/rank/list',
|