Commit 119f1180 by 梁建民

js

parent 3f52f0b8
......@@ -33,6 +33,7 @@ function addMember(id) {
data: member
});
}
App({
globalData: {
unReadMessageNum: 0,
......@@ -59,6 +60,21 @@ App({
onLaunch() {
let me = this;
//验证用户是否登录状态
wx.getStorage({
key: 'access_token',
success(res) {
if(res.data){
wx.switchTab({
url: '/pages/tab/home/home'
});
}
}
})
// 查看是否授权
wx.getSetting({
success(res) {
......
{
"pages": [
"pages/person/auth/index",
"pages/person/verifycode/index",
"pages/person/login/index",
"pages/person/auth/index",
"pages/person/getphone/index",
"pages/person/agreement/index",
"pages/person/successfully/index",
......
......@@ -82,7 +82,7 @@ Page({
//注入token
wx.setStorage({
key: "token",
key: "access_token",
data: res.data.access_token
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment