123456789101112131415161718 |
- export default {
- data() {
- return {
- h:uni.getSystemInfoSync().windowHeight,
- mt:uni.getSystemInfoSync().statusBarHeight + 44,
- th:50+uni.getSystemInfoSync().safeAreaInsets.bottom
- }
- },
- onShow(){
- uni.getSystemInfo({
- success:res=>{
- if(res.platform === 'android'){
- this.th = res.screenHeight - res.windowHeight - res.statusBarHeight - 48;
- }
- }
- })
- }
- }
|