Authored by Rock Zhang

去除帮助中心列表页和详情页右上角的导航;更新404页面;

Code Review By Rock Zhang
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 <html> 2 <html>
3 <head> 3 <head>
4 <meta charset="utf-8"> 4 <meta charset="utf-8">
5 -<title>页面不存在</title> 5 +<title>页面不存在 | Yoho!Buy有货 | 潮流购物逛不停</title>
6 <meta name="keywords" content="Yoho! 有货官网,潮流志,潮流男装,潮牌,美国潮牌,日本潮牌,香港潮牌,潮牌店,新品首发,欧美潮流,全球购,代购,时尚,流行,特卖,B2C,正品,购物网站,网上购物,货到付款"> 6 <meta name="keywords" content="Yoho! 有货官网,潮流志,潮流男装,潮牌,美国潮牌,日本潮牌,香港潮牌,潮牌店,新品首发,欧美潮流,全球购,代购,时尚,流行,特卖,B2C,正品,购物网站,网上购物,货到付款">
7 <meta name="description" content="YOHO! 有货,年轻人潮流购物中心,中国最大的潮流商品购物网站。100%品牌正品保证,支持货到付款。作为YOHO!旗下的购物平台,汇集了全球潮流时尚商品和中国最流行的商品,也是国内最大的原创文化商品平台,也是香港,台湾地区流行商品的集中地。同时包含日本、韩国等众多国外潮流品牌,带给您全新潮流购物体验。"> 7 <meta name="description" content="YOHO! 有货,年轻人潮流购物中心,中国最大的潮流商品购物网站。100%品牌正品保证,支持货到付款。作为YOHO!旗下的购物平台,汇集了全球潮流时尚商品和中国最流行的商品,也是国内最大的原创文化商品平台,也是香港,台湾地区流行商品的集中地。同时包含日本、韩国等众多国外潮流品牌,带给您全新潮流购物体验。">
8 <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"> 8 <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
@@ -22,30 +22,66 @@ @@ -22,30 +22,66 @@
22 }()); 22 }());
23 })(document, window); 23 })(document, window);
24 </script> 24 </script>
25 -<link rel="stylesheet" href="http://cdn.yoho.cn/myohobuy/1.1.2/index.css"> 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 +<link rel="stylesheet" href="http://static.dev.yohobuy.com/css/index.css">
  30 +<link rel="apple-touch-icon-precomposed" href="http://static.yohobuy.com/m/v1/img/touch/apple-touch-icon-144x144-precomposed-new.png">
  31 +<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)">
  32 +<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)">
26 </head> 33 </head>
27 <body > 34 <body >
28 - <header class="yoho-header boys">  
29 - <a href="javascript:history.go(-1);" class="nav-back"></a>  
30 - <a href="http://m.yohobuy.com?go=1" class="nav-home"></a> 35 +<header id="yoho-header" class="yoho-header boys">
  36 + <a href="javascript:history.go(-1);" class="iconfont nav-back">&#xe610;</a>
  37 + <span class="iconfont nav-home">&#xe62d;</span>
31 <p class="nav-title">抱歉,页面不存在!</p> 38 <p class="nav-title">抱歉,页面不存在!</p>
32 </header> 39 </header>
  40 +<div class="homebuttom none">
  41 + <ul>
  42 + <li>
  43 + <a href="/">
  44 + <i class="iconfont">&#xe62a;</i>
  45 + <span>首页</span>
  46 + </a>
  47 + </li>
  48 + <li>
  49 + <a href="cate">
  50 + <i class="iconfont">&#xe62d;</i>
  51 + <span>分类</span>
  52 + </a>
  53 + </li>
  54 + <li>
  55 + <a href="cart/index/index">
  56 + <i class="iconfont">&#xe62c;</i>
  57 + <span>购物车</span>
  58 + </a>
  59 + </li>
  60 + <li>
  61 + <a href="/home">
  62 + <i class="iconfont">&#xe62b;</i>
  63 + <span>我的</span>
  64 + </a>
  65 + </li>
  66 + </ul>
  67 +</div>
  68 +
33 <div class="err-page yoho-page"> 69 <div class="err-page yoho-page">
34 <div class="err-bg"></div> 70 <div class="err-bg"></div>
35 </div> 71 </div>
36 - <footer id="yoho-footer" class="yoho-footer hide">  
37 - <p class="op-row">  
38 - <span class="back-to-top">  
39 - Back to top  
40 - <i class="iconfont">&#xe608;</i>  
41 - </span>  
42 - </p>  
43 - <address class="copyright">  
44 - CopyRight©2007-2016 南京新与力文化传播有限公司  
45 - </address>  
46 - </footer> 72 +<footer id="yoho-footer" class="yoho-footer hide">
  73 + <p class="op-row">
  74 + <span class="back-to-top">
  75 + Back to top
  76 + <i class="iconfont">&#xe608;</i>
  77 + </span>
  78 + </p>
  79 + <address class="copyright">
  80 + CopyRight©2007-2016 南京新与力文化传播有限公司
  81 + </address>
  82 +</footer>
47 83
48 - <div class="float-layer hide" id="float-layer-app"> 84 +<div class="float-layer hide" id="float-layer-app">
49 <div class="float-layer-left"> 85 <div class="float-layer-left">
50 <span class="yoho-icon iconfont">&#xe60d;</span> 86 <span class="yoho-icon iconfont">&#xe60d;</span>
51 <p>新用户送千元礼包</p> 87 <p>新用户送千元礼包</p>
@@ -54,60 +90,72 @@ @@ -54,60 +90,72 @@
54 <i class="close-icon iconfont">&#xe623;</i> 90 <i class="close-icon iconfont">&#xe623;</i>
55 <div class="circle-rightbottom"></div> 91 <div class="circle-rightbottom"></div>
56 </a> 92 </a>
57 - <a href="http://m.yohobuy.com/download/hyapp" id="float-layer-btn"> 93 + <a href="http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho" id="float-layer-btn">
58 立即下载 94 立即下载
59 </a> 95 </a>
60 </div> 96 </div>
61 97
62 -<script src="http://cdn.yoho.cn/myohobuy/1.1.2/lib.js"></script>  
63 -<script src="http://cdn.yoho.cn/myohobuy/1.1.2/index.js"></script>  
64 98
65 -<script type="text/javascript">  
66 - (function(w,d,s,j,f){  
67 - w['YohoAcquisitionObject']=f;  
68 - w[f]=function(){w[f].p=arguments;};  
69 - var a=d.createElement(s);  
70 - var m=d.getElementsByTagName(s)[0];  
71 - a.async=1;  
72 - a.src=j;  
73 - m.parentNode.insertBefore(a,m);  
74 - })(window,document,'script','http://cdn.yoho.cn/yas-jssdk/1.0.8/yas.js','_yas');  
75 -</script> 99 +
  100 + <script src="http://localhost:8000/static/js/sea.js?nowrap"></script>
  101 +<script>seajs.config({base: 'http://localhost:8000/'});</script>
76 <script> 102 <script>
77 seajs.use('js/common'); 103 seajs.use('js/common');
78 </script> 104 </script>
79 105
80 - <!-- Google Tag Manager -->  
81 - <noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W958MG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>  
82 - <script>  
83 - (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':  
84 - new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],  
85 - j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=  
86 - '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);  
87 - })(window,document,'script','dataLayer','GTM-W958MG');  
88 - </script>  
89 - <!-- End Google Tag Manager -->  
90 -  
91 -<script type="text/javascript"> 106 +<!-- Google Tag Manager -->
  107 +<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W958MG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  108 +<script>
92 var _hmt = _hmt || []; 109 var _hmt = _hmt || [];
93 - (function() {  
94 - var hm = document.createElement("script");  
95 - hm.src = "//hm.baidu.com/hm.js?c6ee7218b8321cb65fb2e98f284d8311";  
96 - var s = document.getElementsByTagName("script")[0];  
97 - s.parentNode.insertBefore(hm, s);  
98 - })(); 110 + function async_load(){
  111 + (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  112 + new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  113 + j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  114 + '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  115 + })(window,document,'script','dataLayer','GTM-W958MG');
  116 + (function() {
  117 + var hm = document.createElement("script");
  118 + hm.src = "//hm.baidu.com/hm.js?c6ee7218b8321cb65fb2e98f284d8311";
  119 + hm.async = 1;
  120 + var s = document.getElementsByTagName("script")[0];
  121 + s.parentNode.insertBefore(hm, s);
  122 + })();
  123 + (function() {
  124 + var hm = document.createElement("script");
  125 + hm.src = "//hm.baidu.com/hm.js?65dd99e0435a55177ffda862198ce841";
  126 + hm.async = 1;
  127 + var s = document.getElementsByTagName("script")[0];
  128 + s.parentNode.insertBefore(hm, s);
  129 + })();
  130 + (function() {
  131 + var hm = document.createElement("script");
  132 + hm.src = "//hm.baidu.com/hm.js?e5b83a487a4458aa5abca43f5779b764";
  133 + var s = document.getElementsByTagName("script")[0];
  134 + s.parentNode.insertBefore(hm, s);
  135 + })();
  136 + (function() {
  137 + var hm = document.createElement("script");
  138 + hm.src = "http://static.yohobuy.com/js/analytics/analysis.js";
  139 + hm.async = 1;
  140 + var s = document.getElementsByTagName("script")[0];
  141 + s.parentNode.insertBefore(hm, s);
  142 + })();
  143 + }
  144 + window.addEventListener('load', async_load, false);
99 </script> 145 </script>
100 -  
101 <script> 146 <script>
102 - var _hmt = _hmt || [];  
103 - (function() {  
104 - var hm = document.createElement("script");  
105 - hm.src = "//hm.baidu.com/hm.js?65dd99e0435a55177ffda862198ce841";  
106 - var s = document.getElementsByTagName("script")[0];  
107 - s.parentNode.insertBefore(hm, s);  
108 - })(); 147 + window._py = window._py||[];
  148 + window._py.push(['a', 'MC..o8vMMWxEXDCiqYckD81lUX']);
  149 + window._py.push(['domain','stats.ipinyou.com']);
  150 + window._py.push(['e','']);
  151 + if(typeof _goodsData!='undefined'){
  152 + window._py.push(['pi',_goodsData]);
  153 + }
  154 + -function(d){
  155 + var f = 'https:' == d.location.protocol;var c = d.createElement('script');c.type='text/javascript';c.async=1;
  156 + c.src=(f ? 'https' : 'http') + '://'+(f?'fm.ipinyou.com':'fm.p0y.cn')+'/j/t/adv.js';
  157 + var h = d.getElementsByTagName("script")[0];h.parentNode.insertBefore(c, h);
  158 + }(document);
109 </script> 159 </script>
110 -  
111 -<script src="http://static.yohobuy.com/js/analytics/analysis.js"></script>  
112 -<script src="http://static.yohobuy.com/m/v1/js/om_code.js"></script></body> 160 +<script src="http://static.yohobuy.com/m/v1/js/om_code.js" async="async"></script></body>
113 </html> 161 </html>
@@ -958,7 +958,7 @@ class HomeController extends AbstractAction @@ -958,7 +958,7 @@ class HomeController extends AbstractAction
958 public function helpAction() 958 public function helpAction()
959 { 959 {
960 $this->setTitle('帮助中心'); 960 $this->setTitle('帮助中心');
961 - $this->setNavHeader('帮助中心'); 961 + $this->setNavHeader('帮助中心', true, false);
962 962
963 $this->_view->display('help', array( 963 $this->_view->display('help', array(
964 'iHelp' => Home\HelpModel::serviceInfo(), 964 'iHelp' => Home\HelpModel::serviceInfo(),
@@ -978,7 +978,7 @@ class HomeController extends AbstractAction @@ -978,7 +978,7 @@ class HomeController extends AbstractAction
978 } 978 }
979 979
980 $this->setTitle($caption); 980 $this->setTitle($caption);
981 - $this->setNavHeader($caption); 981 + $this->setNavHeader($caption, true, false);
982 982
983 $this->_view->display('help-detail', array( 983 $this->_view->display('help-detail', array(
984 'iHelp' => Home\HelpModel::serviceDetail($code), 984 'iHelp' => Home\HelpModel::serviceDetail($code),