From 26e3469b40dbd51d2ba06db73ac46d0d51757153 Mon Sep 17 00:00:00 2001 From: shikong <919411476@qq.com> Date: Fri, 18 Oct 2024 15:26:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=81=E8=A3=85=E5=89=A5=E7=A6=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/sidebar-view/index.vue | 48 +++++++++++++++++++++ src/pages.json | 8 ++++ src/pages/category/category.vue | 41 ++++++------------ src/pages/commodity/commodity.vue | 14 ++++++ src/pages/index/components/banner/index.vue | 10 ++--- vite.config.js | 6 +++ 6 files changed, 95 insertions(+), 32 deletions(-) create mode 100644 src/components/sidebar-view/index.vue create mode 100644 src/pages/commodity/commodity.vue diff --git a/src/components/sidebar-view/index.vue b/src/components/sidebar-view/index.vue new file mode 100644 index 0000000..75f87a7 --- /dev/null +++ b/src/components/sidebar-view/index.vue @@ -0,0 +1,48 @@ + + + + + diff --git a/src/pages.json b/src/pages.json index d61c1db..0738852 100644 --- a/src/pages.json +++ b/src/pages.json @@ -51,6 +51,14 @@ "navigationBarTitleText": "设备信息", "enablePullDownRefresh": false } + }, + { + "path": "pages/commodity/commodity", + "style": { + "navigationStyle": "custom", + "navigationBarTitleText": "商品页", + "enablePullDownRefresh": false + } } ], "globalStyle": { diff --git a/src/pages/category/category.vue b/src/pages/category/category.vue index 074c7b3..8f90f4e 100644 --- a/src/pages/category/category.vue +++ b/src/pages/category/category.vue @@ -1,5 +1,6 @@ diff --git a/src/pages/index/components/banner/index.vue b/src/pages/index/components/banner/index.vue index e397f05..f4898f1 100644 --- a/src/pages/index/components/banner/index.vue +++ b/src/pages/index/components/banner/index.vue @@ -37,11 +37,11 @@ function previewImage(item) { - - - - - + + + + + diff --git a/vite.config.js b/vite.config.js index 1ff4e81..f07ad3d 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,4 +1,5 @@ import path from "path"; +import {fileURLToPath, URL} from 'node:url' import { defineConfig } from 'vite' import uni from '@dcloudio/vite-plugin-uni' import { UnifiedViteWeappTailwindcssPlugin as uvwt } from "weapp-tailwindcss/vite"; @@ -32,4 +33,9 @@ export default defineConfig({ ] }, }, + resolve: { + alias: { + '@': fileURLToPath(new URL('./src', import.meta.url)) + } + } })