修复右上角顶部导航链接地址错误的bug
Code Review By Rock Zhang
Showing
2 changed files
with
10 additions
and
5 deletions
@@ -454,7 +454,12 @@ class AbstractAction extends Controller_Abstract | @@ -454,7 +454,12 @@ class AbstractAction extends Controller_Abstract | ||
454 | $header['navHome'] = $homeUrl . '?go=1&t=' . time(); | 454 | $header['navHome'] = $homeUrl . '?go=1&t=' . time(); |
455 | }*/ | 455 | }*/ |
456 | if ($navBtn) { | 456 | if ($navBtn) { |
457 | - $header['navBtn'] = $navBtn; | 457 | + $header['navBtn'] = array( |
458 | + 'indexUrl' => Helpers::url('/?go=1'), //首页 | ||
459 | + 'categoryUrl' => Helpers::url('/cate'), // 分类 | ||
460 | + 'shoppingCartUrl' => Helpers::url('/cart/index/index'), // 购物车 | ||
461 | + 'mineUrl' => Helpers::url('/home'), // 我的 | ||
462 | + ); | ||
458 | } | 463 | } |
459 | 464 | ||
460 | // 默认使用男生的头部 | 465 | // 默认使用男生的头部 |
@@ -23,25 +23,25 @@ | @@ -23,25 +23,25 @@ | ||
23 | <div class="homebuttom none"> | 23 | <div class="homebuttom none"> |
24 | <ul> | 24 | <ul> |
25 | <li> | 25 | <li> |
26 | - <a href="/"> | 26 | + <a href="{{ indexUrl }}"> |
27 | <i class="iconfont"></i> | 27 | <i class="iconfont"></i> |
28 | <span>首页</span> | 28 | <span>首页</span> |
29 | </a> | 29 | </a> |
30 | </li> | 30 | </li> |
31 | <li> | 31 | <li> |
32 | - <a href="cate"> | 32 | + <a href="{{ categoryUrl }}"> |
33 | <i class="iconfont"></i> | 33 | <i class="iconfont"></i> |
34 | <span>分类</span> | 34 | <span>分类</span> |
35 | </a> | 35 | </a> |
36 | </li> | 36 | </li> |
37 | <li> | 37 | <li> |
38 | - <a href="cart/index/index"> | 38 | + <a href="{{ shoppingCartUrl }}"> |
39 | <i class="iconfont"></i> | 39 | <i class="iconfont"></i> |
40 | <span>购物车</span> | 40 | <span>购物车</span> |
41 | </a> | 41 | </a> |
42 | </li> | 42 | </li> |
43 | <li> | 43 | <li> |
44 | - <a href="/home"> | 44 | + <a href="{{ mineUrl }}"> |
45 | <i class="iconfont"></i> | 45 | <i class="iconfont"></i> |
46 | <span>我的</span> | 46 | <span>我的</span> |
47 | </a> | 47 | </a> |
-
Please register or login to post a comment