index.js 326 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 Component({ properties: { bottom: { type: Number, value: 0 } }, data: { isIphoneX: false }, ready: function() { let systemInfo = wx.getSystemInfoSync(); this.setData({isIphoneX: (systemInfo.model || '').indexOf('iPhone X') > -1}); } });