Authored by baoss

app内适配测试 review by bevishuang

... ... @@ -36,6 +36,8 @@ function iPhoneXHandler(innerHeight) {
if (yoho.isWechat && window.history.length === 1) {
$yohoBody.addClass('iphonex-series');
} else if (yoho.isApp) {
$yohoBody.addClass('iphonex-series');
} else {
if (innerHeight < currentInnerHeight) {
$yohoBody.addClass('iphonex-series');
... ...
... ... @@ -34,7 +34,6 @@ if (!$appLink.length) {
$appLink = $('#yoho-app-link');
}
const isiPhoneXSeries = () => {
console.log(navigator.userAgent);
let isiOS = /\(i[^;]+;( U;)? CPU.+Mac OS X/i.test(navigator.userAgent || '');
if (!window || !isiOS) {
... ...
... ... @@ -53,6 +53,12 @@ body {
.iphonex-bottom-tab {
bottom: 34PX !important;
}
.group {
.tab-content {
padding-bottom: 34PX;
}
}
}
button,
... ...