diff --git a/src/router/modules/account.js b/src/router/modules/account.js deleted file mode 100644 index 556c82e..0000000 --- a/src/router/modules/account.js +++ /dev/null @@ -1,3 +0,0 @@ -export default [ - -] diff --git a/src/theme/breadcrumb-item.css b/src/theme/breadcrumb-item.css deleted file mode 100644 index e69de29..0000000 diff --git a/src/views/account/ForgetPwd.vue b/src/views/account/ForgetPwd.vue index 2863a1a..a136654 100644 --- a/src/views/account/ForgetPwd.vue +++ b/src/views/account/ForgetPwd.vue @@ -2,6 +2,9 @@
关于TDuckApp登录
@@ -71,9 +79,13 @@ import {getCurrentDomain} from '@/utils' // 引入组件 import constants from '@/utils/constants' +import Register from '../register/index.vue' export default { name: 'Login', + components: { + Register + }, data() { const validateAccount = (rule, value, callback) => { const reg1 = /^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z0-9]{2,6}$/ @@ -85,6 +97,7 @@ export default { } } return { + formType: 'login', loginType: 'account', agreeProtocol: '', accountLoginRules: { @@ -185,14 +198,26 @@ export default { } }) }, + registerSuccessHandle() { + this.formType = 'login' + this.loginType = 'account' + }, loginHandle() { - this.$api.request({ - url: '/login/account', - method: 'post', - data: this.accountForm - }).then(res => { - this.loginSuccessHandle(res.data) + this.$refs['accountLoginForm'].validate(valid => { + if (valid) { + this.$api.request({ + url: '/login/account', + method: 'post', + data: this.accountForm + }).then(res => { + this.loginSuccessHandle(res.data) + }) + } else { + console.log('error submit!!') + return false + } }) + } } } @@ -250,6 +275,11 @@ export default { } } +.other-login-icon { + font-size: 25px; + cursor: pointer; +} + .logo-content ::v-deep.el-tabs__nav-wrap::after { position: static !important; } @@ -268,11 +298,23 @@ export default { ::v-deep .el-input { height: 39px !important; + line-height: 39px !important; +} + +.link-btn { + font-size: 12px !important; } ::v-deep .el-input__inner { height: 39px !important; - background: transparent; + line-height: 39px !important; + background: #F2F2F2 !important; + border: none; } +::v-deep .el-button { + background: #408EFC; + border-radius: 10px; + width: 145px; +} diff --git a/src/views/account/register/index.vue b/src/views/account/register/index.vue new file mode 100644 index 0000000..edf36b7 --- /dev/null +++ b/src/views/account/register/index.vue @@ -0,0 +1,220 @@ + +注册成为Tduck体验用户~
+