diff --git a/main/manager-web/src/router/index.js b/main/manager-web/src/router/index.js index 2190e990d..7abdd104c 100644 --- a/main/manager-web/src/router/index.js +++ b/main/manager-web/src/router/index.js @@ -2,6 +2,7 @@ import Vue from 'vue' import VueRouter from 'vue-router' import Welcome from '../views/welcome.vue' import Login from '../views/login.vue' +import register from '@/views/register.vue' Vue.use(VueRouter) @@ -27,7 +28,17 @@ const routes = [ component: function () { return import(/* webpackChunkName: "about" */ '../views/home.vue') } - } + }, + { + path: '/register', + name: 'register', + // route level code-splitting + // this generates a separate chunk (about.[hash].js) for this route + // which is lazy-loaded when the route is visited. + component: function () { + return import(/* webpackChunkName: "about" */ '../views/register.vue') + } + }, ] const router = new VueRouter({ diff --git a/main/manager-web/src/views/auth.scss b/main/manager-web/src/views/auth.scss new file mode 100644 index 000000000..2c282ac55 --- /dev/null +++ b/main/manager-web/src/views/auth.scss @@ -0,0 +1,132 @@ + +.welcome { + min-width: 1200px; + min-height: 675px; + height: 100vh; + background-image: url("@/assets/login/background.png"); + background-size: cover; + /* 确保背景图像覆盖整个元素 */ + background-position: center; + /* 从顶部中心对齐 */ + -webkit-background-size: cover; + /* 兼容老版本WebKit浏览器 */ + -o-background-size: cover; + /* 兼容老版本Opera浏览器 */ +} + +.login-text { + font-weight: 700; + font-size: 32px; + text-align: left; + color: #3d4566; +} + +.login-welcome { + font-weight: 400; + font-size: 9px; + text-align: left; + color: #818cae; + align-self: flex-end; + margin-bottom: 7px; +} + +.login-box { + position: absolute; + top: 50%; + transform: translateY(-50%); + right: 18%; + background-color: #fff; + border-radius: 20px; + padding: 35px 0; + width: 450px; + box-sizing: border-box; +} + +.el-dropdown-link { + font-weight: 400; + font-size: 14px; + text-align: left; + color: #979db1; +} + +.input-icon { + width: 19px; + height: 22px; + flex-shrink: 0; +} + +.login-btn { + height: 35px; + background: #5778ff; + border-radius: 10px; + font-weight: 400; + font-size: 14px; + cursor: pointer; + color: #fff; + line-height: 35px; + margin: 35px 15px 15px; +} + +.code-send { + width: 70px; + height: 32px; + border-radius: 10px; + background: #e6ebff; + line-height: 32px; + font-weight: 400; + font-size: 14px; + color: #5778ff; + flex-shrink: 0; + cursor: pointer; +} + +.input-box { + display: flex; + margin-top: 20px; + align-items: center; + border-radius: 10px; + background: #f6f8fb; + border: 1px solid #e4e6ef; + height: 40px; + padding: 0 15px; + gap: 20px; +} + +::v-deep { + .el-tabs__nav-wrap::after { + height: 1px; + } + + .el-tabs__nav-wrap::before { + content: ""; + position: absolute; + left: 0; + top: 0; + width: 100%; + height: 1px; + background-color: #e4e7ed; + z-index: 1; + } + + .el-tabs__item { + height: 65px; + line-height: 65px; + font-weight: 700; + color: #3d4566; + } + + .el-tabs__item.is-active { + color: #5778ff; + } + + .el-tabs__nav-scroll { + padding: 0 30px; + } + + .el-input__inner { + border: none; + background-color: transparent; + height: 56px; + padding: 0; + } +} diff --git a/main/manager-web/src/views/login.vue b/main/manager-web/src/views/login.vue index 38c5694d0..d5b2a3f4c 100644 --- a/main/manager-web/src/views/login.vue +++ b/main/manager-web/src/views/login.vue @@ -41,7 +41,7 @@
+
+
+
+
+
+
+