修复注册bug

This commit is contained in:
TOP糯米 2023-03-12 17:59:15 +08:00
parent 17c16ec9c8
commit b733cf1279
2 changed files with 3 additions and 4 deletions

View File

@ -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,
}

View File

@ -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) => {