Authored by 郝肖肖

channel 参数会影响接口,用coverChannel 参数代替 封面频道参数

@@ -6,7 +6,6 @@ @@ -6,7 +6,6 @@
6 <div id="nav-top"> 6 <div id="nav-top">
7 {{> layout/page_header}} 7 {{> layout/page_header}}
8 <!-- tar modifield 160826 --> 8 <!-- tar modifield 160826 -->
9 - <input type="hidden" name="channel" value="{{channel}}">  
10 <input type="hidden" name="app_version" value="{{appVersion}}"> 9 <input type="hidden" name="app_version" value="{{appVersion}}">
11 <input type="hidden" name="shop_id" value="{{shopId}}"> 10 <input type="hidden" name="shop_id" value="{{shopId}}">
12 <input type="hidden" name="brand" value="{{brand}}"> 11 <input type="hidden" name="brand" value="{{brand}}">
@@ -19,7 +18,6 @@ @@ -19,7 +18,6 @@
19 <form id="search-form" action={{url}} method="get"> 18 <form id="search-form" action={{url}} method="get">
20 <i class="search-icon iconfont">&#xe60f;</i> 19 <i class="search-icon iconfont">&#xe60f;</i>
21 <input type="text" placeholder="搜索店铺内潮品" name="query" class="buriedpoint"> 20 <input type="text" placeholder="搜索店铺内潮品" name="query" class="buriedpoint">
22 - <input type="hidden" name="channel" value="{{channel}}">  
23 <input type="hidden" name="shop_id" value="{{shopId}}"> 21 <input type="hidden" name="shop_id" value="{{shopId}}">
24 <input type="hidden" name="coverChannel" value="{{coverChannel}}"> 22 <input type="hidden" name="coverChannel" value="{{coverChannel}}">
25 <i class="clear-input iconfont hide">&#xe626;</i> 23 <i class="clear-input iconfont hide">&#xe626;</i>
@@ -487,15 +487,12 @@ class IndexController extends AbstractAction @@ -487,15 +487,12 @@ class IndexController extends AbstractAction
487 487
488 /* tar add 160826 */ 488 /* tar add 160826 */
489 $data['gender'] = $this->get('gender'); 489 $data['gender'] = $this->get('gender');
490 - $data['channel'] = $this->get('yh_channel') ? $this->get('yh_channel') : Helpers::getChannelByCookie();  
491 -  
492 //接受APP传来的封面频道参数 490 //接受APP传来的封面频道参数
493 $coverChannel = Helpers::getYhHhannel($this->get('yh_channel', '')); 491 $coverChannel = Helpers::getYhHhannel($this->get('yh_channel', ''));
494 492
495 $filter = Product\SearchModel::filter(array( 493 $filter = Product\SearchModel::filter(array(
496 'shop_id' => $shopId, 494 'shop_id' => $shopId,
497 'gender' => empty($data['gender']) ? '' : $data['gender'], 495 'gender' => empty($data['gender']) ? '' : $data['gender'],
498 - 'channel' => empty($data['channel']) ? '' : $data['channel'],  
499 'brand' => empty($data['brand']) ? '' : $data['brand'] 496 'brand' => empty($data['brand']) ? '' : $data['brand']
500 )); 497 ));
501 $data['filter'] = isset($filter['filter']) ? $filter['filter'] : array(); 498 $data['filter'] = isset($filter['filter']) ? $filter['filter'] : array();
@@ -504,7 +501,6 @@ class IndexController extends AbstractAction @@ -504,7 +501,6 @@ class IndexController extends AbstractAction
504 $goods = \Product\SearchModel::search(array( 501 $goods = \Product\SearchModel::search(array(
505 'shop' => $shopId, 502 'shop' => $shopId,
506 'gender' => empty($data['gender']) ? '' : $data['gender'], 503 'gender' => empty($data['gender']) ? '' : $data['gender'],
507 - 'channel' => empty($data['channel']) ? '' : $data['channel'],  
508 'brand' => empty($data['brand']) ? '' : $data['brand'], 504 'brand' => empty($data['brand']) ? '' : $data['brand'],
509 'coverChannel' => $coverChannel 505 'coverChannel' => $coverChannel
510 )); 506 ));
@@ -517,7 +513,6 @@ class IndexController extends AbstractAction @@ -517,7 +513,6 @@ class IndexController extends AbstractAction
517 'url' => Helpers::url('/product/index/category', array('shop_id' => $shopId)) 513 'url' => Helpers::url('/product/index/category', array('shop_id' => $shopId))
518 ), 514 ),
519 'gender' => $data['gender'], 515 'gender' => $data['gender'],
520 - 'channel' => $data['channel'],  
521 'coverChannel' => $coverChannel, 516 'coverChannel' => $coverChannel,
522 'appVersion' => !empty($appVersion) 517 'appVersion' => !empty($appVersion)
523 )); 518 ));