...
|
...
|
@@ -74,7 +74,7 @@ class HomeModel |
|
|
'index_main' => 0,
|
|
|
'is_hot' => $val['is_hot'] == 'Y' ? true : false,
|
|
|
'is_new' => $val['is_new'] == 'Y' ? true : false,
|
|
|
'subnav' => array()
|
|
|
// 'subnav' => array()
|
|
|
);
|
|
|
foreach ($val['sub'] as $sub) { // 二级
|
|
|
$index_sub = 0;
|
...
|
...
|
@@ -84,7 +84,7 @@ class HomeModel |
|
|
'link' => $sub['sort_url'],
|
|
|
'is_hot' => $sub['is_hot'] == 'Y' ? true : false,
|
|
|
'is_new' => $sub['is_new'] == 'Y' ? true : false,
|
|
|
'thirdnav' => array(),
|
|
|
// 'thirdnav' => array(),
|
|
|
'index_sub' => $index_sub ++
|
|
|
);
|
|
|
if (isset($sub['sub'])) {
|
...
|
...
|
@@ -93,7 +93,7 @@ class HomeModel |
|
|
'title' => $thirdsub['sort_name'],
|
|
|
'name_en' => $thirdsub['sort_name_en'],
|
|
|
'link' => $thirdsub['sort_url'],
|
|
|
'branditems' => array()
|
|
|
// 'branditems' => array()
|
|
|
);
|
|
|
if (isset($thirdsub['sub'])) {
|
|
|
foreach ($thirdsub['sub'] as $fourthnav) { // 四级
|
...
|
...
|
@@ -107,6 +107,7 @@ class HomeModel |
|
|
$subnav['thirdnav'][] = $thirdnav;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
$item['subnav'][] = $subnav;
|
|
|
}
|
|
|
$menu[] = $item;
|
...
|
...
|
@@ -236,12 +237,13 @@ class HomeModel |
|
|
$val['price'] = $val['salePrice'];
|
|
|
}
|
|
|
//TODO 字段要调整
|
|
|
$val['tags']['isFew'] = $val['is_soon_sold_out'];
|
|
|
$val['tags']['isLimit'] = $val['tags']['is_discount'];
|
|
|
$val['tags']['is_discount'] = $val['is_soon_sold_out'];
|
|
|
$val['tags']['isNew'] = false;//$val['tags']['is_new'];
|
|
|
$val['isFew'] = $val['is_soon_sold_out'];
|
|
|
$val['tags']['isLimit'] = $val['tags']['is_limited'];
|
|
|
$val['tags']['isSale'] = false;//$val['tags']['is_discount'];暂时不显示
|
|
|
$val['tags']['isNew'] = false;//$val['tags']['is_new'];暂时不显示
|
|
|
$val['tags']['isYearMidPromotion'] = $val['tags']['midYear'];
|
|
|
$val['tags']['isYearEndPromotion'] = $val['tags']['yearEnd'];
|
|
|
$val['tags']['isReNew'] = false;//$val['tags']['is_advance'];暂时不显示
|
|
|
unset($val['tags']['is_advance'], $val['tags']['is_discount'], $val['tags']['is_limited'], $val['tags']['is_new'],
|
|
|
$val['tags']['is_yohood'], $val['tags']['midYear'], $val['tags']['yearEnd']);
|
|
|
if (! empty($val)) {
|
...
|
...
|
|