layout.hbs 2.88 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" />
        <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">
        <script type="text/javascript">
            (function(d,c){var e=d.documentElement,a="orientationchange" in window?"orientationchange":"resize",b=function(){var f=e.clientWidth;if(!f){return}if(f>=640){e.style.fontSize="40px"}else{e.style.fontSize=40*(f/640)+"px"}};if(!d.addEventListener){return}b();c.addEventListener(a,b,false);d.addEventListener("DOMContentLoaded",b,false)})(document,window);
        </script>
        {{#if devEnv}}
            <link rel="stylesheet" href="//localhost:5001/css/index.css">
        {{^}}
            <link rel="stylesheet" href="//cdn.yoho.cn/m-yohobuy-node/{{version}}/index.css">
        {{/if}}
        <link rel="apple-touch-icon-precomposed" href="http://static.yohobuy.com/m/v1/img/touch/apple-touch-icon-144x144-precomposed-new.png">
        <link rel="apple-touch-startup-image" sizes="640x920" href="http://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="http://static.yohobuy.com/m/v1/img/startup/startup.png" media="screen and (max-device-width: 320)">
    </head>
    <body {{#if isPassportPage}}class=passport-body{{/if}} {{#if isStarIndexPage}} class="star-index-bg"{{/if}} {{#if isStarDetailPage}}class="star-class-body"{{/if}}>
        <div class="main-wrap">
            {{#if systemUpdate}}
                {{> updata}}
            {{/if}}

            {{> header}}
            {{{body}}}
            {{> footer}}
        </div>
            <script type="text/javascript" src="//res.wx.qq.com/open/js/jweixin-1.1.0.js"></script>

        {{#wechatShare}}
        {{/wechatShare}}
        {{#if devEnv}}
            <script src="//localhost:5001/libs.js"></script>
            <script src="//localhost:5001/{{module}}.{{page}}.js"></script>
        {{^}}
            <script src="//cdn.yoho.cn/m-yohobuy-node/{{version}}/libs.js"></script>
            <script src="//cdn.yoho.cn/m-yohobuy-node/{{version}}/{{module}}.{{page}}.js"></script>
        {{/if}}
    </body>
</html>