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 @@