💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
**简要描述:** - 首页 **请求URL:** - ` /api/index/index ` **请求方式:** - GET **参数:** |参数名|必选|类型|说明| |:---- |:---|:----- |----- | **返回示例** ``` { "code": 1, "show": 0, "msg": "获取成功", "data": { "headlines": [ { "id": 2, "title": "最新头条2" }, { "id": 1, "title": "最新头条1" } ], "hots": [ { "id": 22, "name": "商品1-0", "image": "http://www.likeshopb2b2c.localhost/uploads/images/202104281813584bb6b7582.jpg", "min_price": "3.00", "market_price": "3.00", "sales_actual": 80, "create_time": "2021-05-06 09:26:41" }, { "id": 28, "name": "店铺2商品", "image": "http://www.likeshopb2b2c.localhost/uploads/images/2021043016253581d311309.jpg", "min_price": "3.00", "market_price": "3.00", "sales_actual": 77, "create_time": "2021-05-06 10:30:37" }, { "id": 32, "name": "测试商品999", "image": "http://www.likeshopb2b2c.localhost/uploads/images/202104281813584bb6b7582.jpg", "min_price": "10.00", "market_price": "50.00", "sales_actual": 50, "create_time": "2021-05-10 14:54:56" } ], "news": [ { "id": 32, "name": "测试商品999", "image": "http://www.likeshopb2b2c.localhost/uploads/images/202104281813584bb6b7582.jpg", "min_price": "10.00", "market_price": "50.00", "sales_actual": 50, "create_time": "2021-05-10 14:54:56" }, { "id": 28, "name": "店铺2商品", "image": "http://www.likeshopb2b2c.localhost/uploads/images/2021043016253581d311309.jpg", "min_price": "3.00", "market_price": "3.00", "sales_actual": 77, "create_time": "2021-05-06 10:30:37" }, { "id": 22, "name": "商品1-0", "image": "http://www.likeshopb2b2c.localhost/uploads/images/202104281813584bb6b7582.jpg", "min_price": "3.00", "market_price": "3.00", "sales_actual": 80, "create_time": "2021-05-06 09:26:41" } ], "shopLists": [ { "id": 3, "name": "三号店", "logo": "", "background": "", "on_sales_count": 0 }, { "id": 2, "name": "二号店", "logo": "", "background": "", "on_sales_count": 1 }, { "id": 1, "name": "一号店", "logo": "", "background": "", "on_sales_count": 2 } ], "shopRecommend": [ { "id": 3, "name": "三号店", "logo": "", "background": "", "visited_num": 0, "goods_list": [] }, { "id": 2, "name": "二号店", "logo": "", "background": "", "visited_num": 0, "goods_list": [] }, { "id": 1, "name": "一号店", "logo": "", "background": "", "visited_num": 0, "goods_list": [ { "id": 32, "image": "http://www.likeshopb2b2c.localhost/uploads/images/202104281813584bb6b7582.jpg", "name": "测试商品999", "min_price": "10.00", "market_price": "50.00" }, { "id": 22, "image": "http://www.likeshopb2b2c.localhost/uploads/images/202104281813584bb6b7582.jpg", "name": "商品1-0", "min_price": "3.00", "market_price": "3.00" } ] } ] } } ``` **返回参数说明** |参数名|类型|说明| |:----- |:-----|----- | | headlines | array| 商城头条 | | hots | array| 热销榜单 | | news | array| 新品推荐 | | shopLists | array| 推荐店铺列表 | | shopRecomend | array| 精选推荐店铺 |