|
|
@@ -128,6 +128,7 @@ class ProductService extends BaseService
|
|
|
{
|
|
|
//今日特价
|
|
|
$tjItem = [];
|
|
|
+ $itemGroup = [];
|
|
|
$preSellItem = [];
|
|
|
if ($itemInfoData) {
|
|
|
foreach ($itemInfoData as $v) {
|
|
|
@@ -137,11 +138,13 @@ class ProductService extends BaseService
|
|
|
$v['classId'] = self::TJ_CLASS_ID;
|
|
|
$v['className'] = '今日特价';
|
|
|
$tjItem[] = $v;
|
|
|
+ $itemGroup[] = $v;
|
|
|
}
|
|
|
if (isset($v['presell']) && $v['presell'] == 1) {
|
|
|
$v['classId'] = self::PRESELL_CLASS_ID;
|
|
|
$v['className'] = '预售专区';
|
|
|
$preSellItem[] = $v;
|
|
|
+ $itemGroup[] = $v;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -176,6 +179,7 @@ class ProductService extends BaseService
|
|
|
$v['className'] = $className;
|
|
|
$v['print'] = $print;
|
|
|
$tmp['child'][] = $v;
|
|
|
+ $itemGroup[] = $v;
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
@@ -207,7 +211,7 @@ class ProductService extends BaseService
|
|
|
]];
|
|
|
$classData = array_merge($preSellClass, $classData);
|
|
|
}
|
|
|
- return $classData;
|
|
|
+ return ['classItem' => $classData, 'itemList' => $itemGroup];
|
|
|
}
|
|
|
|
|
|
|