...
|
...
|
@@ -39,6 +39,8 @@ class Index extends Base |
|
|
"banner_list": [{ //轮播图
|
|
|
"id": 3, //轮播图ID
|
|
|
"image": "http://www.ant.top/uploads/20201214/b655ea4dc4779222ab7a4e2b95feb3a4.png" //图片地址
|
|
|
"type" : '1', //跳转类型:1=无跳转,2=商品,3=开通会员
|
|
|
"goods_id" : 1, //商品ID
|
|
|
}],
|
|
|
"category_list": [{ //一级分类
|
|
|
"id": 1, //分类ID
|
...
|
...
|
@@ -216,7 +218,7 @@ class Index extends Base |
|
|
*/
|
|
|
public function index()
|
|
|
{
|
|
|
$banner_list = Banner::field('id,image')->select();
|
|
|
$banner_list = Banner::field('id,image,type,goods_id')->select();
|
|
|
$category_list = Category::where('pid',1)->field('id,name,image')->limit(9)->select();
|
|
|
$seckill_list = \addons\shopro\model\Goods::indexActivityGoodsList('seckill');
|
|
|
$groupon_list = \addons\shopro\model\Goods::indexActivityGoodsList('groupon');
|
...
|
...
|
|