try {
const res = wx.getSystemInfoSync()
console.log('41', res.windowHeight, res.windowWidth, res.windowHeight / res.windowWidth)
if (res.windowHeight / res.windowWidth < 1.8) {
this.setData({
finishSrceen: true
})
} else if (res.windowHeight / res.windowWidth <= 1.61) {
this.setData({
smallSrceen: true
})
}
} catch (error) {
this.setData({
smallSrceen: false,
finishSrceen: false
})
}
data: {
smallSrceen: false,
finishSrceen: false,
},
<view class="container-box {{finishSrceen?'f-heads':''}}"></view>
.f-heads {
height: 600rpx;
transform: scale(0.9);
}