From 814c59cba41d33e84b0e9a108a59f710320e3ea2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=AF=85?= <1335909236@qq.com> Date: Tue, 16 Sep 2025 17:40:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=A6=96=E9=A1=B5=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=20=E5=AE=8C=E6=88=90=E9=A1=B6=E9=83=A8=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E6=A0=8F=E5=92=8C=E4=B8=8B=E6=96=B9=E5=95=86=E5=93=81?= =?UTF-8?q?=E5=88=86=E7=B1=BB=E6=A0=87=E7=AD=BE=E7=9A=84=E5=90=B8=E9=A1=B6?= =?UTF-8?q?=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/park/temporaryOrder/index.vue | 2 +- pages/index/index.css | 21 +- pages/index/index.vue | 312 +++++++++++++------------ 3 files changed, 178 insertions(+), 157 deletions(-) diff --git a/packages/park/temporaryOrder/index.vue b/packages/park/temporaryOrder/index.vue index 9a967c33..c62d2474 100644 --- a/packages/park/temporaryOrder/index.vue +++ b/packages/park/temporaryOrder/index.vue @@ -68,7 +68,7 @@ - + - - - - - - - {{ currentCity.cityName || '选择城市' }} - + + + + + + {{ currentCity.cityName || '选择城市' }} + - - - - - - - - {{ word }} - + + + + + + + + {{ word }} - - - - - - - - - - 店铺管理 - - - - - - 供应商订单 - - - - - - 物业管理 - - - - - - - - - - - - - - - - - - - - - - - {{ item.title }} - - - - - - - - - - - - - - - + - - - 定位错误 未知区域 - - {{ currentCity.district }}附近 - 一刻钟便利生活圈 - - - - - - - + + + + + + + + + 店铺管理 + + + + + + 供应商订单 + + + + + + 物业管理 + + + + + + + + - - - - - {{ item.title }} - - + + - - - {{ item.title }} - - - + + + + + + + + {{ item.title }} + + + + + + + + + + + + + + + - - - + + + + + + + + {{ item.title }} + + + + + + + {{ item.title }} + + + + + + + + + + - - - - - - {{ item.cate_name }} - - - - - - - - - - - 商品分类 - - - {{ item.cate_name }} + + + + + + {{ item.cate_name }} + + + + + - + + + 商品分类 + + + {{ item.cate_name }} + + + + + @@ -204,7 +206,8 @@ - 点评 @@ -215,12 +218,13 @@ + + 下拉加载后续10条,共计{{ bottomTotal }}条 + - - 下拉加载后续10条,共计{{ bottomTotal }}条 - + @@ -1047,22 +1051,24 @@ export default { this.showDropdown = false; this.$nextTick(() => { - uni.pageScrollTo({ - scrollTop: 1000, - duration: 300 - }); + // 获取mainBox元素并使其滚动到底部 + const mainBox = this.$refs.mainBox; + if (mainBox) { + mainBox.scrollTop = 1000; + } }); }, toggleDropdown() { this.showDropdown = !this.showDropdown; - // 当展开下拉菜单时,页面滑动 + // 当展开下拉菜单时,在mainBox内滑动 if (this.showDropdown) { this.$nextTick(() => { - uni.pageScrollTo({ - scrollTop: 1000, - duration: 300 - }); + // 获取mainBox元素并使其滚动到底部 + const mainBox = this.$refs.mainBox; + if (mainBox) { + mainBox.scrollTop = 1000; + } }) } },