layout.hbs 3.11 KB
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>{{title}}</title>
        <meta name="keywords" content="{{keywords}}">
        <meta name="description" content="{{description}}">
        {{#if cononicalURL}} <link rel="cononical" href="{{cononicalURL}}"/> {{/if}}
        <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" />
        <meta name="applicable-device"content="pc">
    {{#if mobileRefer}}
        <link rel="alternate" media="only screen and(max-width: 640px)" href="{{mobileRefer}}">
        <meta name="mobile-agent" content="format=html5;url={{mobileRefer}}">
    {{/if}}
        {{#dnsPrefetch.hosts}}
            <link rel="dns-prefetch" href="{{this}}">
        {{/dnsPrefetch.hosts}}

        {{#if devEnv}}
            <link rel="stylesheet" href="//{{devHost}}:5002/base.css">
            <link rel="stylesheet" href="//{{devHost}}:5002/{{#if cssModule}}{{cssModule}}.css{{^}}{{module}}.css{{/if}}">
        {{^}}
            <link rel="stylesheet" href="//{{#isEqual cdn 'qcloud'}}qcdn.yoho.cn{{^}}cdn.yoho.cn{{/isEqual}}/yohobuy-node/{{version}}/base.css">
            <link rel="stylesheet" href="//{{#isEqual cdn 'qcloud'}}qcdn.yoho.cn{{^}}cdn.yoho.cn{{/isEqual}}/yohobuy-node/{{version}}/{{#if cssModule}}{{cssModule}}.css{{^}}{{module}}.css{{/if}}">
        {{/if}}
    </head>
    <body>
        {{> mobile-refer}}

        {{> header}}
        {{> common/simple-header}}
        {{#if pageErr}}
            {{> 404}}
        {{^}}
            {{{body}}}
        {{/if}}
        {{> footer}}

        {{#ifand isProduction pc.open.bughd}}
            <script type="text/javascript" src="//cdn.yoho.cn/tool/bj-report-tryjs.min.js" crossOrigin="anonymous"></script>
            <script>
                BJ_REPORT && BJ_REPORT.init({
                    id: 3,
                    url: "//badjs.yoho.cn/badjs",
                    ignore: [/Script error/i],
                    offlineLog: false,
                    offlineLogAuto: false
                });
             </script>
        {{/ifand}}

        {{#if devEnv}}
            <script src="//{{devHost}}:5002/libs.js"></script>
            <script src="//{{devHost}}:5002/{{module}}.{{page}}.js"></script>
        {{^}}
            <script src="//{{#isEqual cdn 'qcloud'}}qcdn.yoho.cn{{^}}cdn.yoho.cn{{/isEqual}}/yohobuy-node/{{version}}/libs.js"></script>
            <script src="//{{#isEqual cdn 'qcloud'}}qcdn.yoho.cn{{^}}cdn.yoho.cn{{/isEqual}}/yohobuy-node/{{version}}/{{module}}.{{page}}.js"></script>
            {{> analysis}}
        {{/if}}

        {{#ifand isProduction pc.open.bughd}}
            <script>
                BJ_REPORT && BJ_REPORT.tryJs().spyAll();
            </script>
        {{/ifand}}

        <script>window.cdn='{{cdn}}';</script>
        <script>window._version='{{version}}';</script>
    </body>
</html>