**简要描述:**
- 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 |商品市场价
**备注**
-
- 🔥🔥🔥点击查看最新最全文档
- 说明
- 请求通用参数
- 返回值说明
- 账号
- 小程序登录
- 微信H5登录
- 手机号账号密码登录
- 微信第三方app登录
- 获取向微信请求code的链接
- 退出登录
- 验证码登录
- uniapp微信登录(第三方app)
- 上传文件
- form表单方式上传图片
- 微信
- 微信JSSDK授权接口
- 购物车
- 列表
- 添加购物车
- 删除购物车
- 改变数量
- 购物车选中状态
- 收货地址
- 获取地址列表
- 获取地址详情
- 获取默认地址
- 设置默认地址
- 添加地址
- 更新地址
- 删除地址
- 省市区名称转换
- 商品
- 商品分类
- 商品详情
- 商品搜索列表
- 获取好物优选
- 搜索页
- 获取热销榜单
- 清理搜索记录
- 分销
- 填写邀请码
- 分销会员申请
- 最新分销会员申请详情
- 邀请人信息
- 分销主页
- 分销订单列表
- 佣金提现
- 提现记录列表
- 提现详情
- 提现页信息
- 月度账单
- 月度账单明细
- 分销推广入口验证
- 获取海报背景图
- 营销
- 签到
- 获取签到列表
- 签到
- 获取签到规则
- 优惠券
- 我的优惠券
- 获取商品优惠券
- 用户领取优惠券
- 领券中心
- 注册赠送优惠券
- 限时秒杀
- 获取秒杀时间段
- 获取秒杀商品
- 活动专区
- 获取活动专区商品列表
- 充值
- 充值模板
- 充值接口
- 拼团活动
- 商品列表
- 拼团下单
- 商品详细
- 我的拼团
- 拼团详情
- 积分抽奖
- 获取奖品
- 抽奖记录
- 抽奖
- 砍价
- 砍价商品列表
- 砍价商品详情
- 砍价成功人数
- 发起砍价
- 砍价订单列表
- 砍价订单详情
- 好友助力
- 关闭砍价订单
- 首页
- 获取首页数据
- 通用配置
- 订单
- 订单列表
- 添加订单
- 订单详情
- 取消订单
- 删除订单
- 确认收货
- 查看物流
- 售后
- 售后列表
- 申请售后
- 售后商品信息
- 填写快递信息
- 撤销申请
- 售后详情
- 重新申请
- 收藏
- 商品收藏操作
- 获取商品的收藏列表
- 用户
- 个人中心
- 账户明细
- 我的粉丝
- 会员中心
- 我的钱包
- 评论
- 商品评论
- 获取评论商品的信息
- 获取评论内容分类
- 获取评论列表
- 获取订单商品列表
- 广告
- 获取广告列表
- 分享
- 生成商品海报
- 邀请海报
- 砍价海报
- 分享到小程序或H5
- 获取微信小程序码
- 菜单
- 获取菜单
- 消息订阅
- 获取订阅模板ID
- 消息中心
- 消息中心首页
- 消息列表
- 足迹气泡
- 获取足迹气泡
- 短信
- 发送短信
- 地区
- 获取地区
- pc端接口
- pc首页接口
- 获取公共数据
- 获取商品列表
- 修改用户信息