提交 b8db892c 编写于 作者: D devil_gong

微信小程序优化

上级 a8c61a6a
...@@ -559,24 +559,16 @@ App({ ...@@ -559,24 +559,16 @@ App({
} }
}, },
// 登录校验 /**
is_login_check(res) { * 登录校验
* object 回调操作对象
* method 回调操作对象的函数
*/
is_login_check(res, object, method) {
if(res.code == -400) if(res.code == -400)
{ {
wx.clearStorage(); wx.clearStorage();
wx.showModal({ this.get_user_info(object, method);
title: '温馨提示',
content: '授权用户信息',
confirmText: '确认',
cancelText: '暂不',
success: (result) => {
if (result.confirm) {
wx.navigateTo({
url: "/pages/login/login?event_callback=init"
});
}
},
});
return false; return false;
} }
return true; return true;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册