From efbac250fc599348f958d76feec1faab2e325069 Mon Sep 17 00:00:00 2001
From: sws <1141121512@qq.com>
Date: Sat, 28 Sep 2024 17:32:23 +0800
Subject: [PATCH 1/5] =?UTF-8?q?1.diy---=E7=BD=AE=E9=A1=B6=E5=BC=80?=
=?UTF-8?q?=E5=8F=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/diy/article-tabs.vue | 1 -
components/diy/diy.vue | 19 +++++++-------
components/diy/goods-tabs.vue | 1 -
components/diy/header.vue | 18 ++++++-------
components/diy/modules/tabs-view.vue | 10 +++++++-
components/diy/tabs.vue | 38 ++++++++++++++++++----------
6 files changed, 52 insertions(+), 35 deletions(-)
diff --git a/components/diy/article-tabs.vue b/components/diy/article-tabs.vue
index b734b542..0909ad87 100644
--- a/components/diy/article-tabs.vue
+++ b/components/diy/article-tabs.vue
@@ -138,7 +138,6 @@
this.setData({
tabs_top: res.top,
});
- console.log('article', res);
}
})
.exec();
diff --git a/components/diy/diy.vue b/components/diy/diy.vue
index 12c21bd0..629866a2 100644
--- a/components/diy/diy.vue
+++ b/components/diy/diy.vue
@@ -4,10 +4,10 @@
-
+
-
-
+
+
@@ -62,7 +62,7 @@
-
+
@@ -115,7 +115,7 @@
propDataId: {
type: [String, Number],
default: '',
- }
+ },
},
components: {
componentDiyHeader,
@@ -310,6 +310,7 @@
this.setData({
tabs_height: height,
});
+ console.log(this.temp_sticky_top, this.tabs_height);
},
// 滚动加载
@@ -430,7 +431,7 @@
if (e.detail.scrollTop >= this.sticky_top + 33) {
this.setData({
temp_sticky_top: 0,
- temp_header_top: this.tabs_height + 'px',
+ temp_header_top: 0,
temp_is_header_top: true,
});
} else {
@@ -445,11 +446,11 @@
},
// 底部菜单高度
- footer_height_value_event(value) {
+ footer_height_value_event(value) {
this.setData({
- footer_height_value: (value*2)+20
+ footer_height_value: value * 2 + 20,
});
- }
+ },
},
};
diff --git a/components/diy/goods-tabs.vue b/components/diy/goods-tabs.vue
index e9639a31..bb0d2b5d 100644
--- a/components/diy/goods-tabs.vue
+++ b/components/diy/goods-tabs.vue
@@ -132,7 +132,6 @@
tabs_top: res.top,
});
}
- console.log('goods', res);
})
.exec();
},
diff --git a/components/diy/header.vue b/components/diy/header.vue
index 7c6be3fa..dc439624 100644
--- a/components/diy/header.vue
+++ b/components/diy/header.vue
@@ -4,9 +4,9 @@