yongzonghuang 4 роки тому
батько
коміт
33832651ea
2 змінених файлів з 4 додано та 0 видалено
  1. 2 0
      pages/tabbar/index/index.vue
  2. 2 0
      pages_category_page1/store/index.vue

+ 2 - 0
pages/tabbar/index/index.vue

@@ -59,9 +59,11 @@
 			}
 		},
 		onShow() {
+            // #ifdef MP-WEIXIN || MP-BAIDU || MP-TOUTIAO || MP-QQ
       let menuButtonInfo = uni.getMenuButtonBoundingClientRect()
       this.topHeight = menuButtonInfo.top + 10
       this.height = menuButtonInfo.height
+            // #endif
             this.$refs.adWindow.getAd()
     },
 		onPageScroll(e) {

+ 2 - 0
pages_category_page1/store/index.vue

@@ -176,9 +176,11 @@
 			canvasPage
 		},
 		onLoad(options) {
+			// #ifdef MP-WEIXIN || MP-BAIDU || MP-TOUTIAO || MP-QQ
       let menuButtonInfo = uni.getMenuButtonBoundingClientRect()
       this.topHeight = menuButtonInfo.top
       console.log(this.topHeight, menuButtonInfo.top, 'fsfsfsfs')
+			// #endif
       this.isIphone = getApp().globalData.isIphone;
 			if (getApp().globalData.shopShareItem) {
 				const item = getApp().globalData.shopShareItem