main_header.phtml 2.92 KB
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>{{title}}</title>
<meta name="keywords" content="{{keywords}}">
<meta name="description" content="{{description}}">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
<meta http-equiv="cleartype" content="on">
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta content="telephone=no" name="format-detection" />
<meta content="email=no" name="format-detection" />
<script type="text/javascript">
    (function(doc, win) {
        var docEl = doc.documentElement;
        (function() {
            var clientWidth = docEl.clientWidth;
            if (!clientWidth) {
                return;
            }
            docEl.style.fontSize = 20 * (clientWidth / 320) + 'px';
        }());
    })(document, window);
    var isWechat = /micromessenger/i.test(navigator.userAgent || '');
    if (isWechat) document.title =document.title.replace(' | Yoho!Buy有货 | 潮流购物逛不停', '');
</script>
<link rel="dns-prefetch" href="//cdn.yoho.cn">
<link rel="dns-prefetch" href="//static.yohobuy.com">
<link rel="dns-prefetch" href="//img12.static.yhbimg.com">
<link rel="dns-prefetch" href="//img13.static.yhbimg.com">
{{#if rlsEnv}}
    {{#if shopPager}}
        <link rel="stylesheet" href="//cdn.yoho.cn/myohobuy/{{version}}/shop.css">
    {{^}}
        <link rel="stylesheet" href="//cdn.yoho.cn/myohobuy/{{version}}/index.css">
    {{/if}}
{{/if}}
{{#if preEnv}}
    {{#if shopPager}}
        <link rel="stylesheet" href="//cdn.yoho.cn/myohobuy/{{version}}/shop.css">
    {{^}}
        <link rel="stylesheet" href="//cdn.yoho.cn/myohobuy/{{version}}/index.css">
    {{/if}}
{{/if}}
{{#if testEnv}}
    {{#if shopPager}}
        <link rel="stylesheet" href="//cdn.yoho.cn/myohobuy/{{version}}/shop.css">
    {{^}}
        <link rel="stylesheet" href="//cdn.yoho.cn/myohobuy/{{version}}/index.css">
    {{/if}}
{{/if}}
{{#if devEnv}}
    {{#if shopPager}}
        <link rel="stylesheet" href="//static.dev.yohobuy.com/css/shop.css">
    {{^}}
        <link rel="stylesheet" href="//static.dev.yohobuy.com/css/index.css">
    {{/if}}
{{/if}}
<link rel="apple-touch-icon-precomposed" href="//static.yohobuy.com/m/v1/img/touch/apple-touch-icon-144x144-precomposed-new.png">
<link rel="apple-touch-startup-image" sizes="640x920" href="//static.yohobuy.com/m/v1/img/startup/startup-retina.png" media="screen and (max-device-width: 480px) and (-webkit-min-device-pixel-ratio: 2)">
<link rel="apple-touch-startup-image" sizes="320x460" href="//static.yohobuy.com/m/v1/img/startup/startup.png" media="screen and (max-device-width: 320)">
</head>
<body class="{{#if isPassportPage}}passport-body{{/if}} {{#if isWechat}}wechat-body{{/if}}">
{{#if systemUpdate}}
    <div class="systemUpdate">
        <a href="index/systemUpdate" class="systemHeader">Yoho!Buy有货关于系统升级的公告</a>
        <span>X</span>
    </div>
{{/if}}