浏览代码

样式调整

zhangdehua 1 年之前
父节点
当前提交
1398113802
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      app/index/controller/Index.php

+ 4 - 2
app/index/controller/Index.php

@@ -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,