From bf580d5477d65f5eefb70a8fb9a6b37eaf0ae9bb Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期二, 06 九月 2022 09:16:25 +0800
Subject: [PATCH] 2022.9.6

---
 component/switchtab/switchtab.js |   29 ++++++++++++++++-------------
 1 files changed, 16 insertions(+), 13 deletions(-)

diff --git a/component/switchtab/switchtab.js b/component/switchtab/switchtab.js
index 74c8aa2..59d2ed3 100644
--- a/component/switchtab/switchtab.js
+++ b/component/switchtab/switchtab.js
@@ -42,19 +42,22 @@
       let that = this;
       let query = this.createSelectorQuery(); //蹇呴』瑕佸厛鍒涘缓涓�涓煡璇�
       query.select(element).boundingClientRect(function (rect) {
-        if (that.data.pageheight) {
-          let pageheight = that.data.pageheight.split('px')[0]
-          pageheight = parseInt(pageheight)
-          if (rect.height > pageheight) {
-            that.setData({
-              pageheight: rect.height + 'px'
-            });
-          }
-        } else {
-          that.setData({
-            pageheight: rect.height + 'px'
-          });
-        }
+        // if (that.data.pageheight) {
+        //   let pageheight = that.data.pageheight.split('px')[0]
+        //   pageheight = parseInt(pageheight)
+        //   if (rect.height > pageheight) {
+        //     that.setData({
+        //       pageheight: rect.height + 'px'
+        //     });
+        //   }
+        // } else {
+        //   that.setData({
+        //     pageheight: rect.height + 'px'
+        //   });
+        // }
+        that.setData({
+          pageheight: rect.height + 'px'
+        });
       }).exec();
     },
     swichNav: function (e) {

--
Gitblit v1.9.3