From c90ecea460e29003d8bc263f4ad86868820c9ae0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=B1=AA?= <781521347@qq.com> Date: Tue, 14 Dec 2021 15:54:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 14 ++--- components/vSwiper.vue | 45 +++++++++++---- config/index.js | 4 +- pages/home/index.vue | 89 +++++++++++++++++++++-------- pages/life/articleDetail/index.vue | 63 +++++++++++++++----- pages/life/articleList/index.vue | 25 ++++++-- pages/life/index.vue | 1 - static/images/eye2.png | Bin 0 -> 352 bytes 8 files changed, 176 insertions(+), 65 deletions(-) create mode 100644 static/images/eye2.png diff --git a/App.vue b/App.vue index 498da52..336e5c8 100644 --- a/App.vue +++ b/App.vue @@ -10,9 +10,7 @@ export default { uni.hideTabBar() }, globalData: { - // baseURL : 'http://192.168.0.110:8092/api/', baseURL: VUE_APP_API_URL+ '/', - // baseURL : 'https://cloud.api.cyjyyjy.com/api/', userInfo: null, navHeight: 0, navTopHeight: 0, @@ -28,7 +26,6 @@ export default { onShow(e) { this.globalData.scene = e.scene - // console.log(this.globalData.scene,'this.globalData.scene') //隐藏系统tabbar uni.hideTabBar(); var query = {}; @@ -251,6 +248,7 @@ export default { setMenuHeight() { uni.getSystemInfo({ success: res => { + console.log(res,'resaaaaa') this.globalData.navTopHeight = res.statusBarHeight; this.globalData.CustomBar = res.statusBarHeight + 45; this.globalData.systemInfo = res; @@ -261,10 +259,12 @@ export default { } }); let menuButtonObj = uni.getMenuButtonBoundingClientRect(); - this.globalData.menuTop = menuButtonObj.top; // console.log(menuButtonObj) - - this.globalData.menuHeight = menuButtonObj.height; - this.globalData.navHeight = menuButtonObj.height + (menuButtonObj.top - this.globalData.navTopHeight); + console.log(menuButtonObj,'menuButtonObj') + this.globalData.menuTop = menuButtonObj.top; + this.globalData.menuHeight = menuButtonObj.height; + this.globalData.topHeight = menuButtonObj.top + menuButtonObj.height; + this.globalData.topLeft = menuButtonObj.left; + this.globalData.navHeight = menuButtonObj.top; }, getInfo() { diff --git a/components/vSwiper.vue b/components/vSwiper.vue index f126083..7f802fd 100644 --- a/components/vSwiper.vue +++ b/components/vSwiper.vue @@ -1,18 +1,19 @@