diff --git a/pages/goods-category/goods-category.css b/pages/goods-category/goods-category.css index f32216178d78bebb9cd4bb16c024a80a8f9cc20c..396aa783fc5c657aa2a6502d7d8e6e06782f8c4f 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 80f470683abd1425e57c25c1e2371fcaec9b1445..e70573d9ce5869b598b090f6bdc3d153871e13c7 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();