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)) + } + } })