Skip to content

Commit

Permalink
调整pc首页商品优惠券的显示数量
Browse files Browse the repository at this point in the history
  • Loading branch information
longbeidou committed Aug 13, 2018
1 parent e8918e4 commit e6d8b00
Show file tree
Hide file tree
Showing 3 changed files with 352 additions and 273 deletions.
7 changes: 4 additions & 3 deletions app/Http/Controllers/Index/PC/IndexController.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@

class IndexController extends Controller
{
const PAGE_SIZE = 100;
const PAGE_SIZE = 40;
const PAGE_SIZE_INDEX = 30;

public $repository;
public $couponAdzoneId; // 优惠券api获取的数据
Expand All @@ -25,8 +26,8 @@ public function index()
{
$title = config('website.indexTitle');
$adzoneId = $this->couponAdzoneId;
$pageSize = self::PAGE_SIZE;
$couponItems = $this->repository->recommendCoupons(['adzone_id' => $this->couponAdzoneId, 'page_size'=>self::PAGE_SIZE]);
$pageSize = self::PAGE_SIZE_INDEX;
$couponItems = $this->repository->recommendCoupons(['adzone_id' => $this->couponAdzoneId, 'page_size'=>self::PAGE_SIZE_INDEX]);
$topGoodsCategory = $this->repository->topGoodsCategory(['order' => 'desc', 'level' => 1]);
$subCategory = $this->repository->subCategory($topGoodsCategory);
$sonCategory = $this->repository->sonCategory($subCategory);
Expand Down
Loading

0 comments on commit e6d8b00

Please sign in to comment.