...
|
...
|
@@ -43,6 +43,7 @@ class ClassModel |
|
|
break;
|
|
|
}
|
|
|
|
|
|
$genderArr = array('boy' => '1,3', 'girl' => '2,3', 'kids' => '1,2,3', 'lifestyle' => '1,2,3');
|
|
|
$oneClass = array();
|
|
|
$item = array();
|
|
|
foreach ($data['data'] as $k => $v) {
|
...
|
...
|
@@ -59,7 +60,8 @@ class ClassModel |
|
|
'id' => $item['id'],
|
|
|
'url' => Helpers::url('/', array(
|
|
|
'sort' => $item['id'],
|
|
|
'sort_name' => $item['name']), 'list')
|
|
|
'sort_name' => $item['name'],
|
|
|
'gender' => $genderArr[$k]), 'list')
|
|
|
);
|
|
|
|
|
|
$subitem = array();
|
...
|
...
|
@@ -69,7 +71,8 @@ class ClassModel |
|
|
$subitem['id'] = $value['relation_parameter']['sort'];
|
|
|
$subitem['url'] = Helpers::url('/', array(
|
|
|
'sort' => $value['relation_parameter']['sort'],
|
|
|
'sort_name' => $value['category_name']
|
|
|
'sort_name' => $value['category_name'],
|
|
|
'gender' => $genderArr[$k]
|
|
|
), 'list');
|
|
|
$item['sub'][] = $subitem;
|
|
|
}
|
...
|
...
|
|