From 25657c613a2fc30ee284fee9f7d4730bbd40b4f5 Mon Sep 17 00:00:00 2001 From: RyRh <3123294924@qq.com> Date: Tue, 1 Sep 2026 16:41:51 +0800 Subject: [PATCH] v2 --- manifest.json | 36 +++++++++++----------- pages/products/components/FilterDrawer.vue | 16 ++++++++-- pages/products/components/SearchBar.vue | 27 ++++++++++++---- 3 files changed, 53 insertions(+), 26 deletions(-) diff --git a/manifest.json b/manifest.json index ada210c..32073e5 100644 --- a/manifest.json +++ b/manifest.json @@ -71,27 +71,27 @@ "devServer" : { "https" : true, "host" : "192.168.124.19" - // 暂时关闭开发代理(直接连后端时注释掉) - // "proxy" : { - // "/public" : { - // "target" : "https://official.inkreach.cc", - // "changeOrigin" : true, - // "pathRewrite" : { - // "^/public" : "/v2-api/public" - // } - // }, - // "/assets" : { - // "target" : "https://official.inkreach.cc", - // "changeOrigin" : true, - // "pathRewrite" : { - // "^/assets" : "/v2-api/assets" - // } - // } - // } }, + // 暂时关闭开发代理(直接连后端时注释掉) + // "proxy" : { + // "/public" : { + // "target" : "https://official.inkreach.cc", + // "changeOrigin" : true, + // "pathRewrite" : { + // "^/public" : "/v2-api/public" + // } + // }, + // "/assets" : { + // "target" : "https://official.inkreach.cc", + // "changeOrigin" : true, + // "pathRewrite" : { + // "^/assets" : "/v2-api/assets" + // } + // } + // } "router" : { "mode" : "history", - "base" : "/h5/" + "base" : "/v2/h5/" }, "title" : "印美达POD供应链", "optimization" : { diff --git a/pages/products/components/FilterDrawer.vue b/pages/products/components/FilterDrawer.vue index 61d5e8a..a4ec53d 100644 --- a/pages/products/components/FilterDrawer.vue +++ b/pages/products/components/FilterDrawer.vue @@ -6,7 +6,7 @@ :class="{ show: visible }" @tap="onClose" > - + 筛选条件 @@ -77,7 +77,19 @@ export default { minPrice: '', maxPrice: '', minError: false, - maxError: false + maxError: false, + statusBarHeight: 20 + } + }, + created() { + // 状态栏高度:抽屉 fixed top:0,需避开系统状态栏/导航栏区域(与 SearchBar 一致) + try { + var sysInfo = uni.getSystemInfoSync() + var h = sysInfo.statusBarHeight + // 获取失败/异常值时用 20px 保底 + this.statusBarHeight = typeof h === 'number' && h > 0 ? h : 20 + } catch (e) { + this.statusBarHeight = 20 } }, methods: { diff --git a/pages/products/components/SearchBar.vue b/pages/products/components/SearchBar.vue index 808c25c..f9ce872 100644 --- a/pages/products/components/SearchBar.vue +++ b/pages/products/components/SearchBar.vue @@ -1,6 +1,8 @@