修复注册bug
This commit is contained in:
parent
17c16ec9c8
commit
b733cf1279
|
@ -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,
|
||||
}
|
||||
|
|
|
@ -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) => {
|
||||
|
|
Loading…
Reference in New Issue