diff --git a/src/assets/css/style.css b/src/assets/css/style.css index 59eb23e..a936de1 100644 --- a/src/assets/css/style.css +++ b/src/assets/css/style.css @@ -107,13 +107,42 @@ body, --mosaic-bg-size: 1rem; --mosaic-bg-color1: #efefef; --mosaic-bg-color2: #fff; - background-image: repeating-conic-gradient(var(--mosaic-bg-color1) 0% 25%, var(--mosaic-bg-color2) 0% 50%); + background-image: repeating-conic-gradient( + var(--mosaic-bg-color1) 0% 25%, + var(--mosaic-bg-color2) 0% 50% + ); background-repeat: repeat; background-position: 50% 50%; background-size: var(--mosaic-bg-size) var(--mosaic-bg-size); } + +.flex { + display: flex; +} +.flex-center { + justify-content: center; + align-items: center; +} +.flex-1 { + flex: 1; +} +.flex-col { + flex-direction: column; +} +.align-center { + align-items: center; +} +.space-between { + justify-content: space-between; +} +.justify-center { + justify-content: center; +} +.relative { + position: relative; +} button[custom], -button[custom="white"] { +button[custom='white'] { min-width: 19.4rem; height: 5rem; padding: 0 1rem; @@ -126,11 +155,11 @@ button[custom="white"] { cursor: pointer; } button[custom]:active, -button[custom="white"]:active { +button[custom='white']:active { background: var(--button-click-bgcolor, #e4e4e4); color: var(--button-click-color, #232323); } -button[custom="black"] { +button[custom='black'] { --button-bgcolor: #232323; --button-color: #fff; --button-click-bgcolor: #333; diff --git a/src/assets/icons/ThumbEdit.svg b/src/assets/icons/ThumbEdit.svg new file mode 100644 index 0000000..75210f0 --- /dev/null +++ b/src/assets/icons/ThumbEdit.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/assets/icons/dui.svg b/src/assets/icons/dui.svg new file mode 100644 index 0000000..03f4227 --- /dev/null +++ b/src/assets/icons/dui.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/icons/eye.svg b/src/assets/icons/eye.svg new file mode 100644 index 0000000..9b4d290 --- /dev/null +++ b/src/assets/icons/eye.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/assets/images/edit.png b/src/assets/images/edit.png new file mode 100644 index 0000000..b43c3ad Binary files /dev/null and b/src/assets/images/edit.png differ diff --git a/src/lang/en.ts b/src/lang/en.ts index 42fe27c..925d091 100644 --- a/src/lang/en.ts +++ b/src/lang/en.ts @@ -7,9 +7,11 @@ export default { name: 'Name', email: 'Email', password: 'Password', + passwordConfirmation: 'Password Confirmation', enterName: 'Enter your name', enterEmail: 'Enter your email', enterPassword: 'Enter your password', + enterPasswordAgain: 'Enter your password again', forgotPassword: 'Forget password?', pleaseInputName: 'Please input the name', nameLengthError: 'Name length must be between {min} and {max} characters', @@ -28,7 +30,7 @@ export default { havenAccountToLogin: `Already have an account? Log in`, verifyEmail: 'Verify your email address', verifyCodeHasSent: 'A verification code has been sent to
{email}', - verify: 'Verify', + verify: 'VERIFY', resendCode: 'Resend Code', resendCodeIn: 'Resend Code in {time}', orContinueWith: 'or continue with', diff --git a/src/lang/zh-cn.ts b/src/lang/zh-cn.ts index 1afe79a..4e078c4 100644 --- a/src/lang/zh-cn.ts +++ b/src/lang/zh-cn.ts @@ -8,9 +8,11 @@ export default { name: '姓名', email: '邮箱', password: '密码', + passwordConfirmation: '密码确认', enterName: '请输入姓名', enterEmail: '请输入邮箱', enterPassword: '请输入密码', + enterPasswordAgain: '请输入密码确认', forgotPassword: '忘记密码?', pleaseInputName: '请输入姓名', nameLengthError: '姓名长度必须在 {min} 到 {max} 个字符之间', diff --git a/src/router/index.ts b/src/router/index.ts index a2e30c1..fdaf872 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -7,42 +7,46 @@ import { createRouter, createWebHistory } from 'vue-router' * 3. 路由的name默认是文件名,如果文件名与name不一致,通过defineOptions({ name: 'componentName' })来设置 */ const router = createRouter({ - history: createWebHistory('/'), - // history: createWebHistory(import.meta.env.VITE_APP_URL), - routes: [ - { - path: '/', - name: 'home', - component: () => import('../views/home/index.vue'), - }, - { - path: '/collectionStory', - name: 'collectionStory', - component: () => import('../views/collectionStory/index.vue'), - }, - { - path: '/brand', - name: 'brand', - component: () => import('../views/brand/index.vue'), - }, - { - path: '/digitalItem', - name: 'digitalItem', - component: () => import('../views/digitalItem/index.vue'), - }, - { - path: '/:pathMatch(.*)', - name: '404', - component: () => import('../views/404.vue'), - }, - ] + routes: [ + { + path: '/', + name: 'home', + component: () => import('../views/home/index.vue') + }, + { + path: '/collectionStory', + name: 'collectionStory', + component: () => import('../views/collectionStory/index.vue') + }, + { + path: '/brand', + name: 'brand', + component: () => import('../views/brand/index.vue') + }, + { + path: '/digitalItem', + name: 'digitalItem', + component: () => import('../views/digitalItem/index.vue'), + }, + { + path: '/settings', + name: 'settings', + component: () => import('@/views/setting/index.vue'), + meta: { cache: true } + }, + { + path: '/:pathMatch(.*)', + name: '404', + component: () => import('../views/404.vue') + } + ], + history: createWebHistory('/') }) router.beforeEach((to, from, next) => { - next() + next() }) -router.afterEach(() => { -}) +router.afterEach(() => {}) export default router diff --git a/src/views/login/css/style.css b/src/views/login/css/style.css index d2a446c..ffb085f 100644 --- a/src/views/login/css/style.css +++ b/src/views/login/css/style.css @@ -38,7 +38,7 @@ --el-input-border-radius: 0; --el-input-text-color: #232323; --el-border-color: #C4C4C4; - font-size: 1.4rem; + font-size: 1rem; } .retrieve-password:deep(.el-form) .el-input::placeholder, .register:deep(.el-form) .el-input::placeholder, diff --git a/src/views/login/email-verify.vue b/src/views/login/email-verify.vue index e402574..7aacbba 100644 --- a/src/views/login/email-verify.vue +++ b/src/views/login/email-verify.vue @@ -1,5 +1,5 @@ @@ -29,7 +29,8 @@ type: String as () => 'LOGIN' | 'REGISTER' | 'FORGOT_PWD', required: true }, - password: { type: String, default: '' } + password: { type: String, default: '' }, + isShowOtherLogin: { type: Boolean, default: true } }) const code = ref('') const time = ref(60) @@ -96,7 +97,7 @@ diff --git a/src/views/login/less/style.less b/src/views/login/less/style.less index bac666c..a423d11 100644 --- a/src/views/login/less/style.less +++ b/src/views/login/less/style.less @@ -32,7 +32,7 @@ --el-input-border-radius: 0; --el-input-text-color: #232323; --el-border-color: #C4C4C4; - font-size: 1.4rem; + font-size: 1rem; &::placeholder { color: #9F9F9F; diff --git a/src/views/login/login-dialog.vue b/src/views/login/login-dialog.vue index 1d9c038..2bf3ed2 100644 --- a/src/views/login/login-dialog.vue +++ b/src/views/login/login-dialog.vue @@ -10,7 +10,6 @@ :close-on-click-modal="false" >
-
@@ -22,8 +21,10 @@