Authored by 陈峰

support sullscreen

... ... @@ -54,6 +54,10 @@ module.exports = () => {
// IP 地址
yoho.clientIp = _getClientIp(req);
if (req.query.fullscreen) {
yoho.fullScreen = true;
}
yoho.isMobile = /(nokia|iphone|android|ipad|motorola|^mot\-|softbank|foma|docomo|kddi|up\.browser|up\.link|htc|dopod|blazer|netfront|helio|hosin|huawei|novarra|CoolPad|webos|techfaith|palmsource|blackberry|alcatel|amoi|ktouch|nexian|samsung|^sam\-|s[cg]h|^lge|ericsson|philips|sagem|wellcom|bunjalloo|maui|symbian|smartphone|midp|wap|phone|windows ce|iemobile|^spice|^bird|^zte\-|longcos|pantech|gionee|^sie\-|portalmmm|jig\s browser|hiptop|^ucweb|^benq|haier|^lct|opera\s*mobi|opera\*mini|320x320|240x320|176x220)/i.test(req.get('User-Agent') || ''); // eslint-disable-line
yoho.isWechat = /micromessenger/i.test(req.get('User-Agent') || '');
yoho.isWeibo = /weibo/i.test(req.get('User-Agent') || '');
... ...
... ... @@ -77,7 +77,7 @@
<link rel="apple-touch-startup-image" href="https://cdn.yoho.cn/h5/forios/startup/startup-orange-5.png" media="screen and (max-device-width: 640px)">
</head>
<body class="{{pageStyle}}{{#if isWechat}} wechat-body{{/if}}{{#if width750}} width750{{/if}}{{#if isPassportPage}} passport-body{{/if}}{{#if isStarIndexPage}} star-index-bg{{/if}}{{#if isStarDetailPage}} star-class-body{{/if}}{{#if isInstallmentPage}}{{#unless notOpen}} installment-body{{/unless}}{{/if}}{{#if @root.isMarsApp}} is-mars-app{{/if}}{{#if @root.isNowApp}} is-now-app{{/if}}">
<div class="main-wrap" id="main-wrap"{{#if appPath}} data-apppath='{{{appPath}}}'{{/if}}{{#if miniPath}} data-miniPath='{{{miniPath}}}'{{/if}}{{#if @root.wap.wechat.miniAutoJump}} data-miniautojump="1"{{/if}}{{#if @root.wap.wechat.backDownload}} data-backDownload='{{@root.wap.wechat.backDownload}}'{{/if}}>
<div class="main-wrap{{#if fullScreen}} full-screen{{/if}}" id="main-wrap"{{#if appPath}} data-apppath='{{{appPath}}}'{{/if}}{{#if miniPath}} data-miniPath='{{{miniPath}}}'{{/if}}{{#if @root.wap.wechat.miniAutoJump}} data-miniautojump="1"{{/if}}{{#if @root.wap.wechat.backDownload}} data-backDownload='{{@root.wap.wechat.backDownload}}'{{/if}}>
{{#if systemUpdate}}
{{> updata}}
... ...
... ... @@ -67,6 +67,14 @@ button {
margin-left: auto;
max-width: 640px;
width: 100%;
&.full-screen {
max-width: initial !important;
.mobile-container {
max-width: initial !important;
}
}
}
/* 字体名称勿改的,APP做IP直连有使用到 */
... ...