From 97dd73c0532f2f4916b2670c9124d0bb90f594a0 Mon Sep 17 00:00:00 2001 From: devil_gong Date: Mon, 28 Oct 2019 11:06:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=B4=E6=9D=A1=E5=B0=8F=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/appmini/old/toutiao/pages/login/login.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/public/appmini/old/toutiao/pages/login/login.js b/public/appmini/old/toutiao/pages/login/login.js index b56d0d704..9a31566a0 100755 --- a/public/appmini/old/toutiao/pages/login/login.js +++ b/public/appmini/old/toutiao/pages/login/login.js @@ -52,16 +52,13 @@ Page({ setTimeout(function(){ self.get_user_info_event(); }, 1000); + + // 第一次失败使用授权后更新状态 + self.setData({is_first_authorize_error: false}); } else { app.showToast('请同意用户信息授权'); tt.openSetting(); } - - // 头条bug-第一次失败使用授权后更新状态 - if(self.data.is_first_authorize_error == true) - { - self.setData({is_first_authorize_error: false}); - } } }); } else { -- GitLab