Authored by xuqi

Merge branch 'hotfix/analysis' of http://git.dev.yoho.cn/web/yohobuy into hotfix/analysis

... ... @@ -232,9 +232,18 @@ class IndexController extends WebAction
$this->go(Helpers::url('/shopping/cart'));
}
$productListArr = array();
foreach ($orderEnsure['orderProducts'] as $orderProducts) {
$productListArr[] = $orderProducts['id'] . ',' . $orderProducts['productNum'];
}
$this->_view->display('order-ensure', array(
'orderEnsurePage' => true,
'orderEnsure' => $orderEnsure,
'pinyou' => array(
'money' => $orderEnsure['lastOrderAmount'],
'productList' => implode(';', $productListArr)
)
));
}
... ...
... ... @@ -11,13 +11,25 @@ class SearchController extends WebAction
$this->setWebNavHeader();
$data = array(
'productListPage' => true, //初始化js
'list' => SearchModel::searchData(array(), array(
$list = SearchModel::searchData(array(), array(
'controller' => 'Search',
'action' => 'index',
'reviewNum' => 7, //浏览记录数
))
));
//统计前三个商品
$skn=array();
if (isset($list['goods']) && !empty($list['goods'])) {
$arr = array_slice($list['goods'],0,3);
foreach ($arr as $key=>$value) {
$skn[] = $value['skn'];
}
}
$data = array(
'productListPage' => true, //初始化js
'list' => $list,
'skn' => $skn
);
$data['list']['searchPage'] = true; //设置搜素页面标识,区分列表页-->特有的搜索页导航样式
if (isset($data['list']['goods']) && empty($data['list']['goods'])) {
... ...