Merge branch 'feature/ufo-activitys' into 'develop'
安卓不进行安全区域适配 app.vue中mounted时,安卓不再进行windowHeight计算 See merge request !10
Showing
2 changed files
with
1 additions
and
7 deletions
@@ -46,7 +46,7 @@ export default { | @@ -46,7 +46,7 @@ export default { | ||
46 | }); | 46 | }); |
47 | 47 | ||
48 | this.getZkConfig(); | 48 | this.getZkConfig(); |
49 | - if (typeof window !== 'undefined') { | 49 | + if (typeof window !== 'undefined' && !/Android/i.test(navigator.userAgent)) { |
50 | if (window.screen.availHeight - window.innerHeight > 100) { | 50 | if (window.screen.availHeight - window.innerHeight > 100) { |
51 | this.windowHeight = (window.screen.availHeight - 88) + 'px'; | 51 | this.windowHeight = (window.screen.availHeight - 88) + 'px'; |
52 | } else { | 52 | } else { |
@@ -102,10 +102,4 @@ export default { | @@ -102,10 +102,4 @@ export default { | ||
102 | width: 100%; | 102 | width: 100%; |
103 | background-color: white; | 103 | background-color: white; |
104 | } | 104 | } |
105 | - | ||
106 | -/*@supports (bottom: env(safe-area-inset-bottom)) { | ||
107 | - .footer { | ||
108 | - height: calc(env(safe-area-inset-bottom) + 100px); | ||
109 | - } | ||
110 | -}*/ | ||
111 | </style> | 105 | </style> |
-
Please register or login to post a comment