diff --git a/pages/login/login.vue b/pages/login/login.vue index da26b0a..31833c9 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -40,7 +40,7 @@ - 微信一键登录 + 手机号快捷登录 @@ -95,7 +95,7 @@ export default { if (code) { this.code = code; } else { - return uni.showToast({ icon: 'none', title: '微信授权失败' }); + return uni.showToast({ icon: 'none', title: '授权失败' }); } }, }); @@ -136,6 +136,10 @@ export default { if (!this.isChecked) { return uni.showToast({ icon: 'none', title: '请您阅读并勾选《用户协议》和《隐私政策》' }); } + if (!e.detail.code) { + return; + } + console.info(e.detail); if (!this.submitting) { this.submitting = true; uni.$u.api.login -- libgit2 0.21.0