Commit 8a9aef8c authored by youjie's avatar youjie

no message

parent e2f5e895
......@@ -24,8 +24,8 @@
bottom: 0;
flex-direction: row;
/* #ifndef */
padding-bottom: constant(safe-area-inset-top);
padding-bottom: env(safe-area-inset-top);
/* padding-bottom: constant(safe-area-inset-top);
padding-bottom: env(safe-area-inset-top); */
/* #endif */
display: flex;
left: 0;
......@@ -245,24 +245,32 @@ export default {
}, 3000);
}
this.activeHandler();
let port = uni.getSystemInfoSync().platform
switch (port) {
case 'android':
this.height = '140'
this.paddingBottom = '20'
console.log('运行Android上',port);//android
break;
case 'ios':
this.height = '160'
this.paddingBottom = '58'
console.log('运行iOS上',port);//ios
break;
default:
this.height = '160'
this.paddingBottom = '58'
console.log('运行在开发者工具上');//devtools
break;
}
let that=this
wx.getSystemInfo({
success(res) {
let lift=res.screenHeight-res.safeArea.bottom
that.paddingBottom = Number(lift)+10
console.log(lift)
}
})
// let port = uni.getSystemInfoSync().platform
// switch (port) {
// case 'android':
// this.height = '140'
// this.paddingBottom = '20'
// console.log('运行Android上',port);//android
// break;
// case 'ios':
// this.height = '160'
// this.paddingBottom = '58'
// console.log('运行iOS上',port);//ios
// break;
// default:
// this.height = '160'
// this.paddingBottom = '58'
// console.log('运行在开发者工具上');//devtools
// break;
// }
},
// activated(){
// if(uni.getStorageSync("navs")){
......
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