Authored by 李奇

客服client layout 内cdn修改

@@ -12,10 +12,16 @@ @@ -12,10 +12,16 @@
12 <meta content="email=no" name="format-detection" /> 12 <meta content="email=no" name="format-detection" />
13 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> 13 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
14 <meta name="renderer" content="webkit" /> 14 <meta name="renderer" content="webkit" />
  15 + {{#dnsPrefetch.hosts}}
  16 + <link rel="dns-prefetch" href="{{this}}">
  17 + {{/dnsPrefetch.hosts}}
  18 +
15 {{#if devEnv}} 19 {{#if devEnv}}
16 - <link rel="stylesheet" href="//{{devHost}}:5002/css/index.css"> 20 + <link rel="stylesheet" href="//{{devHost}}:5002/css/base.css">
  21 + <link rel="stylesheet" href="//{{devHost}}:5002/css/{{#if cssModule}}{{cssModule}}.css{{^}}{{module}}.css{{/if}}">
17 {{^}} 22 {{^}}
18 - <link rel="stylesheet" href="//cdn.yoho.cn/yohobuy-node/{{version}}/index.css"> 23 + <link rel="stylesheet" href="//{{#isEqual cdn 'qcloud'}}qcdn.yoho.cn{{^}}cdn.yoho.cn{{/isEqual}}/yohobuy-node/{{version}}/base.css">
  24 + <link rel="stylesheet" href="//{{#isEqual cdn 'qcloud'}}qcdn.yoho.cn{{^}}cdn.yoho.cn{{/isEqual}}/yohobuy-node/{{version}}/{{#if cssModule}}{{cssModule}}.css{{^}}{{module}}.css{{/if}}">
19 {{/if}} 25 {{/if}}
20 </head> 26 </head>
21 <body class="client"> 27 <body class="client">
@@ -59,9 +65,9 @@ @@ -59,9 +65,9 @@
59 <script src="//{{devHost}}:5002/libs.js"></script> 65 <script src="//{{devHost}}:5002/libs.js"></script>
60 <script src="//{{devHost}}:5002/{{module}}.{{page}}.js"></script> 66 <script src="//{{devHost}}:5002/{{module}}.{{page}}.js"></script>
61 {{^}} 67 {{^}}
62 - <input name="assetsPrefix" type="text" type="hidden" value="//cdn.yoho.cn/yohobuy-node/assets">  
63 - <script src="//cdn.yoho.cn/yohobuy-node/{{version}}/libs.js"></script>  
64 - <script src="//cdn.yoho.cn/yohobuy-node/{{version}}/{{module}}.{{page}}.js"></script> 68 + <input name="assetsPrefix" type="text" type="hidden" value="//{{#isEqual cdn 'qcloud'}}qcdn.yoho.cn{{^}}cdn.yoho.cn{{/isEqual}}/yohobuy-node/assets">
  69 + <script src="//{{#isEqual cdn 'qcloud'}}qcdn.yoho.cn{{^}}cdn.yoho.cn{{/isEqual}}/yohobuy-node/{{version}}/libs.js"></script>
  70 + <script src="//{{#isEqual cdn 'qcloud'}}qcdn.yoho.cn{{^}}cdn.yoho.cn{{/isEqual}}/yohobuy-node/{{version}}/{{module}}.{{page}}.js"></script>
65 {{> analysis}} 71 {{> analysis}}
66 {{/if}} 72 {{/if}}
67 </body> 73 </body>