|
@@ -37,7 +37,7 @@ class Index extends Controller
|
|
|
$newArrival = $model->getList(['listType' => 'on_sale'], 4)->toArray()['data'];
|
|
|
$bestseller = $model->getList(['sortType' => 'sales'], 4)->toArray()['data'];
|
|
|
|
|
|
- $superDeals = $model->getList(['categoryId' => '10002',], 6)->toArray()['data'];
|
|
|
+ $superDeals = $model->getList(['categoryId' => '10002',], 8)->toArray()['data'];
|
|
|
//dd($superDeals);
|
|
|
//return $this->renderSuccess(compact('bestseller'));
|
|
|
|
|
@@ -107,9 +107,11 @@ class Index extends Controller
|
|
|
isset($superDeals[0]) && $superDeals1[] = $superDeals[0];
|
|
|
isset($superDeals[1]) && $superDeals1[] = $superDeals[1];
|
|
|
isset($superDeals[2]) && $superDeals1[] = $superDeals[2];
|
|
|
- isset($superDeals[3]) && $superDeals2[] = $superDeals[3];
|
|
|
+ isset($superDeals[3]) && $superDeals1[] = $superDeals[3];
|
|
|
isset($superDeals[4]) && $superDeals2[] = $superDeals[4];
|
|
|
isset($superDeals[5]) && $superDeals2[] = $superDeals[5];
|
|
|
+ isset($superDeals[5]) && $superDeals2[] = $superDeals[6];
|
|
|
+ isset($superDeals[5]) && $superDeals2[] = $superDeals[7];
|
|
|
return view('/index/index', [
|
|
|
'newGoods' => $newArrival,
|
|
|
'bestseller' => $bestseller,
|