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.
20 lines
1008 B
20 lines
1008 B
2 years ago
|
"use strict";
|
||
|
const common_vendor = require("../../common/vendor.js");
|
||
|
const install = (Vue) => {
|
||
|
const sysdata = common_vendor.index.getSystemInfoSync();
|
||
|
Vue.config.globalProperties.statusBarHeight = sysdata.statusBarHeight;
|
||
|
const custom = common_vendor.index.getMenuButtonBoundingClientRect();
|
||
|
Vue.config.globalProperties.Custom = custom;
|
||
|
Vue.config.globalProperties.navBarHeight = custom.bottom + custom.top - sysdata.statusBarHeight;
|
||
|
const modelmes = sysdata.model;
|
||
|
if (modelmes.indexOf("iPhone X") >= 0 || modelmes.indexOf("iPhone XR") >= 0 || modelmes.indexOf("iPhone XS") >= 0 || modelmes.indexOf("iPhone 12") >= 0 || modelmes.indexOf("iPhone 11") >= 0 || modelmes.indexOf("iPhone11") >= 0 || modelmes.indexOf("iPhone12") >= 0 || modelmes.indexOf("iPhoneXR") >= 0 || modelmes.indexOf("iPhoneX") >= 0) {
|
||
|
Vue.config.globalProperties.safeAreaBottom = 34;
|
||
|
} else {
|
||
|
Vue.config.globalProperties.safeAreaBottom = 0;
|
||
|
}
|
||
|
};
|
||
|
const fantMini = {
|
||
|
install
|
||
|
};
|
||
|
exports.fantMini = fantMini;
|