Showing
2 changed files
with
5 additions
and
3 deletions
@@ -466,8 +466,10 @@ class HomeController extends AbstractAction | @@ -466,8 +466,10 @@ class HomeController extends AbstractAction | ||
466 | */ | 466 | */ |
467 | public function onlineServiceDetailAction() | 467 | public function onlineServiceDetailAction() |
468 | { | 468 | { |
469 | - $cateId = $this->get('cateId', 0); | ||
470 | - $cateName = $this->get('cateName', ''); | 469 | + $cateInfo = $this->get('cateInfo', ''); |
470 | + $cate = explode("_", $cateInfo); | ||
471 | + $cateId = intval($cate[0]); | ||
472 | + $cateName = $cate[1]; | ||
471 | if ($cateId > 0) { | 473 | if ($cateId > 0) { |
472 | $service = Home\OnlineModel::getOnlineServiceDetail($cateId); | 474 | $service = Home\OnlineModel::getOnlineServiceDetail($cateId); |
473 | } | 475 | } |
@@ -39,7 +39,7 @@ class OnlineModel | @@ -39,7 +39,7 @@ class OnlineModel | ||
39 | if ($sub) { | 39 | if ($sub) { |
40 | foreach ($sub as $sk => $sv) { | 40 | foreach ($sub as $sk => $sv) { |
41 | $qTmp[$sk]['title'] = $sv['category_name']; | 41 | $qTmp[$sk]['title'] = $sv['category_name']; |
42 | - $qTmp[$sk]['link'] = Helpers::url('/home/onlineservicedetail', array('cateId' => $sv['id'], 'cateName' => $sv['category_name'])); | 42 | + $qTmp[$sk]['link'] = Helpers::url('/home/onlineservicedetail', array('cateInfo' => $sv['id'].'_'.$sv['category_name'])); |
43 | } | 43 | } |
44 | } | 44 | } |
45 | $question[$key]['list'] = $qTmp; | 45 | $question[$key]['list'] = $qTmp; |
-
Please register or login to post a comment