Authored by xuqi

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

@@ -66,7 +66,7 @@ class ClassModel @@ -66,7 +66,7 @@ class ClassModel
66 $subitem = array(); 66 $subitem = array();
67 $subitem['name'] = $value['category_name']; 67 $subitem['name'] = $value['category_name'];
68 $subitem['id'] = $value['relation_parameter']['sort']; 68 $subitem['id'] = $value['relation_parameter']['sort'];
69 - $subitem['url'] = $value['category_id']; 69 + $subitem['url'] = '/product/list/class?sort='.$value['relation_parameter']['sort'];
70 70
71 $item['sub'][] = $subitem; 71 $item['sub'][] = $subitem;
72 } 72 }
@@ -12,11 +12,18 @@ class ClassController extends AbstractAction @@ -12,11 +12,18 @@ class ClassController extends AbstractAction
12 $classes = ClassModel::getClassData(); 12 $classes = ClassModel::getClassData();
13 13
14 $data = array( 14 $data = array(
15 - "searchUrl" => "", 15 + 'categoryPage' => true,
  16 + 'pageHeader' => array (
  17 + 'navBack' => true,
  18 + 'navHome' => '/',
  19 + 'navTitle' => '商品分类'
  20 + ),
  21 + 'category' => array(
16 "class" => $classes 22 "class" => $classes
  23 + )
17 ); 24 );
18 25
19 $this->_view->assign('title', 'YOHO!有货'); 26 $this->_view->assign('title', 'YOHO!有货');
20 - $this->_view->display('index', array('categoryPage' => true, 'category' => $data)); 27 + $this->_view->display('index', $data);
21 } 28 }
22 } 29 }
@@ -203,6 +203,7 @@ class ListController extends AbstractAction @@ -203,6 +203,7 @@ class ListController extends AbstractAction
203 break; 203 break;
204 } 204 }
205 if (!empty($page) && !is_numeric($page)) { 205 if (!empty($page) && !is_numeric($page)) {
  206 +
206 break; 207 break;
207 } 208 }
208 if (!empty($authorId) && is_numeric($authorId)) { 209 if (!empty($authorId) && is_numeric($authorId)) {
@@ -212,6 +213,7 @@ class ListController extends AbstractAction @@ -212,6 +213,7 @@ class ListController extends AbstractAction
212 /* 获取资讯文章列表 */ 213 /* 获取资讯文章列表 */
213 $uid = $this->getUid(); 214 $uid = $this->getUid();
214 $udid = $this->getUdid(); 215 $udid = $this->getUdid();
  216 + $page = intval($page) + 1;
215 $article = ListData::article($gender, $sortId, $uid, $udid, $page, $tag, $authorId); 217 $article = ListData::article($gender, $sortId, $uid, $udid, $page, $tag, $authorId);
216 if (empty($article['data']['list']['artList'])) { 218 if (empty($article['data']['list']['artList'])) {
217 break; 219 break;