Authored by 陈峰

support sullscreen

@@ -54,6 +54,10 @@ module.exports = () => { @@ -54,6 +54,10 @@ module.exports = () => {
54 // IP 地址 54 // IP 地址
55 yoho.clientIp = _getClientIp(req); 55 yoho.clientIp = _getClientIp(req);
56 56
  57 + if (req.query.fullscreen) {
  58 + yoho.fullScreen = true;
  59 + }
  60 +
57 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 61 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
58 yoho.isWechat = /micromessenger/i.test(req.get('User-Agent') || ''); 62 yoho.isWechat = /micromessenger/i.test(req.get('User-Agent') || '');
59 yoho.isWeibo = /weibo/i.test(req.get('User-Agent') || ''); 63 yoho.isWeibo = /weibo/i.test(req.get('User-Agent') || '');
@@ -77,7 +77,7 @@ @@ -77,7 +77,7 @@
77 <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)"> 77 <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)">
78 </head> 78 </head>
79 <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}}"> 79 <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}}">
80 - <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}}> 80 + <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}}>
81 81
82 {{#if systemUpdate}} 82 {{#if systemUpdate}}
83 {{> updata}} 83 {{> updata}}
@@ -67,6 +67,14 @@ button { @@ -67,6 +67,14 @@ button {
67 margin-left: auto; 67 margin-left: auto;
68 max-width: 640px; 68 max-width: 640px;
69 width: 100%; 69 width: 100%;
  70 +
  71 + &.full-screen {
  72 + max-width: initial !important;
  73 +
  74 + .mobile-container {
  75 + max-width: initial !important;
  76 + }
  77 + }
70 } 78 }
71 79
72 /* 字体名称勿改的,APP做IP直连有使用到 */ 80 /* 字体名称勿改的,APP做IP直连有使用到 */