Commit 8a9aef8c authored by youjie's avatar youjie

no message

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