code reveiw by hf: do add passport layout to support https
Showing
4 changed files
with
119 additions
and
4 deletions
1 | +<!-- Google Tag Manager --> | ||
2 | +<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W958MG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> | ||
3 | +<script> | ||
4 | + (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': | ||
5 | + new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], | ||
6 | + j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= | ||
7 | + '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); | ||
8 | + })(window,document,'script','dataLayer','GTM-W958MG'); | ||
9 | +</script> | ||
10 | +<!-- End Google Tag Manager --> | ||
11 | +<script type="text/javascript"> | ||
12 | + var _hmt = _hmt || []; | ||
13 | + (function() { | ||
14 | + var hm = document.createElement("script"); | ||
15 | + hm.src = "//hm.baidu.com/hm.js?c6ee7218b8321cb65fb2e98f284d8311"; | ||
16 | + var s = document.getElementsByTagName("script")[0]; | ||
17 | + s.parentNode.insertBefore(hm, s); | ||
18 | + })(); | ||
19 | +</script> | ||
20 | +<script> | ||
21 | + var _hmt = _hmt || []; | ||
22 | + (function() { | ||
23 | + var hm = document.createElement("script"); | ||
24 | + hm.src = "//hm.baidu.com/hm.js?65dd99e0435a55177ffda862198ce841"; | ||
25 | + var s = document.getElementsByTagName("script")[0]; | ||
26 | + s.parentNode.insertBefore(hm, s); | ||
27 | + })(); | ||
28 | +</script> | ||
29 | +<script src="http://static.yohobuy.com/js/analytics/analysis.js"></script> | ||
30 | +<script src="http://static.yohobuy.com/m/v1/js/om_code.js"></script> |
1 | +{{> layout/page_footer}} | ||
2 | +{{> layout/download_app}} | ||
3 | +{{#if hasWxShare}} | ||
4 | +<script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script> | ||
5 | +{{/if}} | ||
6 | +{{#if rlsEnv}} | ||
7 | +<script src="/dist/myohobuy/{{version}}/lib.js"></script> | ||
8 | +<script src="/dist/myohobuy/{{version}}/index.js"></script> | ||
9 | +{{/if}} | ||
10 | +{{#if preEnv}} | ||
11 | +<script src="/dist/myohobuy/{{version}}/lib.js"></script> | ||
12 | +<script src="/dist/myohobuy/{{version}}/index.js"></script> | ||
13 | +{{/if}} | ||
14 | +{{#if testEnv}} | ||
15 | +<script src="/dist/myohobuy/{{version}}/lib.js"></script> | ||
16 | +<script src="/dist/myohobuy/{{version}}/index-debug.js"></script> | ||
17 | +{{/if}} | ||
18 | +{{#if devEnv}} | ||
19 | +<script src="http://localhost:8000/static/js/sea.js?nowrap"></script> | ||
20 | +<script>seajs.config({base: 'http://localhost:8000/'});</script> | ||
21 | +{{/if}} | ||
22 | +<script type="text/javascript"> | ||
23 | + (function(w,d,s,j,f){ | ||
24 | + w['YohoAcquisitionObject']=f; | ||
25 | + w[f]=function(){w[f].p=arguments;}; | ||
26 | + var a=d.createElement(s); | ||
27 | + var m=d.getElementsByTagName(s)[0]; | ||
28 | + a.async=1; | ||
29 | + a.src=j; | ||
30 | + m.parentNode.insertBefore(a,m); | ||
31 | + })(window,document,'script','/dist/yas-jssdk/{{yas_version}}/yas.js','_yas'); | ||
32 | +</script> | ||
33 | +{{> layout/use}} | ||
34 | +{{> layout/analysis_passport}} | ||
35 | +</body> | ||
36 | +</html> |
1 | +<!DOCTYPE html> | ||
2 | +<html> | ||
3 | +<head> | ||
4 | +<meta charset="utf-8"> | ||
5 | +<title>{{title}}</title> | ||
6 | +<meta name="keywords" content="{{keywords}}"> | ||
7 | +<meta name="description" content="{{description}}"> | ||
8 | +<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"> | ||
9 | +<meta http-equiv="cleartype" content="on"> | ||
10 | +<meta name="apple-mobile-web-app-status-bar-style" content="black" /> | ||
11 | +<meta content="telephone=no" name="format-detection" /> | ||
12 | +<meta content="email=no" name="format-detection" /> | ||
13 | +<script type="text/javascript"> | ||
14 | + (function(doc, win) { | ||
15 | + var docEl = doc.documentElement; | ||
16 | + (function() { | ||
17 | + var clientWidth = docEl.clientWidth; | ||
18 | + if (!clientWidth) { | ||
19 | + return; | ||
20 | + } | ||
21 | + docEl.style.fontSize = 20 * (clientWidth / 320) + 'px'; | ||
22 | + }()); | ||
23 | + })(document, window); | ||
24 | +</script> | ||
25 | +<link rel="dns-prefetch" href="//cdn.yoho.cn"> | ||
26 | +<link rel="dns-prefetch" href="//static.yohobuy.com"> | ||
27 | +<link rel="dns-prefetch" href="//img12.static.yhbimg.com"> | ||
28 | +<link rel="dns-prefetch" href="//img13.static.yhbimg.com"> | ||
29 | +{{#if rlsEnv}} | ||
30 | +<link rel="stylesheet" href="/dist/myohobuy/{{version}}/index.css"> | ||
31 | +{{/if}} | ||
32 | +{{#if preEnv}} | ||
33 | +<link rel="stylesheet" href="/dist/myohobuy/{{version}}/index.css"> | ||
34 | +{{/if}} | ||
35 | +{{#if testEnv}} | ||
36 | +<link rel="stylesheet" href="/dist/myohobuy/{{version}}/index.css"> | ||
37 | +{{/if}} | ||
38 | +{{#if devEnv}} | ||
39 | +<link rel="stylesheet" href="http://static.dev.yohobuy.com/css/index.css"> | ||
40 | +{{/if}} | ||
41 | +</head> | ||
42 | +<body {{#if isPassportPage}}class=passport-body{{/if}}> | ||
43 | +{{#if systemUpdate}} | ||
44 | + <div class="systemUpdate"> | ||
45 | + <a href="index/systemUpdate" class="systemHeader">Yoho!Buy有货关于系统升级的公告</a> | ||
46 | + <span>X</span> | ||
47 | + </div> | ||
48 | +{{/if}} | ||
49 | +{{> layout/page_header}} |
1 | <script> | 1 | <script> |
2 | seajs.use('js/common'); | 2 | seajs.use('js/common'); |
3 | </script> | 3 | </script> |
4 | - {{!-- 逛(PLUS+STAR) --}} | 4 | +{{!-- 逛(PLUS+STAR) --}} |
5 | {{#if psList}} | 5 | {{#if psList}} |
6 | <script> | 6 | <script> |
7 | seajs.use('js/guang/plus-star/list'); | 7 | seajs.use('js/guang/plus-star/list'); |
@@ -175,12 +175,12 @@ | @@ -175,12 +175,12 @@ | ||
175 | seajs.use('js/product/detail/comments-consults'); | 175 | seajs.use('js/product/detail/comments-consults'); |
176 | </script> | 176 | </script> |
177 | {{/if}} | 177 | {{/if}} |
178 | - {{!-- 商品详情我要咨询 --}} | ||
179 | - {{#if consultformPage}} | 178 | +{{!-- 商品详情我要咨询 --}} |
179 | +{{#if consultformPage}} | ||
180 | <script> | 180 | <script> |
181 | seajs.use('js/product/detail/consultform'); | 181 | seajs.use('js/product/detail/consultform'); |
182 | </script> | 182 | </script> |
183 | - {{/if}} | 183 | +{{/if}} |
184 | {{!-- 品类 --}} | 184 | {{!-- 品类 --}} |
185 | {{#if categoryPage}} | 185 | {{#if categoryPage}} |
186 | <script> | 186 | <script> |
-
Please register or login to post a comment