微信小程序优化

feat/task1-c-wallet
devil_gong 2019-11-28 17:45:40 +08:00
parent a8c61a6ae4
commit b8db892c22
1 changed files with 7 additions and 15 deletions

View File

@ -559,24 +559,16 @@ App({
}
},
// 登录校验
is_login_check(res) {
/**
* 登录校验
* object 回调操作对象
* method 回调操作对象的函数
*/
is_login_check(res, object, method) {
if(res.code == -400)
{
wx.clearStorage();
wx.showModal({
title: '温馨提示',
content: '授权用户信息',
confirmText: '确认',
cancelText: '暂不',
success: (result) => {
if (result.confirm) {
wx.navigateTo({
url: "/pages/login/login?event_callback=init"
});
}
},
});
this.get_user_info(object, method);
return false;
}
return true;