From b8db892c2255b4beb56a5f50f461cd8ec0a37d13 Mon Sep 17 00:00:00 2001 From: devil_gong Date: Thu, 28 Nov 2019 17:45:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E5=B0=8F=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/appmini/old/weixin/app.js | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/public/appmini/old/weixin/app.js b/public/appmini/old/weixin/app.js index 2036b8ea5..f680fd644 100755 --- a/public/appmini/old/weixin/app.js +++ b/public/appmini/old/weixin/app.js @@ -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; -- GitLab