Authored by 邱骏
Committed by shuaiguo

iphoneX适配

... ... @@ -21,7 +21,11 @@ export default {
}
},
windowHeight() {
if (typeof window !== 'undefined') {
return window.innerHeight + 'px';
} else {
return '100%';
}
}
},
mounted() {
... ...
... ... @@ -102,4 +102,10 @@ export default {
width: 100%;
background-color: white;
}
@supports (bottom: env(safe-area-inset-bottom)) {
.footer {
height: calc(env(safe-area-inset-bottom) + 100px);
}
}
</style>
... ...