From a9f97db85330cdad4a47982167cf0d7d7ec0ef41 Mon Sep 17 00:00:00 2001 From: bai <1643359946@qq.com> Date: Wed, 24 May 2023 21:11:26 +0800 Subject: [PATCH] =?UTF-8?q?2023=E5=B9=B45=E6=9C=8824=E6=97=A5=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=88=86=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/site/common/header.vue | 21 +++------------- src/views/site/tingKeZuJi/index.vue | 2 +- src/views/site/tongJi/show/jrktyxk.vue | 29 ++++++++++++++++++---- src/views/site/tongJi/show/jrktzs.vue | 31 ++++++++++++++++++++---- src/views/site/tongJi/show/jrtkkts.vue | 29 ++++++++++++++++++---- src/views/site/tongJi/show/jrtktkrc.vue | 30 +++++++++++++++++++---- src/views/site/tongJi/show/skz.vue | 31 ++++++++++++++++++++---- src/views/site/tongJi/show/ykkttkkt.vue | 32 +++++++++++++++++++++---- src/views/site/tongJi/show/ykkttkrc.vue | 31 ++++++++++++++++++++---- src/views/site/tongJi/show/ykktzs.vue | 31 ++++++++++++++++++++---- 10 files changed, 208 insertions(+), 59 deletions(-) diff --git a/src/views/site/common/header.vue b/src/views/site/common/header.vue index c88cd4e..d4d898c 100644 --- a/src/views/site/common/header.vue +++ b/src/views/site/common/header.vue @@ -83,25 +83,10 @@ function toIndex(){ },1); } - function toTop(toId){ + function toTop(){ let topNum = 0; - if(toId){ - let toDom: any = document?.querySelector('#' + toId); - - console.log(`🚀 ------------------------------------------------🚀`); - console.log(`🚀 ~ file: header.vue:91 ~ toTop ~ toDom:`, toDom); - console.log(`🚀 ------------------------------------------------🚀`); - - topNum = toDom?.offsetTop??0; - - console.log(`🚀 --------------------------------------------------🚀`); - console.log(`🚀 ~ file: header.vue:97 ~ toTop ~ topNum:`, topNum); - console.log(`🚀 --------------------------------------------------🚀`); - - }else{ - topNum = document.body.scrollTop; - smoothScroll(topNum); - } + topNum = document.body.scrollTop; + smoothScroll(topNum); } function toDom(toId){ diff --git a/src/views/site/tingKeZuJi/index.vue b/src/views/site/tingKeZuJi/index.vue index 33abf2f..5f4552d 100644 --- a/src/views/site/tingKeZuJi/index.vue +++ b/src/views/site/tingKeZuJi/index.vue @@ -2,7 +2,7 @@