Commit 1eb58b49 authored by youjie's avatar youjie

no message

parent ccaaa247
......@@ -9,6 +9,13 @@ export default {
onLaunch: function () {
this.init();
this.formatPlat();
let that=this
wx.getSystemInfo({
success(res) {
let lift=res.screenHeight-res.safeArea.bottom
that.$uiConfig.is_bang = Number(lift)>0?true:false
}
})
},
onShow: function (options) {
if(options.referrerInfo.extraData){
......@@ -46,24 +53,24 @@ export default {
}
},
formatPlat() {
let modelmes = uni.getSystemInfoSync().model;
let tempMoble = Boolean;
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
) {
tempMoble = true;
} else {
tempMoble = false;
}
this.$uiConfig.is_bang = tempMoble;
// let modelmes = uni.getSystemInfoSync().model;
// let tempMoble = Boolean;
// 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
// ) {
// tempMoble = true;
// } else {
// tempMoble = false;
// }
// this.$uiConfig.is_bang = tempMoble;
},
formatNavigation() {
uni.setNavigationBarColor({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment