|
|
@ -203,13 +203,15 @@ export default { |
|
|
// #ifdef H5 |
|
|
// #ifdef H5 |
|
|
this.$dialog.confirm({ |
|
|
this.$dialog.confirm({ |
|
|
title: this.$t("common.tips"), |
|
|
title: this.$t("common.tips"), |
|
|
message: this.$t('common.toDwon'), |
|
|
// message: this.$t('common.toDwon'), |
|
|
|
|
|
message: this.$t('common.toDwon1'), |
|
|
confirmButtonText: this.$t("common.confirm"), //改变确认按钮上显示的文字 |
|
|
confirmButtonText: this.$t("common.confirm"), //改变确认按钮上显示的文字 |
|
|
cancelButtonText: this.$t("common.cancel"), |
|
|
cancelButtonText: this.$t("common.cancel"), |
|
|
cancel:true |
|
|
cancel:true |
|
|
}) |
|
|
}) |
|
|
.then(() => { |
|
|
.then(() => { |
|
|
window.open(app.down, "_blank "); |
|
|
// window.open(app.down, "_blank "); |
|
|
|
|
|
this.login() |
|
|
}).catch(()=>{ |
|
|
}).catch(()=>{ |
|
|
if (this.query.from) { |
|
|
if (this.query.from) { |
|
|
this.$back(); |
|
|
this.$back(); |
|
|
@ -228,6 +230,23 @@ export default { |
|
|
this.$toast(this.$t('reg.c5')); |
|
|
this.$toast(this.$t('reg.c5')); |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
//注册完成后登录 |
|
|
|
|
|
login(){ |
|
|
|
|
|
let data={type: 2,account:this.form.account,password: this.form.password} |
|
|
|
|
|
Member.login(this.form) |
|
|
|
|
|
.then((res) => { |
|
|
|
|
|
this.loginSuccess(res.data); |
|
|
|
|
|
}) |
|
|
|
|
|
.catch(() => { |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
// 登录成功 |
|
|
|
|
|
loginSuccess(data) { |
|
|
|
|
|
this.setToken(data.token); |
|
|
|
|
|
this.setUser(data.user); |
|
|
|
|
|
this._router.replace("/pages/auth/index?type=1"); |
|
|
|
|
|
}, |
|
|
// 获取协议 |
|
|
// 获取协议 |
|
|
clause() { |
|
|
clause() { |
|
|
Member.clause().then((res) => { |
|
|
Member.clause().then((res) => { |
|
|
|