111
This commit is contained in:
@@ -50,31 +50,12 @@ const wxSilentLogin = () => {
|
||||
.token)
|
||||
|
||||
|
||||
getApp().globalData.username = res.data.data
|
||||
.name
|
||||
getApp().globalData.token = res.data.data.token
|
||||
getApp().globalData.sid = res.data.data.sid
|
||||
getApp().globalData.mobile = res.data.data
|
||||
.mobile
|
||||
|
||||
getApp().globalData.isAdmin = res.data.data
|
||||
.isAdmin
|
||||
getApp().globalData.orgSidPath = res.data.data
|
||||
.orgSidPath
|
||||
getApp().globalData.orgNamePath = res.data.data
|
||||
.orgNamePath
|
||||
getApp().globalData.organizationSid = res.data
|
||||
.data.organizationSid
|
||||
getApp().globalData.headImage = res.data.data
|
||||
.headImage
|
||||
|
||||
getApp().globalData.isLogin = true
|
||||
|
||||
uni.setStorageSync("Global-Auth-Token", res.data
|
||||
.data.token)
|
||||
uni.setStorageSync("sid", res.data.data.sid)
|
||||
uni.setStorageSync("isLogin", true)
|
||||
getApp().globalData.sid = res.data.data
|
||||
.sid
|
||||
|
||||
uni.switchTab({
|
||||
url: '/pages/card/card'
|
||||
})
|
||||
}
|
||||
} else {
|
||||
getApp().globalData.isLogin = false
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/index/index",
|
||||
"path": "pages/home/UserFragment",
|
||||
"style": {
|
||||
"navigationBarTitleText": "绑定账号",
|
||||
"navigationStyle": "custom",
|
||||
@@ -42,8 +42,8 @@
|
||||
"pagePath": "pages/card/card",
|
||||
"text": "首页"
|
||||
}, {
|
||||
"pagePath": "pages/index/index",
|
||||
"text": "通知"
|
||||
"pagePath": "pages/home/UserFragment",
|
||||
"text": "我的"
|
||||
}]
|
||||
},
|
||||
"uniIdRouter": {}
|
||||
|
||||
Reference in New Issue
Block a user