Authored by hf

fixes bug to search page show header

@@ -25,9 +25,14 @@ @@ -25,9 +25,14 @@
25 <link rel="stylesheet" href="http://static.buy.test.yoho.cn/dist/myohobuy/0.0.6/index.css"> 25 <link rel="stylesheet" href="http://static.buy.test.yoho.cn/dist/myohobuy/0.0.6/index.css">
26 </head> 26 </head>
27 <body > 27 <body >
28 - <div class="search-page yoho-page"> 28 + <header class="yoho-header boys">
  29 + <a href="javascript:history.go(-1);" class="nav-back"></a>
  30 + <a href="http://buy.test.yoho.cn?go=1" class="nav-home"></a>
  31 + <p class="nav-title">搜索</p>
  32 +</header>
  33 +<div class="search-page yoho-page">
29 <div id="search-input" class="search-input"> 34 <div id="search-input" class="search-input">
30 - <form id="search-form" action="http://search.test.yoho.cn" method="get"> 35 + <form id="search-form" action=http://search.dev.yohobuy.com method="get">
31 <i class="search-icon iconfont">&#xe60f;</i> 36 <i class="search-icon iconfont">&#xe60f;</i>
32 <input type="text" placeholder="搜索商品" name="query"> 37 <input type="text" placeholder="搜索商品" name="query">
33 <i class="clear-input iconfont hide">&#xe626;</i> 38 <i class="clear-input iconfont hide">&#xe626;</i>
@@ -72,29 +77,14 @@ @@ -72,29 +77,14 @@
72 立即下载 77 立即下载
73 </a> 78 </a>
74 </div> 79 </div>
75 -  
76 -  
77 -<script src="http://static.buy.test.yoho.cn/dist/myohobuy/0.0.6/lib.js"></script>  
78 -<script src="http://static.buy.test.yoho.cn/dist/myohobuy/0.0.6/index.js"></script> 80 +<script src="http://static.buy.test.yoho.cn/dist/myohobuy/0.0.1/lib.js"></script>
  81 +<script src="http://static.buy.test.yoho.cn/dist/myohobuy/0.0.1/index.js"></script>
79 <script> 82 <script>
80 seajs.use('js/common'); 83 seajs.use('js/common');
81 </script> 84 </script>
82 -  
83 -  
84 -  
85 -  
86 -  
87 -  
88 -  
89 -  
90 -  
91 -  
92 -  
93 -  
94 -  
95 <script> 85 <script>
96 seajs.use('js/index/search'); 86 seajs.use('js/index/search');
  87 + seajs.use('js/index/footer');
97 </script> 88 </script>
98 -  
99 </body> 89 </body>
100 </html> 90 </html>
@@ -16,6 +16,8 @@ class SearchController extends AbstractAction @@ -16,6 +16,8 @@ class SearchController extends AbstractAction
16 */ 16 */
17 public function indexAction() 17 public function indexAction()
18 { 18 {
  19 + $this->setNavHeader('搜索', true, SITE_MAIN);
  20 +
19 $this->_view->html('search'); 21 $this->_view->html('search');
20 $this->_view->display('index', array( 22 $this->_view->display('index', array(
21 'search' => array('url' => Helpers::url('', null, 'search')), 23 'search' => array('url' => Helpers::url('', null, 'search')),