From 4998e668fbf79914ed33c32a04f5dd4cdb6a2e7e Mon Sep 17 00:00:00 2001 From: sws <1141121512@qq.com> Date: Fri, 17 Nov 2023 16:01:25 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=88=86=E9=94=80=E6=96=B0=E5=A2=9E=E6=9C=89?= =?UTF-8?q?=E6=95=88=E5=A4=8D=E8=B4=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/goods-category/goods-category.vue | 30 +++++++++++++----------- pages/plugins/distribution/user/user.css | 2 +- pages/plugins/distribution/user/user.vue | 27 ++++++++++++--------- 3 files changed, 33 insertions(+), 26 deletions(-) diff --git a/pages/goods-category/goods-category.vue b/pages/goods-category/goods-category.vue index e70573d9..b6d00b3c 100644 --- a/pages/goods-category/goods-category.vue +++ b/pages/goods-category/goods-category.vue @@ -22,7 +22,7 @@ - + @@ -450,6 +450,8 @@ popup_status: false, // 获取搜索框高度 search_height: 0, + // 底部tab高度 - 只有H5下有值 + window_bottom_height: uni.getWindowInfo().windowBottom || 0, }; }, @@ -583,18 +585,18 @@ if (this.is_first == 1 && this.category_show_level == 0) { this.get_cart_data(); } - } - - // 计算更多分类弹窗的高度、由于页面元素渲染异步问题,这里加延时执行 - if(this.is_first == 1) { - var self = this; - var timer = setInterval(function() { - if(self.search_height == 0) { - self.search_height_computer(); - } else { - clearInterval(timer); - } - }, 500); + } + + // 计算更多分类弹窗的高度、由于页面元素渲染异步问题,这里加延时执行 + if(this.is_first == 1) { + var self = this; + var timer = setInterval(function() { + if(self.search_height == 0) { + self.search_height_computer(); + } else { + clearInterval(timer); + } + }, 500); } // 是否首次记录 @@ -1260,7 +1262,7 @@ if ((res || null) != null) { // 获取搜索框高度 this.setData({ - search_height: res.height + uni.getWindowInfo().windowBottom, + search_height: res.height, }); } }).exec(); diff --git a/pages/plugins/distribution/user/user.css b/pages/plugins/distribution/user/user.css index 55285b37..f36bf8c3 100644 --- a/pages/plugins/distribution/user/user.css +++ b/pages/plugins/distribution/user/user.css @@ -75,7 +75,7 @@ } .anti-mercenary-count { - padding: 10rpx 40rpx; + padding: 20rpx 40rpx; } .promotion-size { diff --git a/pages/plugins/distribution/user/user.vue b/pages/plugins/distribution/user/user.vue index 5c84b185..eeb3beee 100644 --- a/pages/plugins/distribution/user/user.vue +++ b/pages/plugins/distribution/user/user.vue @@ -67,7 +67,7 @@ - + {{ item.value }} @@ -78,20 +78,25 @@ - + - - + + {{ child.name }} - + {{ child.first }} {{ child.value }} {{ child.unit }} + + + {{ cdata.name }} + + @@ -464,12 +469,12 @@ // 页面滚动监听 onPageScroll(res) { uni.$emit('onPageScroll', res); - }, - - // url事件 - url_event(e) { - app.globalData.url_event(e); - } + }, + + // url事件 + url_event(e) { + app.globalData.url_event(e); + }, }, };