Authored by whb

最新上架调整

@@ -74,7 +74,7 @@ class HomeModel @@ -74,7 +74,7 @@ class HomeModel
74 'index_main' => 0, 74 'index_main' => 0,
75 'is_hot' => $val['is_hot'] == 'Y' ? true : false, 75 'is_hot' => $val['is_hot'] == 'Y' ? true : false,
76 'is_new' => $val['is_new'] == 'Y' ? true : false, 76 'is_new' => $val['is_new'] == 'Y' ? true : false,
77 - 'subnav' => array() 77 + // 'subnav' => array()
78 ); 78 );
79 foreach ($val['sub'] as $sub) { // 二级 79 foreach ($val['sub'] as $sub) { // 二级
80 $index_sub = 0; 80 $index_sub = 0;
@@ -84,7 +84,7 @@ class HomeModel @@ -84,7 +84,7 @@ class HomeModel
84 'link' => $sub['sort_url'], 84 'link' => $sub['sort_url'],
85 'is_hot' => $sub['is_hot'] == 'Y' ? true : false, 85 'is_hot' => $sub['is_hot'] == 'Y' ? true : false,
86 'is_new' => $sub['is_new'] == 'Y' ? true : false, 86 'is_new' => $sub['is_new'] == 'Y' ? true : false,
87 - 'thirdnav' => array(), 87 + // 'thirdnav' => array(),
88 'index_sub' => $index_sub ++ 88 'index_sub' => $index_sub ++
89 ); 89 );
90 if (isset($sub['sub'])) { 90 if (isset($sub['sub'])) {
@@ -93,7 +93,7 @@ class HomeModel @@ -93,7 +93,7 @@ class HomeModel
93 'title' => $thirdsub['sort_name'], 93 'title' => $thirdsub['sort_name'],
94 'name_en' => $thirdsub['sort_name_en'], 94 'name_en' => $thirdsub['sort_name_en'],
95 'link' => $thirdsub['sort_url'], 95 'link' => $thirdsub['sort_url'],
96 - 'branditems' => array() 96 + // 'branditems' => array()
97 ); 97 );
98 if (isset($thirdsub['sub'])) { 98 if (isset($thirdsub['sub'])) {
99 foreach ($thirdsub['sub'] as $fourthnav) { // 四级 99 foreach ($thirdsub['sub'] as $fourthnav) { // 四级
@@ -107,6 +107,7 @@ class HomeModel @@ -107,6 +107,7 @@ class HomeModel
107 $subnav['thirdnav'][] = $thirdnav; 107 $subnav['thirdnav'][] = $thirdnav;
108 } 108 }
109 } 109 }
  110 +
110 $item['subnav'][] = $subnav; 111 $item['subnav'][] = $subnav;
111 } 112 }
112 $menu[] = $item; 113 $menu[] = $item;