Authored by hf

fixes bug refs YW-917

... ... @@ -61,7 +61,7 @@ cHammer.on('tap', function() {
continue;
}
html += '<li><a href="http://search.m.yohobuy.com/?query=' + history + '">' + history + '</li>';
html += '<li><a href="/?query=' + history + '">' + history + '</li>';
}
$history.html(html);
... ...
... ... @@ -14,8 +14,10 @@ class IndexController extends AbstractAction
*/
public function indexAction()
{
if (null !== $this->get('go')) {
// 先检查COOKIE是否有访问过, 有则跳转到相应的频道页
// Index\HomeModel::goSwitchChannel();
Index\HomeModel::goSwitchChannel();
}
// 渲染模板
$this->_view->display('index', array(
... ...
... ... @@ -29,14 +29,13 @@ class IndexController extends AbstractAction
if (is_string($gender)) {
$gender = rawurldecode($gender);
}
// // 设置侧边栏逛的默认选中状态
// if ($gender === '1,3') {
// $this->setNavSide('boys');
// } elseif ($gender === '2,3') {
// $this->setNavSide('girls');
// } else {
// $this->setNavSide('all');
// $this->setNavSide();
// }
$this->_view->display('index', Guang\IndexModel::getArticle($gender, $type, $uid, $udid));
... ...
... ... @@ -123,7 +123,10 @@ class PlusstarController extends AbstractAction
$data['ps']['infos'][] = Helpers::formatArticle($value, false, false, false);
}
$this->setNavHeader($brandInfo['getBrandInfo']['data']['brand_name'], true, SITE_MAIN);
$brandInfo = array();
} while (false);
if (array() === $data) {
... ... @@ -131,6 +134,7 @@ class PlusstarController extends AbstractAction
} else {
$this->_view->display('detail', $data);
}
}
}
... ...