修复注册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) {
|
if (user.password.length < 6 || user.password.length > 16) {
|
||||||
return reject('密码在6至16位字符之间');
|
return reject('密码在6至16位字符之间');
|
||||||
}
|
}
|
||||||
if (!user.openid) {
|
if (!user.openId) {
|
||||||
return reject('缺少OpenId,请重启应用');
|
return reject('缺少OpenId,请重启应用');
|
||||||
}
|
}
|
||||||
prototype.$request({
|
prototype.$request({
|
||||||
|
@ -116,7 +116,7 @@ export default {
|
||||||
data: {
|
data: {
|
||||||
username: user.mobile,
|
username: user.mobile,
|
||||||
password: user.password,
|
password: user.password,
|
||||||
openid: user.openid,
|
openid: user.openId,
|
||||||
verification_code: verificationCode,
|
verification_code: verificationCode,
|
||||||
types: 1,
|
types: 1,
|
||||||
}
|
}
|
||||||
|
|
|
@ -209,7 +209,6 @@ export default {
|
||||||
* 注册
|
* 注册
|
||||||
*/
|
*/
|
||||||
register() {
|
register() {
|
||||||
const that = this;
|
|
||||||
if (!this.isAgree) {
|
if (!this.isAgree) {
|
||||||
this.$utils.toast("请先阅读并同意《服务协议》《隐私政策》");
|
this.$utils.toast("请先阅读并同意《服务协议》《隐私政策》");
|
||||||
return;
|
return;
|
||||||
|
@ -225,7 +224,7 @@ export default {
|
||||||
)
|
)
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
this.$utils.toast(response.msg).then(() => {
|
this.$utils.toast(response.msg).then(() => {
|
||||||
this.$utils.toPage("/pages/auth/auth");
|
this.tabIndex = 0;
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
|
|
Loading…
Reference in New Issue