底部

view class='btn' style='padding-bottom:{{ isIphoneX ? 68 : 0 }}rpx;'固定底部/view

判断是否是iPhoneX

const app = getApp() Page({  data: {    isIphoneX:false,  },  onLoad: function () {    this.setData({      "isIphoneX": this.isIphoneX()    })  },  isIphoneX() {    let mobile = wx.getSystemInfoSync();    if (mobile.model.indexOf("iPhone X") = 0) {      return true;    } else {      return false;    }  }})小程序

TAG标签: 微信小程序iphone相册

http://www.xiaochengxub.com/read-100788.html