From 47e86f543415585ab1e1b2b1ed1d98830817a1be Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期一, 19 九月 2022 09:41:07 +0800
Subject: [PATCH] 2022.9.16
---
component/switchtab/switchtab.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/component/switchtab/switchtab.js b/component/switchtab/switchtab.js
index fb33732..a3b3469 100644
--- a/component/switchtab/switchtab.js
+++ b/component/switchtab/switchtab.js
@@ -57,7 +57,7 @@
if (e) {
setTimeout(() => {
const p = `.page${this.data.currentTab}`
- console.log(p);
+ // console.log(p);
this.tabsHeight(p);
}, 50);
}
@@ -65,7 +65,7 @@
//璁$畻swiper楂樺害鏂规硶锛堝湪鍒囨崲鐨勬椂鍊欒皟鐢級
tabsHeight(element) {
let that = this;
- let query = this.createSelectorQuery(); //蹇呴』瑕佸厛鍒涘缓涓�涓煡璇�
+ let query = this.createSelectorQuery().in(this); //蹇呴』瑕佸厛鍒涘缓涓�涓煡璇�
query.select(element).boundingClientRect(function (rect) {
that.setData({
pageheight: rect.height + 'px'
--
Gitblit v1.9.3