// 第一個是去掉默認微信導航欄
// 第二個是重新再次獲取高度 ,寫死高度裏面用 overflow-y: scroll去做滾動
mounted() {
// 只有微信瀏覽器中IOS系統纔會出現的問題,由於導航欄的佔了高度,所以要重新獲取
setTimeout(()=>{
uni.getSystemInfo({
success:res => {
if(this.boxH != res.windowHeight) { // 判斷之前的高度是否一樣
this.boxH = res.windowHeight
}
}
})
},100)
},