纸通宝小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

28 lines
718 B

"use strict";
Object.defineProperty(exports, "__esModule", {
value: !0
}), exports.checkIPhoneX = exports.safeAreaInset = exports.getSystemInfo = void 0;
var systemInfo = null,
getSystemInfo = function (e) {
if (!systemInfo || e) try {
systemInfo = wx.getSystemInfoSync()
} catch (e) {}
return systemInfo
};
exports.getSystemInfo = getSystemInfo;
var safeAreaInset = {
top: 88,
left: 0,
right: 0,
bottom: 34
};
exports.safeAreaInset = safeAreaInset;
var isIPhoneX = function (e) {
var t = e.model,
o = e.platform;
return /iPhone X/.test(t) && "ios" === o
},
checkIPhoneX = function (e) {
return isIPhoneX(getSystemInfo(e))
};
exports.checkIPhoneX = checkIPhoneX;