diff --git a/src/router/index.ts b/src/router/index.ts index 08508be..7c94de4 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -7,8 +7,6 @@ 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: '/', @@ -19,15 +17,11 @@ const router = createRouter({ path: '/collectionStory', name: 'collectionStory', component: () => import('../views/collectionStory/index.vue') - // { - // path: '/', - // redirect: '/welcome' - // }, - // { - // path: '/asistant', - // name: 'asistant', - // component: () => import('../views/asistant/index.vue'), - // meta: { cache: true, verify: () => VerifyIDs(2) } + }, + { + path: '/brand', + name: 'brand', + component: () => import('../views/brand/index.vue') }, { path: '/settings', @@ -40,31 +34,8 @@ const router = createRouter({ name: '404', component: () => import('../views/404.vue') } - ] - 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: '/:pathMatch(.*)', - name: '404', - component: () => import('../views/404.vue'), - }, - ] + ], + history: createWebHistory('/') }) router.beforeEach((to, from, next) => { diff --git a/src/views/setting/index.vue b/src/views/setting/index.vue index f138b81..831ddb5 100644 --- a/src/views/setting/index.vue +++ b/src/views/setting/index.vue @@ -1,111 +1,198 @@ @@ -230,283 +490,481 @@ const handleDiscard = () => { .setting-wrapper { height: 100%; overflow-y: auto; + background: #ffffff; + .banner { height: 14.8rem; row-gap: 1.2rem; - background-color: #fafaf9; + background: + linear-gradient(rgba(255, 255, 255, 0.91), rgba(255, 255, 255, 0.91)), + linear-gradient(90deg, #f2eee8 0%, #fbfaf8 40%, #f1ede7 100%); + .title { font-family: 'KaiseiOpti-Bold'; - font-weight: 700; font-size: 4rem; line-height: 3.6rem; + color: #232323; } + .slogan { font-family: 'KaiseiOpti-Regular'; font-size: 1.6rem; line-height: 2.4rem; - } - } - .setting-content { - padding: 0 18rem 12rem; - .setting-item { - column-gap: 21.4rem; - padding-top: 4rem; - .label-container { - width: 27.6rem; - font-family: 'KaiseiOpti-Medium'; - .label { - font-weight: 500; - font-size: 2.8rem; - color: #232323; - } - .label-desc { - margin-top: 2rem; - font-size: 1.6rem; - color: #666666; - } - } - .context-container { - .info { - column-gap: 2.6rem; - margin-bottom: 3.6rem; - .thumb { - width: 8rem; - height: 8rem; - border-radius: 50%; - background-color: #999; - .edit-icon { - position: absolute; - width: 3rem; - height: 3rem; - right: 0; - bottom: 0; - border: 0.1rem solid #fff; - border-radius: 50%; - } - } - .name-email { - font-family: 'KaiseiOpti-Medium'; - row-gap: 0.6rem; - .name { - font-size: 2.4rem; - color: #232323; - line-height: 3.6rem; - } - .email { - font-size: 1.8rem; - color: #979797; - line-height: 2.4rem; - } - } - } - .col-gap-2 { - column-gap: 2rem; - } - .form-container { - row-gap: 3rem; - .form-item { - .form-item-label { - font-family: 'KaiseiOpti-Medium'; - font-size: 1.4rem; - color: #979797; - margin-bottom: 0.8rem; - } - .form-item-value { - border: 0.1rem solid #979797; - &.noborder { - border: none; - } - &.name { - width: 28.4rem; - } - &.radio { - width: 58rem; - } - :deep(.el-input) { - height: 4rem; - .el-input__wrapper { - box-shadow: none; - padding: 0 2rem; - .el-input__inner { - font-family: 'KaiseiOpti-Regular'; - color: #232323; - font-size: 1.6rem; - } - } - } - } - } - } - .social-links { - margin-top: 5.8rem; - font-family: 'KaiseiOpti-Medium'; - .title { - font-size: 1.4rem; - color: #585858; - margin-bottom: 2rem; - } - .links-list { - row-gap: 0.8rem; - } - .links-item { - column-gap: 3.4rem; - .link-index { - font-size: 1.4rem; - color: #979797; - } - .link-href { - color: #979797; - border: 0.1rem solid #979797; - :deep(.el-input) { - height: 4rem; - .el-input__wrapper { - box-shadow: none; - padding: 0 2rem; - .el-input__inner { - font-family: 'KaiseiOpti-Regular'; - color: #979797; - font-size: 1.6rem; - } - } - } - } - } - } - } - } - .gap { - height: 0.05rem; - margin-top: 6rem; - background-color: #c4c4c4; - } - .security, - .region { - .context-container { - width: 58rem; - } - } - .security-section, - .region-section { - width: 58rem; - } - .security-row, - .region-row { - & + .security-row, - & + .region-row { - margin-top: 3rem; - } - } - .security-label { - margin-bottom: 0.8rem; - font-family: 'KaiseiOpti-Medium'; - font-size: 1.4rem; - line-height: 2.4rem; color: #585858; } - .security-value { + } + + .setting-content { + padding: 4rem 18rem 7rem; + } + + .setting-item { + column-gap: 21.4rem; + align-items: flex-start; + } + + .label-container { + width: 27.6rem; + font-family: 'KaiseiOpti-Medium'; + } + + .label { + font-size: 2.8rem; + line-height: 3.6rem; + color: #232323; + } + + .label-desc { + width: 24rem; + margin-top: 2rem; + font-size: 1.6rem; + line-height: 2.2rem; + color: #666666; + } + + .context-container { + width: 58rem; + } + + .profile-header { + column-gap: 2.6rem; + margin-bottom: 3.6rem; + } + + .avatar { + width: 8rem; + height: 8rem; + border-radius: 50%; + border: 0.1rem solid #d8d0c7; + background: #faf7f3; + } + + .avatar-icon { + color: #979797; + } + + .avatar-edit-btn { + position: absolute; + right: -0.2rem; + bottom: -0.2rem; + width: 3rem; + height: 3rem; + border: 0.2rem solid #ffffff; + border-radius: 50%; + background: #232323; + cursor: pointer; + } + + .avatar-edit-icon { + color: #ffffff; + } + + .profile-summary { + row-gap: 0.6rem; + } + + .profile-name { + font-family: 'KaiseiOpti-Medium'; + font-size: 2.4rem; + line-height: 3.6rem; + color: #232323; + } + + .profile-email { + font-family: 'KaiseiOpti-Regular'; + font-size: 1.8rem; + line-height: 2.4rem; + color: #979797; + } + + .form-container { + row-gap: 3rem; + } + + .col-gap-2 { + column-gap: 2rem; + } + + .form-item-label, + .read-label, + .security-label { + margin-bottom: 0.8rem; + font-family: 'KaiseiOpti-Medium'; + font-size: 1.4rem; + line-height: 2.4rem; + color: #585858; + letter-spacing: 0.04em; + } + + .form-tip, + .read-tip, + .security-tip { + margin-top: 0.8rem; + font-family: 'KaiseiOpti-Regular'; + font-size: 1.2rem; + line-height: 1.6rem; + color: #9f9f9f; + } + + .form-item-value { + border: 0.1rem solid #979797; + + &.noborder { + border: none; + } + + &.name { + width: 28.4rem; + } + + &.radio { + width: 58rem; + } + + :deep(.el-input) { height: 4rem; + } + + :deep(.el-input__wrapper) { + box-shadow: none; + border-radius: 0; + padding: 0 2rem; + } + + :deep(.el-input__inner) { + font-family: 'KaiseiOpti-Regular'; + color: #232323; + font-size: 1.6rem; + } + } + + .read-section { + width: 58rem; + } + + .read-row + .read-row, + .security-row + .security-row, + .region-row + .region-row { + margin-top: 3rem; + } + + .read-row.two-column { + display: grid; + grid-template-columns: 28.4rem 28.4rem; + column-gap: 2rem; + } + + .read-box, + .field-box { + width: 100%; + min-height: 4rem; + border: 0.1rem solid #979797; + padding: 0.8rem 2rem; + display: flex; + align-items: center; + font-family: 'KaiseiOpti-Regular'; + font-size: 1.6rem; + line-height: 2.4rem; + color: #232323; + } + + .role-row { + margin-top: 3rem; + } + + .role-tags { + display: flex; + flex-wrap: wrap; + gap: 0.8rem; + } + + .role-tag { + min-width: 8rem; + height: 4rem; + padding: 0 1.2rem; + border: 0.1rem solid #979797; + display: inline-flex; + align-items: center; + justify-content: center; + font-family: 'KaiseiOpti-Regular'; + font-size: 1.4rem; + line-height: 2rem; + color: #979797; + + &.is-active { + background: #232323; + border-color: #232323; + color: #ffffff; + } + } + + .social-links { + margin-top: 5.8rem; + font-family: 'KaiseiOpti-Medium'; + } + + .social-links .title { + font-size: 1.4rem; + color: #585858; + margin-bottom: 2rem; + } + + .links-list { + row-gap: 0.8rem; + } + + .links-item { + column-gap: 3.4rem; + } + + .link-index { + width: 4rem; + font-family: 'KaiseiOpti-Regular'; + font-size: 1.4rem; + line-height: 2rem; + color: #979797; + } + + .link-href { + min-height: 4rem; + border: 0.1rem solid #979797; + color: #979797; + + &.readonly { + padding: 0.8rem 2rem; display: flex; align-items: center; font-family: 'KaiseiOpti-Regular'; - font-size: 1.6rem; - line-height: 2.4rem; - color: #232323; - } - .password-mask { - font-family: 'KaiseiOpti-Bold'; - letter-spacing: 0.08rem; - } - .security-tip { - margin-top: 0.8rem; - font-family: 'KaiseiOpti-Regular'; - font-size: 1.2rem; - line-height: 1.6rem; + font-size: 1.4rem; + line-height: 2rem; color: #9f9f9f; } - .security-input-wrap, - .select-wrap { - width: 58rem; - border: 0.1rem solid #979797; - :deep(.el-input), - :deep(.el-select) { - width: 100%; - height: 4rem; - } - :deep(.el-input__wrapper), - :deep(.el-select__wrapper) { - min-height: 4rem; - box-shadow: none; - border-radius: 0; - padding: 0 2rem; - } - :deep(.el-input__inner), - :deep(.el-select__selected-item), - :deep(.el-select__placeholder) { - font-family: 'KaiseiOpti-Regular'; - font-size: 1.6rem; - color: #232323; - } - :deep(.el-input__inner::placeholder) { - color: #9f9f9f; - } + + :deep(.el-input) { + height: 4rem; } - .verify-input { - display: flex; - align-items: stretch; - :deep(.el-input) { - flex: 1; - } + + :deep(.el-input__wrapper) { + box-shadow: none; + border-radius: 0; + padding: 0 2rem; } - .verify-btn { - width: 7.8rem; - border: none; - border-left: 0.1rem solid #979797; - background: #fff; - font-family: 'KaiseiOpti-Medium'; + + :deep(.el-input__inner) { + font-family: 'KaiseiOpti-Regular'; + color: #9f9f9f; + font-size: 1.4rem; + } + } + + .add-link-btn { + width: 4rem; + height: 4rem; + border: 0.1rem solid #f0ebe5; + background: #f6f6f6; + color: #b4aea6; + font-size: 2rem; + line-height: 1; + cursor: pointer; + } + + .security-static { + min-height: 4rem; + display: flex; + align-items: center; + font-family: 'KaiseiOpti-Regular'; + font-size: 1.6rem; + line-height: 2.4rem; + color: #232323; + } + + .password-mask { + font-family: 'KaiseiOpti-Bold'; + letter-spacing: 0.08rem; + } + + .inline-header { + gap: 1.6rem; + } + + .outlined-field { + width: 58rem; + border: 0.1rem solid #979797; + + :deep(.el-input), + :deep(.el-select) { + width: 100%; + min-height: 4rem; + } + + :deep(.el-input__wrapper), + :deep(.el-select__wrapper) { + min-height: 4rem; + box-shadow: none; + border-radius: 0; + padding: 0 2rem; + } + + :deep(.el-input__inner), + :deep(.el-select__selected-item), + :deep(.el-select__placeholder) { + font-family: 'KaiseiOpti-Regular'; font-size: 1.4rem; color: #232323; - cursor: pointer; } - .small-action-btn { - width: 10rem; - height: 3.2rem; - border: 0.1rem solid #c4c4c4; - background: #f6f6f6; - font-family: 'KaiseiOpti-Bold'; - font-size: 1.2rem; - line-height: 2.6rem; - color: #232323; - cursor: pointer; + + :deep(.el-input__inner::placeholder) { + color: #9f9f9f; } - .inner-divider { - height: 0.05rem; - margin: 2.8rem 0 3rem; - background-color: #c4c4c4; + } + + .verify-field { + display: flex; + align-items: stretch; + + :deep(.el-input) { + flex: 1; } - .action-container { - justify-content: center; - column-gap: 1.2rem; - margin-top: 2.8rem; + } + + .verify-btn { + width: 7.6rem; + border: none; + border-left: 0.1rem solid #979797; + background: #ffffff; + font-family: 'KaiseiOpti-Medium'; + font-size: 1.4rem; + color: #232323; + cursor: pointer; + } + + .small-btn, + .secondary-btn, + .primary-btn { + border: 0.1rem solid #c4c4c4; + background: #f6f6f6; + font-family: 'KaiseiOpti-Bold'; + color: #232323; + cursor: pointer; + } + + .small-btn { + width: 10rem; + height: 3.2rem; + font-size: 1.2rem; + line-height: 2.6rem; + } + + .inner-divider { + height: 0.05rem; + margin: 2.8rem 0 3rem; + background-color: #c4c4c4; + } + + .gap { + height: 0.05rem; + margin-top: 6rem; + background-color: #c4c4c4; + } + + .bottom-gap { + margin-top: 4rem; + } + + .action-container { + justify-content: center; + column-gap: 1.2rem; + margin-top: 2.8rem; + } + + .primary-btn, + .secondary-btn { + height: 4.4rem; + font-size: 1.6rem; + line-height: 2.6rem; + } + + .primary-btn { + min-width: 23.6rem; + border-color: #232323; + background: #232323; + color: #ffffff; + padding: 0 2.4rem; + + &:disabled { + opacity: 0.6; + cursor: not-allowed; } - .save-btn, - .discard-btn { - height: 4.4rem; - font-family: 'KaiseiOpti-Bold'; - font-size: 1.6rem; - cursor: pointer; - } - .save-btn { - width: 23.6rem; - border: 0.1rem solid #232323; - background: #232323; - color: #fff; - } - .discard-btn { - width: 12rem; - border: 0.1rem solid #c4c4c4; - background: #fff; - color: #232323; + } + + .secondary-btn { + width: 12rem; + background: #ffffff; + + &:disabled { + opacity: 0.6; + cursor: not-allowed; } } + + .edit-btn { + min-width: 12rem; + } + + .read-social-links { + margin-top: 4.8rem; + } + + .security-container, + .region-container { + padding-top: 0.2rem; + } + + .role-tag, + :deep(.radio-button) { + white-space: nowrap; + } + + :deep(.radio-button-group) { + gap: 0.8rem; + } + + :deep(.radio-button) { + border: 0.1rem solid #979797; + height: 4rem; + min-width: 8rem; + padding: 0 1.2rem; + color: #979797; + background-color: #fff; + font-size: 1.4rem; + font-family: 'KaiseiOpti-Regular'; + } + + :deep(.radio-button.is-active), + :deep(.radio-button:hover) { + border-color: #232323; + color: #fff; + background-color: #232323; + } }