**简要描述:** - pc首页接口 **请求URL:** - ` api/pc/index ` **请求方式:** - get **参数:** |参数名|是否必选|类型|说明| |:---- |:---|:----- |----- | **返回示例** ``` { "code": 1, "msg": "", "data": { "host_ad": { "image": "http://www.likeshop.localhost/uploads/images/20210305151006a1fab1333.png", "link": "/category", "link_type": 1, "params": [], "is_tab": 0 }, "host_list": [ { "id": 29, "name": "雾霾蓝纯色套头卫衣 2020秋季新款ins圆领长袖T恤宽松男女外套潮777", "image": "http://www.likeshop.localhost/uploads/images/background/20201209/17ca8666f3122f0ea83801a7c333b58f.png", "price": "59.00", "market_price": "69.00", "sales_sum": 10423 }, { "id": 32, "name": "Rampo/乱步左右拼色圆领针织衫毛衣男女韩版潮流秋冬季打底厚上衣", "image": "http://www.likeshop.localhost/uploads/images/background/20201209/35c67bd3c9d9a6284a4a1ba4f3eddbb1.png", "price": "85.00", "market_price": "299.00", "sales_sum": 5512 }, { "id": 30, "name": "情侣内搭卡通毛衣男宽松慵懒外穿韩版2020秋冬新款中长外套ins潮", "image": "http://www.likeshop.localhost/uploads/images/background/20201209/4cd0a87e0ac87107794a4e0360464f96.png", "price": "89.00", "market_price": "299.00", "sales_sum": 1812 }, { "id": 37, "name": "阿迪达斯官网 adidas 三叶草 男装春秋运动连帽套头衫 GD0956", "image": "http://www.likeshop.localhost/uploads/images/background/20201209/785acf8ceaa5b757106092bbd756acbc.png", "price": "359.00", "market_price": "799.00", "sales_sum": 1421 }, { "id": 31, "name": "秋冬破洞针织帽男女韩版复古时髦冷帽嘻哈街头流氓地主帽毛线帽潮", "image": "http://www.likeshop.localhost/uploads/images/background/20201209/637255ae7e099725bc19231a5a70737a.png", "price": "19.90", "market_price": "59.00", "sales_sum": 1332 }, { "id": 36, "name": "阿迪达斯官网 adidas 三叶草男装春秋运动连帽卫衣EJ9681 EJ9680", "image": "http://www.likeshop.localhost/uploads/images/background/20201209/be30da444bdbec858cf16e42074bb281.png", "price": "179.00", "market_price": "599.00", "sales_sum": 804 }, { "id": 43, "name": "Apple/苹果 21.5 英寸 iMac 2.3GHz 双核处理器,", "image": "http://www.likeshop.localhost/uploads/images/background/20201209/4e0ca0024c2f418c5bd572176f4718bf.png", "price": "11099.00", "market_price": "11999.00", "sales_sum": 540 }, { "id": 17, "name": "新鲜现做手撕面包蔓越莓抹茶糕点网红零食点心早餐健康奶香食品", "image": "http://www.likeshop.localhost/uploads/images/background/20201021/d47d16b1bb9c5cfa169bd1b1c5ccdf07.jpg", "price": "29.90", "market_price": "37.38", "sales_sum": 472 }, { "id": 38, "name": "古讴卡智能遥控机器人高科技语音对话编程电动跳舞幼儿童玩具男孩", "image": "http://www.likeshop.localhost/uploads/images/background/20201209/573cafeb621922e952838f617219ea88.png", "price": "399.00", "market_price": "999.00", "sales_sum": 470 }, { "id": 42, "name": "M1 芯片【2020新款 两年联保】Apple/苹果 MacBook Pro 13.3 英寸八核视网膜屏 8G 内存笔记本电脑", "image": "http://www.likeshop.localhost/uploads/images/background/20201130/f3eeb055df23a576684026c3bba5d206.jpg", "price": "12999.00", "market_price": "13999.00", "sales_sum": 448 } ], "new_ad": { "image": "http://www.likeshop.localhost/uploads/images/2021030515101496ed35075.png", "link": "/goods_details", "link_type": 2, "params": { "id": "27" }, "is_tab": 0 }, "new_list": [ { "id": 47, "name": "tetst", "image": "http://www.likeshop.localhost/uploads/images/202102261103100ce006719.jpeg", "price": "111.00", "market_price": "111.00", "sales_sum": 13 }, { "id": 45, "name": "ROG幻13(8核锐龙R7 5800HS 16G 512G GTX1650)", "image": "http://www.likeshop.localhost/uploads/images/background/20210130/b23ca523e1b3c4b33f207bde90202ca1.png", "price": "0.01", "market_price": "7999.00", "sales_sum": 24 }, { "id": 29, "name": "雾霾蓝纯色套头卫衣 2020秋季新款ins圆领长袖T恤宽松男女外套潮777", "image": "http://www.likeshop.localhost/uploads/images/background/20201209/17ca8666f3122f0ea83801a7c333b58f.png", "price": "59.00", "market_price": "69.00", "sales_sum": 10423 }, { "id": 27, "name": "Apple/苹果 iPhone 12", "image": "http://www.likeshop.localhost/uploads/images/background/20201130/3cb868c5006d0950b4c4c438564edf53.png", "price": "7999.00", "market_price": "7999.00", "sales_sum": 40 }, { "id": 25, "name": "智能机器狗遥控儿童玩具小狗编程特技狗狗电子男孩益智宝宝机器人", "image": "http://www.likeshop.localhost/uploads/images/background/20201117/82ca52262e475be6819436276468540d.jpg", "price": "199.00", "market_price": "199.00", "sales_sum": 25 }, { "id": 24, "name": "乐高旗舰店官网 成年高难度创意百变高手10262跑车积木玩具男女孩", "image": "http://www.likeshop.localhost/uploads/images/background/20201209/6d2ce8d11a6a25cdfee5efd2dab03f50.png", "price": "1399.00", "market_price": "1869.00", "sales_sum": 417 }, { "id": 23, "name": "5G新品创星mate30PRO骁龙865全网通5g学生价游戏智能手机水滴全面屏千百元曲面送老人老年oppo小米鼠华为耳机", "image": "http://www.likeshop.localhost/uploads/images/background/20201022/b94995f7802403650a89c7bbc8768ef3.jpg", "price": "999.00", "market_price": "2099.00", "sales_sum": 254 }, { "id": 19, "name": "好利来马卡龙甜品情人节礼盒糕点点心小蛋糕零食送女友", "image": "http://www.likeshop.localhost/uploads/images/background/20201020/701941ed21af22e3699953a9367d18ad.jpg", "price": "79.00", "market_price": "168.00", "sales_sum": 198 } ], "best_ad": { "image": "http://www.likeshop.localhost/uploads/images/20210305151022186d56815.png", "link": "https://www.baidu.com/", "link_type": 3, "params": [], "is_tab": 0 }, "best_list": [ { "id": 47, "name": "tetst", "image": "http://www.likeshop.localhost/uploads/images/202102261103100ce006719.jpeg", "price": "111.00", "market_price": "111.00", "sales_sum": 13 }, { "id": 45, "name": "ROG幻13(8核锐龙R7 5800HS 16G 512G GTX1650)", "image": "http://www.likeshop.localhost/uploads/images/background/20210130/b23ca523e1b3c4b33f207bde90202ca1.png", "price": "0.01", "market_price": "7999.00", "sales_sum": 24 }, { "id": 43, "name": "Apple/苹果 21.5 英寸 iMac 2.3GHz 双核处理器,", "image": "http://www.likeshop.localhost/uploads/images/background/20201209/4e0ca0024c2f418c5bd572176f4718bf.png", "price": "11099.00", "market_price": "11999.00", "sales_sum": 540 }, { "id": 42, "name": "M1 芯片【2020新款 两年联保】Apple/苹果 MacBook Pro 13.3 英寸八核视网膜屏 8G 内存笔记本电脑", "image": "http://www.likeshop.localhost/uploads/images/background/20201130/f3eeb055df23a576684026c3bba5d206.jpg", "price": "12999.00", "market_price": "13999.00", "sales_sum": 448 }, { "id": 41, "name": "soopsori周岁礼品韩国益智玩具娃娃女孩木制关节娃娃智能小熊木偶 ", "image": "http://www.likeshop.localhost/uploads/images/background/20201209/f20595ed41ba3b4ca8d8d492685ef42c.png", "price": "168.00", "market_price": "228.00", "sales_sum": 132 }, { "id": 39, "name": "乐高旗舰店官网 机械组42099遥控越野车成年高难度积木玩具男女孩", "image": "http://www.likeshop.localhost/uploads/images/background/20201209/1001277ea77dc57446ad0a3f5e1f4823.png", "price": "1999.00", "market_price": "2139.00", "sales_sum": 276 }, { "id": 38, "name": "古讴卡智能遥控机器人高科技语音对话编程电动跳舞幼儿童玩具男孩", "image": "http://www.likeshop.localhost/uploads/images/background/20201209/573cafeb621922e952838f617219ea88.png", "price": "399.00", "market_price": "999.00", "sales_sum": 470 }, { "id": 37, "name": "阿迪达斯官网 adidas 三叶草 男装春秋运动连帽套头衫 GD0956", "image": "http://www.likeshop.localhost/uploads/images/background/20201209/785acf8ceaa5b757106092bbd756acbc.png", "price": "359.00", "market_price": "799.00", "sales_sum": 1421 }, { "id": 36, "name": "阿迪达斯官网 adidas 三叶草男装春秋运动连帽卫衣EJ9681 EJ9680", "image": "http://www.likeshop.localhost/uploads/images/background/20201209/be30da444bdbec858cf16e42074bb281.png", "price": "179.00", "market_price": "599.00", "sales_sum": 804 }, { "id": 35, "name": "阿迪达斯官网 adidas 三叶草 KAVAL CREW 男装春秋运动卫衣EB4092", "image": "http://www.likeshop.localhost/uploads/images/background/20201209/65dcca96fc874795dbf6b1158278d8ae.png", "price": "179.00", "market_price": "799.00", "sales_sum": 272 } ], "category_list": [ { "id": 1, "name": "手机", "ad": { "image": "http://www.likeshop.localhost/uploads/images/20210306173153752a51572.png", "link": "/goods_details", "link_type": 2, "params": { "id": "27" }, "is_tab": 0 }, "sons": [ { "id": 2, "name": "小米" }, { "id": 5, "name": "华为" }, { "id": 7, "name": "oppo" }, { "id": 25, "name": "iPhone" } ], "goods_list": [ { "id": 23, "name": "5G新品创星mate30PRO骁龙865全网通5g学生价游戏智能手机水滴全面屏千百元曲面送老人老年oppo小米鼠华为耳机", "image": "http://www.likeshop.localhost/uploads/images/background/20201022/b94995f7802403650a89c7bbc8768ef3.jpg", "price": "999.00", "market_price": "2099.00", "sales_sum": 254 }, { "id": 26, "name": "测试3444444", "image": "http://www.likeshop.localhost/uploads/images/background/20201117/1222d2bde84bf4eba6a85e29e65d1288.jpg", "price": "1.00", "market_price": "1.00", "sales_sum": 2 }, { "id": 27, "name": "Apple/苹果 iPhone 12", "image": "http://www.likeshop.localhost/uploads/images/background/20201130/3cb868c5006d0950b4c4c438564edf53.png", "price": "7999.00", "market_price": "7999.00", "sales_sum": 40 }, { "id": 47, "name": "tetst", "image": "http://www.likeshop.localhost/uploads/images/202102261103100ce006719.jpeg", "price": "111.00", "market_price": "111.00", "sales_sum": 13 }, { "id": 48, "name": "漫步者耳机", "image": "http://www.likeshop.localhost/uploads/images/202103031841321279b7581.jpg", "price": "111.00", "market_price": "111.00", "sales_sum": 1 }, { "id": 50, "name": "OPPO", "image": "http://www.likeshop.localhost/uploads/images/202103041436488316e4943.jpg", "price": "899.00", "market_price": "1099.00", "sales_sum": 0 } ] }, { "id": 18, "name": "玩具", "ad": { "image": "http://www.likeshop.localhost/uploads/images/20210306173153752a51572.png", "link": "/get_coupons", "link_type": 1, "params": [], "is_tab": 0 }, "sons": [ { "id": 2, "name": "小米" }, { "id": 5, "name": "华为" }, { "id": 7, "name": "oppo" }, { "id": 25, "name": "iPhone" }, { "id": 19, "name": "智能玩具" }, { "id": 40, "name": "积木" } ], "goods_list": [ { "id": 24, "name": "乐高旗舰店官网 成年高难度创意百变高手10262跑车积木玩具男女孩", "image": "http://www.likeshop.localhost/uploads/images/background/20201209/6d2ce8d11a6a25cdfee5efd2dab03f50.png", "price": "1399.00", "market_price": "1869.00", "sales_sum": 417 }, { "id": 25, "name": "智能机器狗遥控儿童玩具小狗编程特技狗狗电子男孩益智宝宝机器人", "image": "http://www.likeshop.localhost/uploads/images/background/20201117/82ca52262e475be6819436276468540d.jpg", "price": "199.00", "market_price": "199.00", "sales_sum": 25 }, { "id": 38, "name": "古讴卡智能遥控机器人高科技语音对话编程电动跳舞幼儿童玩具男孩", "image": "http://www.likeshop.localhost/uploads/images/background/20201209/573cafeb621922e952838f617219ea88.png", "price": "399.00", "market_price": "999.00", "sales_sum": 470 }, { "id": 39, "name": "乐高旗舰店官网 机械组42099遥控越野车成年高难度积木玩具男女孩", "image": "http://www.likeshop.localhost/uploads/images/background/20201209/1001277ea77dc57446ad0a3f5e1f4823.png", "price": "1999.00", "market_price": "2139.00", "sales_sum": 276 }, { "id": 41, "name": "soopsori周岁礼品韩国益智玩具娃娃女孩木制关节娃娃智能小熊木偶 ", "image": "http://www.likeshop.localhost/uploads/images/background/20201209/f20595ed41ba3b4ca8d8d492685ef42c.png", "price": "168.00", "market_price": "228.00", "sales_sum": 132 } ] } ] }, "show": 0, "time": "2.961345" } ``` **返回参数说明** |参数名|类型|说明| |:----- |:-----|----- | |host_ad、bast_ad、new_ad|array|热销榜单广告、好物优选广告、新品推荐广告 |----image |string |广告图片 |----link_type |int |广告类型:1-商场页面;2-商品页面;3-自定义类型 |----link |string |广告链接 |----params |string |参数 |----is_tab |int |是否tab页:1-是;0-否 |host_list、bast_list、new_list|array|热销榜单列表、好物优选列表、新品推荐列表 |----id |int |商品id |----name |varchar |商品名称 |----image |varchar |商品主图 |----price |string |商品价格 |----market_price |string |商品市场价 |category_list|array|商品分类 |----id |int |商品id |----name |varchar |商品名称 |----ad|array|广告信息 |--------image |string |广告图片 |--------link_type |int |广告类型:1-商场页面;2-商品页面;3-自定义类型 |--------link |string |广告链接 |--------params |string |参数 |--------is_tab |int |是否tab页:1-是;0-否 |----sons |array|二级分类 |--------id |int |二级分类id |--------name|string |分类名称 |----goods_list |array|商品列表 |--------id |int |商品id |--------name |varchar |商品名称 |--------image |varchar |商品主图 |--------price |string |商品价格 |--------market_price |string |商品市场价 **备注** -