添加品牌一览页面顶部导航的数据
Code Review By Rock Zhang
Showing
1 changed file
with
19 additions
and
0 deletions
@@ -38,6 +38,24 @@ class BrandModel | @@ -38,6 +38,24 @@ class BrandModel | ||
38 | $result = array(); | 38 | $result = array(); |
39 | $brand = array(); | 39 | $brand = array(); |
40 | 40 | ||
41 | + // 设置品牌一览顶部频道导航 | ||
42 | + $channels = array( | ||
43 | + 1 => array( | ||
44 | + 'name' => 'Boy' | ||
45 | + ), | ||
46 | + 2 => array( | ||
47 | + 'name' => 'Girl' | ||
48 | + ), | ||
49 | + 3 => array( | ||
50 | + 'name' => 'Kid' | ||
51 | + ), | ||
52 | + 4 => array( | ||
53 | + 'name' => 'Lifestyle' | ||
54 | + ) | ||
55 | + ); | ||
56 | + $channels[$channel]['active'] = true; | ||
57 | + $result['channels'] = $channels; | ||
58 | + | ||
41 | /* 根据频道调用接口 */ | 59 | /* 根据频道调用接口 */ |
42 | switch (intval($channel)) { | 60 | switch (intval($channel)) { |
43 | case 1: // 男生 | 61 | case 1: // 男生 |
@@ -83,6 +101,7 @@ class BrandModel | @@ -83,6 +101,7 @@ class BrandModel | ||
83 | } | 101 | } |
84 | 102 | ||
85 | $result['pageFooter'] = true; | 103 | $result['pageFooter'] = true; |
104 | + print_r($result); | ||
86 | 105 | ||
87 | $brand = array(); | 106 | $brand = array(); |
88 | 107 |
-
Please register or login to post a comment