From c533b1c2d475ab39bee6eb91a7f2861c98b0f261 Mon Sep 17 00:00:00 2001 From: gongfuxiang Date: Wed, 15 Nov 2023 18:41:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E7=B1=BB=E9=A1=B5=E9=9D=A2H5=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/goods-category/goods-category.css | 8 +++++++- pages/goods-category/goods-category.vue | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/pages/goods-category/goods-category.css b/pages/goods-category/goods-category.css index f3221617..396aa783 100644 --- a/pages/goods-category/goods-category.css +++ b/pages/goods-category/goods-category.css @@ -192,7 +192,13 @@ /** * 商品列表模式 - */ + */ +.category-content { + height: calc(100vh - 134rpx - var(--window-bottom)); + /* #ifdef H5 */ + height: calc(100vh - 104rpx - var(--window-bottom)); + /* #endif */ +} .category-content.goods-model { padding-top: 182rpx; } diff --git a/pages/goods-category/goods-category.vue b/pages/goods-category/goods-category.vue index 80f47068..e70573d9 100644 --- a/pages/goods-category/goods-category.vue +++ b/pages/goods-category/goods-category.vue @@ -1260,7 +1260,7 @@ if ((res || null) != null) { // 获取搜索框高度 this.setData({ - search_height: res.height, + search_height: res.height + uni.getWindowInfo().windowBottom, }); } }).exec();