From fce06a882e9569a4671a131d7eae71cd52f68c37 Mon Sep 17 00:00:00 2001 From: liaoxinyu Date: Wed, 3 Apr 2024 16:47:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=BB=9A=E5=8A=A8=E6=9D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/category/index.vue | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pages/category/index.vue b/pages/category/index.vue index 21a16b4..d4209a7 100644 --- a/pages/category/index.vue +++ b/pages/category/index.vue @@ -257,6 +257,10 @@ const curPageLen = list.data.length const totalSize = list.total app.mescroll.endBySize(curPageLen, totalSize) + uni.pageScrollTo({ + scrollTop: 0, + duration: 300 // 滚动动画持续时间,单位 ms + }); }) .catch(() => app.mescroll.endErr()) }, @@ -447,8 +451,8 @@ .secondary{ z-index: 19; border-top: 1rpx solid #444; - height: 100vh; - // height: 100%; + // height: 100vh; + height: 100%; } // 分类内容 @@ -456,8 +460,8 @@ display: flex; z-index: 1; background: #fff; - padding-top: 120rpx; - // padding-top: 94rpx; + // padding-top: 120rpx; + padding-top: 97rpx; height: 100%; }