From b733cf1279eb1c6e067c7803c96efd51d560e134 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?TOP=E7=B3=AF=E7=B1=B3?= <1130395124@qq.com> Date: Sun, 12 Mar 2023 17:59:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B3=A8=E5=86=8Cbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/models/user.js | 4 ++-- src/pages/auth/auth.vue | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/core/models/user.js b/src/core/models/user.js index 8e203aa..787f5e3 100644 --- a/src/core/models/user.js +++ b/src/core/models/user.js @@ -108,7 +108,7 @@ export default { if (user.password.length < 6 || user.password.length > 16) { return reject('密码在6至16位字符之间'); } - if (!user.openid) { + if (!user.openId) { return reject('缺少OpenId,请重启应用'); } prototype.$request({ @@ -116,7 +116,7 @@ export default { data: { username: user.mobile, password: user.password, - openid: user.openid, + openid: user.openId, verification_code: verificationCode, types: 1, } diff --git a/src/pages/auth/auth.vue b/src/pages/auth/auth.vue index a83f6c3..64bedc1 100644 --- a/src/pages/auth/auth.vue +++ b/src/pages/auth/auth.vue @@ -209,7 +209,6 @@ export default { * 注册 */ register() { - const that = this; if (!this.isAgree) { this.$utils.toast("请先阅读并同意《服务协议》《隐私政策》"); return; @@ -225,7 +224,7 @@ export default { ) .then((response) => { this.$utils.toast(response.msg).then(() => { - this.$utils.toPage("/pages/auth/auth"); + this.tabIndex = 0; }); }) .catch((e) => {