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/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/router/index.ts b/src/router/index.ts index 7858deb..7c94de4 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -7,37 +7,41 @@ 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: '/: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: '/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/setting/components/Radio.vue b/src/views/setting/components/Radio.vue new file mode 100644 index 0000000..8d2376c --- /dev/null +++ b/src/views/setting/components/Radio.vue @@ -0,0 +1,99 @@ + + + + + diff --git a/src/views/setting/index.vue b/src/views/setting/index.vue new file mode 100644 index 0000000..831ddb5 --- /dev/null +++ b/src/views/setting/index.vue @@ -0,0 +1,970 @@ + + + + +