**简要描述:** - 获取首页数据接口 **请求URL:** - ` api/index/lists ` **请求方式:** - get **参数:** |参数名|是否必选|类型|说明| |:---- |:---|:----- |----- | **返回示例** ``` { "code": 1, "msg": "", "data": { "news": [ { "id": 2, "title": "测试山东六块腹肌", "is_new": 1 }, { "id": 1, "title": "???" } ], "shop_logo": "http://likeshop.yixiangonline.com/uploads/images/background/20201116/ee6d0c035824f48773f94c3cd69d5e19.png?=v1", "coupon": [ { "id": 2, "money": "30.00", "is_get": 0, "use_condition": "满100元减30" } ], "activity_area": [ { "id": 2, "name": "9.9包邮", "title": "每日鲜肉 每日新鲜", "image": "http://likeshop.yixiangonline.com/uploads/images/background/20201124/58bbc1bcd868a8c60d59cdcf9118e4d3.png" }, { "id": 3, "name": "零食超市", "title": "休闲时光 享受美食", "image": "http://likeshop.yixiangonline.com/uploads/images/background/20201124/35791fee24399177f3c24b8e06fd033b.png" } ], "seckill": { "goods": [] }, "host_goods": [ { "id": 22, "name": "网红雪媚娘咸海鸭蛋麻薯蛋黄酥手工糕点早餐面包小吃货休闲零食品", "image": "http://likeshop.yixiangonline.com/uploads/images/background/20201022/fe48f613638e9187e47af3ce233da333.jpg", "price": "18.00", "market_price": "39.80", "sales_sum": 322 }, { "id": 17, "name": "新鲜现做手撕面包蔓越莓抹茶糕点网红零食点心早餐健康奶香食品", "image": "http://likeshop.yixiangonline.com/uploads/images/background/20201021/d47d16b1bb9c5cfa169bd1b1c5ccdf07.jpg", "price": "29.90", "market_price": "37.38", "sales_sum": 213 }, { "id": 19, "name": "好利来马卡龙甜品情人节礼盒糕点点心小蛋糕零食送女友", "image": "http://likeshop.yixiangonline.com/uploads/images/background/20201020/701941ed21af22e3699953a9367d18ad.jpg", "price": "79.00", "market_price": "168.00", "sales_sum": 168 }, { "id": 23, "name": "5G新品创星mate30PRO骁龙865全网通5g学生价游戏智能手机水滴全面屏千百元曲面送老人老年oppo小米鼠华为耳机", "image": "http://likeshop.yixiangonline.com/uploads/images/background/20201022/b94995f7802403650a89c7bbc8768ef3.jpg", "price": "999.00", "market_price": "2099.00", "sales_sum": 116 }, { "id": 21, "name": "俄罗斯风味提拉米苏正宗甜点千层蜂蜜奶油零食早餐年货蛋糕包邮", "image": "http://likeshop.yixiangonline.com/uploads/images/background/20201021/b5abc1e62029e1f48a4aaa5d9bdc96a5.jpg", "price": "22.80", "market_price": "41.40", "sales_sum": 24 } ], "new_goods": [ { "id": 19, "name": "好利来马卡龙甜品情人节礼盒糕点点心小蛋糕零食送女友", "image": "http://likeshop.yixiangonline.com/uploads/images/background/20201020/701941ed21af22e3699953a9367d18ad.jpg", "price": "79.00", "market_price": "168.00", "sales_sum": 168 }, { "id": 21, "name": "俄罗斯风味提拉米苏正宗甜点千层蜂蜜奶油零食早餐年货蛋糕包邮", "image": "http://likeshop.yixiangonline.com/uploads/images/background/20201021/b5abc1e62029e1f48a4aaa5d9bdc96a5.jpg", "price": "22.80", "market_price": "41.40", "sales_sum": 24 }, { "id": 22, "name": "网红雪媚娘咸海鸭蛋麻薯蛋黄酥手工糕点早餐面包小吃货休闲零食品", "image": "http://likeshop.yixiangonline.com/uploads/images/background/20201022/fe48f613638e9187e47af3ce233da333.jpg", "price": "18.00", "market_price": "39.80", "sales_sum": 322 }, { "id": 23, "name": "5G新品创星mate30PRO骁龙865全网通5g学生价游戏智能手机水滴全面屏千百元曲面送老人老年oppo小米鼠华为耳机", "image": "http://likeshop.yixiangonline.com/uploads/images/background/20201022/b94995f7802403650a89c7bbc8768ef3.jpg", "price": "999.00", "market_price": "2099.00", "sales_sum": 116 } ], "mall_logo": "http://likeshop.yixiangonline.com?=v1" }, "show": 0, "time": "0.843900" } ``` **返回参数说明** |参数名|类型|说明| |:----- |:-----|----- | |news |array |新闻 |---id |int |新闻id |---title |int |商城logo |---is_new |int |是否最新;1-是;0-否 |shop_logo|string|新闻 |coupon |array |优惠券 |---id |int |优惠券id |---money |int |优惠券金额 |---shop_id |int |门店id |---is_get |int |是否已领取;1-是;0-否 |---use_condition |int |使用条件 |activity_area|array |活动专区 |---id |int |活动id |---name|string |活动名称 |---title|string |活动标题 |---image|string |活动海报 |seckill |array |秒杀活动 |---id |int |活动id |---start_time |int |开始时间 |---end_time |int |结束时间(时间戳) |---goods |array |秒杀商品 |-----name |string |商品名称 |-----id |int |商品id |-----image |array |商品图片 |-----min_price |float |商品最小价 |-----seckill_price |float |商品秒杀价 |host_goods |array |热销榜单商品 |---name |string |商品名称 |---id |int |商品id |---shop_id |int |店铺id |---image |array |商品图片 |---price |float |商品最小价 |---market_price |float |商品市场价 |new_goods|array |新品 |---id |int |商品id |---name |int |商品名称 |---image |array |商品图片 |---sales_sum |int |商品销量 |---price|float|商品价格 |---market_price|float|商品市场价 **备注** - 这里是备注信息