From c19f129a9c720d24cb50d8de4422e9a817381214 Mon Sep 17 00:00:00 2001 From: duanshuwen Date: Fri, 30 Jan 2026 22:38:24 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=97=AE=E5=8D=B7=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- .prettierrc.js | 4 +- index.html | 32 ++++++------ src/assets/scss/index.scss | 78 ++++++++++++++++++---------- src/components/Layout.vue | 56 ++++++++------------ src/main.js | 2 + src/router/index.js | 9 ++++ src/views/home/index.vue | 102 +++++++++++++++++++++++++++++++------ src/views/result/index.vue | 35 +++++++++++++ vite.config.js | 12 ----- 10 files changed, 223 insertions(+), 109 deletions(-) create mode 100644 src/views/result/index.vue diff --git a/.env.development b/.env.development index dece991..0b81e0d 100644 --- a/.env.development +++ b/.env.development @@ -2,7 +2,7 @@ VITE_ENV = development # vconsole开关控制器 -VITE_CONSOLE = 1 +VITE_CONSOLE = 0 # 接口地址 VITE_BASE_API = http://8.138.234.141/ingress/hotelBiz diff --git a/.prettierrc.js b/.prettierrc.js index 6a884e4..aee6d28 100644 --- a/.prettierrc.js +++ b/.prettierrc.js @@ -1,7 +1,7 @@ // .preitterrc.js module.exports = { // 一行的字符数,如果超过会进行换行,默认为80 - printWidth: 80, + printWidth: 200, // 一个tab代表几个空格数,默认为80 tabWidth: 2, // 是否使用tab进行缩进,默认为false,表示用空格进行缩减 @@ -11,7 +11,7 @@ module.exports = { // 行位是否使用分号,默认为true semi: false, // 是否使用尾逗号,有三个可选值"" - trailingComma: "none", + trailingComma: 'none', // 对象大括号直接是否有空格,默认为true,效果:{ foo: bar } bracketSpacing: true, // 代码的解析引擎,默认为babylon,与babel相同 diff --git a/index.html b/index.html index d9f4eca..7b4498b 100644 --- a/index.html +++ b/index.html @@ -1,20 +1,18 @@ + + + + + + + + + - - - - - - - - - - - -
- - - - \ No newline at end of file + +
+ + + + diff --git a/src/assets/scss/index.scss b/src/assets/scss/index.scss index 32e8b85..3740d3e 100644 --- a/src/assets/scss/index.scss +++ b/src/assets/scss/index.scss @@ -11,7 +11,6 @@ } [data-theme='dark'] { - &, * { color-scheme: dark !important; @@ -20,7 +19,6 @@ } [data-theme='light'] { - &, * { color-scheme: light !important; @@ -54,43 +52,67 @@ } } -.van-safe-area-top { - padding-top: var(--safe-area-inset-top) !important; +.flex { + display: flex; } -.van-image-preview__index, -.van-image-preview__close-icon--top-right { - top: 46px !important; +.item-center { + align-items: center; } -// 表单样式 -.van-field__error-message { - text-align: right !important; +.justify-center { + justify-content: center; } -.van-hairline--top-bottom:after, -.van-hairline-unset--top-bottom:after { - border-width: 0 !important; +.mb-12 { + margin-bottom: 12px; } -// 弹窗样式 -.van-dialog { - width: 270px !important; +.m-16 { + margin: 16px; } -.van-dialog__confirm, -.van-dialog__confirm:active { - color: #14b498 !important; +.mb-30 { + margin-bottom: 30px; } -.van-dialog__content--isolated { - min-height: 72px !important; +.van-cell-group__title { + color: #333 !important; } -.van-dialog__message { - color: #333333; - font-size: 17px !important; - font-family: PingFangSC-Semibold, PingFang SC; - font-weight: 600; - line-height: 24px !important; -} \ No newline at end of file +.fz-14 { + font-size: 14px; +} + +.fz-26 { + font-size: 26px; +} + +.color-66 { + color: #666; +} + +.line-height-21 { + line-height: 21px; +} + +.text-center { + text-align: center; +} + +.round-100 { + background-color: #1989fa; + border-radius: 100%; +} + +.w-100 { + width: 100px; +} + +.w-200 { + width: 200px; +} + +.h-100 { + height: 100px; +} diff --git a/src/components/Layout.vue b/src/components/Layout.vue index d53e2cf..0887323 100644 --- a/src/components/Layout.vue +++ b/src/components/Layout.vue @@ -1,7 +1,6 @@ - + diff --git a/src/views/result/index.vue b/src/views/result/index.vue new file mode 100644 index 0000000..54e1185 --- /dev/null +++ b/src/views/result/index.vue @@ -0,0 +1,35 @@ + + + + + \ No newline at end of file diff --git a/vite.config.js b/vite.config.js index 9ce7372..ab9a4db 100644 --- a/vite.config.js +++ b/vite.config.js @@ -43,18 +43,6 @@ export default defineConfig(({ mode }) => { // dts: 'src/auto-imports...', // 可以自定义文件生成的位置与是否生成,默认是根目录下 dts: false }), - createStyleImportPlugin({ - resolves: [VantResolve()], - libs: [ - { - libraryName: 'vant', - esModule: false, - resolveStyle: (name) => { - return `vant/es/${name}/style` - } - } - ] - }), viteVConsole({ entry: [resolve('src/main.js')], localEnabled: isVconsole,