From a415bc7174361c3da830b7abc5135d56f93ab922 Mon Sep 17 00:00:00 2001 From: wanganxp Date: Thu, 30 May 2024 03:45:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E8=87=AA=E5=AE=9A=E4=B9=89ta?= =?UTF-8?q?bbar=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/template/custom-tab-bar/custom-tab-bar.uvue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pages/template/custom-tab-bar/custom-tab-bar.uvue b/pages/template/custom-tab-bar/custom-tab-bar.uvue index f0a91eb5..33418d49 100644 --- a/pages/template/custom-tab-bar/custom-tab-bar.uvue +++ b/pages/template/custom-tab-bar/custom-tab-bar.uvue @@ -83,24 +83,24 @@ methods: { onTabClick(index : number) { if (this.selectedIndex == index && index == 0 && this.displayArrow == true) { //首页当tab按钮变成向上时,点向上就滚动到顶 - console.log("11"); + // console.log("11"); this.displayArrow = false; (this.$refs["tab1"]! as ComponentPublicInstance).$callMethod('scrollTop', 0) this.lastTab1Top = 0;//Todo: 临时解决android平台scroll-view在某些情况未触发onscroll事件的bug } else if (index !=0){ //不在首页时,把箭头变成图标 - console.log("22"); + // console.log("22"); this.displayArrow = false } else if (index == 0 && this.selectedIndex !=0){ //从其他tab切回首页时,检查是否需要把图标变箭头 - console.log("33",this.lastTab1Top, this.tabViewHeight); + // console.log("33",this.lastTab1Top, this.tabViewHeight); this.displayArrow = this.lastTab1Top > this.tabViewHeight } this.setSelectedIndex(index); - console.log('index: ',index); - console.log('this.selectedIndex: ',this.selectedIndex); - console.log('this.displayArrow: ',this.displayArrow); - console.log('this.lastTab1Top: ',this.lastTab1Top); + // console.log('index: ',index); + // console.log('this.selectedIndex: ',this.selectedIndex); + // console.log('this.displayArrow: ',this.displayArrow); + // console.log('this.lastTab1Top: ',this.lastTab1Top); }, onTabPageEvent(top : number) { // console.log('top: ',top); //iOS在v-show为false时,不应该触发这个事件 -- GitLab