Authored by 郝肖肖

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

... ... @@ -6,7 +6,6 @@
<div id="nav-top">
{{> layout/page_header}}
<!-- tar modifield 160826 -->
<input type="hidden" name="channel" value="{{channel}}">
<input type="hidden" name="app_version" value="{{appVersion}}">
<input type="hidden" name="shop_id" value="{{shopId}}">
<input type="hidden" name="brand" value="{{brand}}">
... ... @@ -19,7 +18,6 @@
<form id="search-form" action={{url}} method="get">
<i class="search-icon iconfont">&#xe60f;</i>
<input type="text" placeholder="搜索店铺内潮品" name="query" class="buriedpoint">
<input type="hidden" name="channel" value="{{channel}}">
<input type="hidden" name="shop_id" value="{{shopId}}">
<input type="hidden" name="coverChannel" value="{{coverChannel}}">
<i class="clear-input iconfont hide">&#xe626;</i>
... ...
... ... @@ -487,15 +487,12 @@ class IndexController extends AbstractAction
/* tar add 160826 */
$data['gender'] = $this->get('gender');
$data['channel'] = $this->get('yh_channel') ? $this->get('yh_channel') : Helpers::getChannelByCookie();
//接受APP传来的封面频道参数
$coverChannel = Helpers::getYhHhannel($this->get('yh_channel', ''));
$filter = Product\SearchModel::filter(array(
'shop_id' => $shopId,
'gender' => empty($data['gender']) ? '' : $data['gender'],
'channel' => empty($data['channel']) ? '' : $data['channel'],
'brand' => empty($data['brand']) ? '' : $data['brand']
));
$data['filter'] = isset($filter['filter']) ? $filter['filter'] : array();
... ... @@ -504,7 +501,6 @@ class IndexController extends AbstractAction
$goods = \Product\SearchModel::search(array(
'shop' => $shopId,
'gender' => empty($data['gender']) ? '' : $data['gender'],
'channel' => empty($data['channel']) ? '' : $data['channel'],
'brand' => empty($data['brand']) ? '' : $data['brand'],
'coverChannel' => $coverChannel
));
... ... @@ -517,7 +513,6 @@ class IndexController extends AbstractAction
'url' => Helpers::url('/product/index/category', array('shop_id' => $shopId))
),
'gender' => $data['gender'],
'channel' => $data['channel'],
'coverChannel' => $coverChannel,
'appVersion' => !empty($appVersion)
));
... ...