From b943caa4f9aa01f21a3efde364d6763968ed8620 Mon Sep 17 00:00:00 2001 From: hwj Date: Wed, 25 Mar 2026 11:23:05 +0800 Subject: [PATCH] =?UTF-8?q?style=EF=BC=9A=E7=AE=A1=E7=90=86-=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E8=BF=94=E5=9B=9E=E9=A1=B6=E9=83=A8=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E9=80=BB=E8=BE=91=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/work.vue | 36 ++++++++++++++++-------------------- 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/src/pages/work.vue b/src/pages/work.vue index 375f600..8c73f10 100644 --- a/src/pages/work.vue +++ b/src/pages/work.vue @@ -10,15 +10,8 @@ - + × @@ -33,7 +26,7 @@ 生产管控 - + @@ -132,7 +125,7 @@ 设备运维 - + @@ -221,7 +214,7 @@ 模具管理 - + @@ -302,7 +295,7 @@ 基础数据 - + @@ -346,7 +339,10 @@ const scrollTop = ref(0); const menuSearchKeyword = ref(''); function goTop() { - scrollTop.value = scrollTop.value === 0 ? 0.1 : 0; + uni.pageScrollTo({ + scrollTop: 0, + duration: 300 + }) } function handleMenuSearch() { @@ -387,7 +383,7 @@ function handleClick(name) { '维修项目': '', '维修单': '' }; - + const url = routeMap[name]; if (url) { uni.navigateTo({ url }); @@ -442,7 +438,7 @@ function handleClick(name) { .search-icon { margin-right: 20rpx; - + .iconfont { font-size: 36rpx; color: #666666; @@ -467,11 +463,11 @@ function handleClick(name) { display: flex; align-items: center; justify-content: center; - + &:active { opacity: 0.7; } - + .clear-icon { font-size: 36rpx; color: #999999; @@ -603,11 +599,11 @@ function handleClick(name) { justify-content: center; box-shadow: 0 8rpx 24rpx rgba(26, 58, 92, 0.3); z-index: 999; - + &:active { transform: scale(0.95); } - + .go-top-icon { font-size: 44rpx; color: #ffffff;