...
|
...
|
@@ -50,8 +50,11 @@ class IndexController extends AbstractAction |
|
|
if ($resource['category']['code'] === 200) {
|
|
|
$class = array();
|
|
|
$category = array();
|
|
|
foreach ($resource['category']['data'] as $item) {
|
|
|
foreach ($resource['category']['data'] as &$item) {
|
|
|
array_push($class, array('name' => $item['category_name']));
|
|
|
foreach ($item['sub'] as &$item2) {
|
|
|
$item2['url'] = Helpers::url(''); // tar mark 还不知道链接是啥样的
|
|
|
}
|
|
|
array_push($category, array('subcategory' => $item['sub']));
|
|
|
}
|
|
|
$result['class'] = $class;
|
...
|
...
|
@@ -66,7 +69,7 @@ class IndexController extends AbstractAction |
|
|
$item['brand_ico'] = \Plugin\Images::getImageUrl($item['brand_ico'], 0, 0);
|
|
|
}
|
|
|
// $result = $this->getCategoryContent();
|
|
|
ShopData::debugOut($result);
|
|
|
ShopData::debugOut($result,false);
|
|
|
return $this->_view->display('category', array(
|
|
|
'productCategoryPage' => true,
|
|
|
'content' => $result,
|
...
|
...
|
|