...
|
...
|
@@ -8,7 +8,7 @@ use Plugin\Helpers; |
|
|
|
|
|
/**
|
|
|
* 品牌相关的模板数据模型
|
|
|
*
|
|
|
*
|
|
|
* @name BrandModel
|
|
|
* @package Models/Category
|
|
|
* @copyright yoho.inc
|
...
|
...
|
@@ -29,7 +29,7 @@ class BrandModel |
|
|
|
|
|
/**
|
|
|
* 根据频道获取品牌一览数据
|
|
|
*
|
|
|
*
|
|
|
* @param int $channel 1表示男生频道, 2表示女生频道, 3表示潮童频道, 4表示创意生活频道
|
|
|
* @return array
|
|
|
*/
|
...
|
...
|
@@ -40,20 +40,20 @@ class BrandModel |
|
|
|
|
|
// 设置品牌一览顶部频道导航
|
|
|
$channels = array(
|
|
|
1 => array(
|
|
|
'name' => 'Boy'
|
|
|
array(
|
|
|
'name' => 'Boy'
|
|
|
),
|
|
|
2 => array(
|
|
|
'name' => 'Girl'
|
|
|
array(
|
|
|
'name' => 'Girl'
|
|
|
),
|
|
|
3 => array(
|
|
|
'name' => 'Kid'
|
|
|
array(
|
|
|
'name' => 'Kid'
|
|
|
),
|
|
|
4 => array(
|
|
|
'name' => 'Lifestyle'
|
|
|
array(
|
|
|
'name' => 'Lifestyle'
|
|
|
)
|
|
|
);
|
|
|
$channels[$channel]['active'] = true;
|
|
|
$channels[$channel-1]['active'] = true;
|
|
|
$result['channels'] = $channels;
|
|
|
|
|
|
/* 根据频道调用接口 */
|
...
|
...
|
@@ -109,7 +109,7 @@ class BrandModel |
|
|
|
|
|
/**
|
|
|
* 获取搜索的品牌列表
|
|
|
*
|
|
|
*
|
|
|
* @param int $channel 1表示男生频道, 2表示女生频道, 3表示潮童频道, 4表示创意生活频道
|
|
|
* @return array
|
|
|
*/
|
...
|
...
|
|