From 17f2232d52bfecb678b52606c714c6e25551f1b8 Mon Sep 17 00:00:00 2001 From: wangxia <779219182@qq.com> Date: Mon, 18 Aug 2025 15:05:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 2 +- pages/home/index.vue | 28 +++++++++++++++++----- .../vk-uview-ui/components/u-tabbar/u-tabbar.vue | 2 +- 3 files changed, 24 insertions(+), 8 deletions(-) diff --git a/App.vue b/App.vue index c8a0cb6..01ec7ed 100644 --- a/App.vue +++ b/App.vue @@ -333,7 +333,7 @@ export default { @import "./static/css/iconfont.css"; @import "./uni_modules/vk-uview-ui/index.scss"; @import "./static/css/base.scss"; -@import "./static/font/iconfont-weapp-icon.css"; +// @import "./static/font/iconfont-weapp-icon.css"; // #ifdef MP-WEIXIN page { diff --git a/pages/home/index.vue b/pages/home/index.vue index f2de2af..3d3a5bc 100644 --- a/pages/home/index.vue +++ b/pages/home/index.vue @@ -8,12 +8,12 @@ - +
-
{{ selectedCity }}
+
{{ selectedCity }}
@@ -26,10 +26,10 @@
分享
-
职位
+
职位
-
+
@@ -102,7 +102,7 @@
-
+
@@ -132,7 +132,7 @@
- +
@@ -149,6 +149,7 @@ export default { }; // return this.G.shareFun(); }, + onLoad() { let that = this; that.navInfo = that.G.getNavInfo(); @@ -221,6 +222,20 @@ export default { // this.searchAnimate(); // #endif }, + mounted() { + console.log("mountedmountedmountedmountedmountedmounted"); + const query = uni.createSelectorQuery().in(this); + console.log("query", query); + // 选择指定的 DOM 元素 + query + .select(".tabbar") + .boundingClientRect((res) => { + console.log("resresresrserserserser", res); + this.tabbarHeight = res.height; + uni.setStorageSync("TABBAR_HEIGHT", res.height); + }) + .exec(); + }, data() { return { scrollTo: "", @@ -229,6 +244,7 @@ export default { userInfo: {}, whichOneShow: "", toTop: false, // 筛序栏顶部状态 + tabbarHeight: 0, getFilterData: { sex: "-1", ageRangeStr: "", diff --git a/uni_modules/vk-uview-ui/components/u-tabbar/u-tabbar.vue b/uni_modules/vk-uview-ui/components/u-tabbar/u-tabbar.vue index 59ca812..ea03482 100644 --- a/uni_modules/vk-uview-ui/components/u-tabbar/u-tabbar.vue +++ b/uni_modules/vk-uview-ui/components/u-tabbar/u-tabbar.vue @@ -357,7 +357,7 @@ export default { flex: 1; justify-content: center; height: 100%; - padding: 6px 0; + padding: 0 0 6px 0; @include vue-flex; flex-direction: column; align-items: center;