Description: The padding value is set, but the padding value is not enough on liuhai screen phone, so found the following solution:
<view class="coverbox" style="padding-bottom:{{ phoneBtm }}rpx! important;" ></view> phoneBtm: 0, // check whether the device is liu Screen bottom distance // check whether the device is Liu screen (res) => {var safeBottom = res.screenheight -res.safearea. bottom // this.kbottomSafeheight = safeBottom // Determine if according to the security height (safeBottom === 34) { wx.nextTick(() => { this.setData({ phoneBtm: (110 + 34) }); }); } else { wx.nextTick(() => { this.setData({ phoneBtm: 110 }); }); }}})}Copy the code