-
+
Welcome Dootask
-
{{$L('输入您的凭证以访问您的帐户。')}}
+
+
{{$L('输入您的信息以创建帐户。')}}
+
{{$L('输入您的凭证以访问您的帐户。')}}
+
-
+
@@ -33,10 +42,15 @@ export default {
loginType: 'login',
email: '',
password: '',
+ password2: '',
code: '',
}
},
methods: {
+ forgotPassword() {
+ $A.modalWarning("请联系管理员!");
+ },
+
reCode() {
this.codeUrl = this.$store.state.method.apiUrl('users/login/codeimg?_=' + Math.random())
},
@@ -69,6 +83,12 @@ export default {
if (!this.password) {
return;
}
+ if (this.loginType == 'reg') {
+ if (this.password != this.password2) {
+ $A.noticeError("确认密码输入不一致");
+ return;
+ }
+ }
this.loadIng++;
this.$store.dispatch("call", {
url: 'users/login',
@@ -80,6 +100,7 @@ export default {
},
}).then(({data}) => {
this.loadIng--;
+ this.$store.state.method.clearLocal();
this.$store.dispatch("saveUserInfo", data);
this.goNext();
}).catch(({data, msg}) => {
diff --git a/resources/assets/js/pages/manage.vue b/resources/assets/js/pages/manage.vue
index db0c431f..25818269 100644
--- a/resources/assets/js/pages/manage.vue
+++ b/resources/assets/js/pages/manage.vue
@@ -1,8 +1,12 @@