Kaynağa Gözat

【支付宝】首页中奖轮播顶部距离调整

DELL 3 yıl önce
ebeveyn
işleme
c8355d85d7
1 değiştirilmiş dosya ile 8 ekleme ve 0 silme
  1. 8 0
      src/pages/index/index.vue

+ 8 - 0
src/pages/index/index.vue

@@ -181,6 +181,14 @@
 			this.statusHeight = res.top //胶囊距离顶部
 			// #endif
 			
+			// #ifdef MP-ALIPAY
+			uni.getSystemInfo({
+				success: (res) => {
+					this.statusHeight = res.statusBarHeight + 7
+				}
+			})
+			// #endif
+			
 			let num = Math.round(100 / this.list.length)
 			this.percentage = num