Authored by Rock Zhang

修复右上角顶部导航链接地址错误的bug

Code Review By Rock Zhang
... ... @@ -454,7 +454,12 @@ class AbstractAction extends Controller_Abstract
$header['navHome'] = $homeUrl . '?go=1&t=' . time();
}*/
if ($navBtn) {
$header['navBtn'] = $navBtn;
$header['navBtn'] = array(
'indexUrl' => Helpers::url('/?go=1'), //首页
'categoryUrl' => Helpers::url('/cate'), // 分类
'shoppingCartUrl' => Helpers::url('/cart/index/index'), // 购物车
'mineUrl' => Helpers::url('/home'), // 我的
);
}
// 默认使用男生的头部
... ...
... ... @@ -23,25 +23,25 @@
<div class="homebuttom none">
<ul>
<li>
<a href="/">
<a href="{{ indexUrl }}">
<i class="iconfont">&#xe62a;</i>
<span>首页</span>
</a>
</li>
<li>
<a href="cate">
<a href="{{ categoryUrl }}">
<i class="iconfont">&#xe62d;</i>
<span>分类</span>
</a>
</li>
<li>
<a href="cart/index/index">
<a href="{{ shoppingCartUrl }}">
<i class="iconfont">&#xe62c;</i>
<span>购物车</span>
</a>
</li>
<li>
<a href="/home">
<a href="{{ mineUrl }}">
<i class="iconfont">&#xe62b;</i>
<span>我的</span>
</a>
... ...