首页数据
开发中GET
/api/pc/index请求参数
无
示例代码
返回响应
成功(200)
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
object {0}
示例
{
"code": 1,
"show": 0,
"msg": "",
"data": {
"page": {
"id": 1,
"type": 1,
"name": "商城首页",
"data": "[{\"id\":\"l8ctwzv4r1zl0\",\"title\":\"搜索\",\"name\":\"search\",\"disabled\":1,\"content\":{},\"styles\":{}},{\"id\":\"l8ctwzv455un3\",\"title\":\"首页轮播图\",\"name\":\"banner\",\"content\":{\"enabled\":1,\"data\":[{\"image\":\"uploads/images/20220926/20220926174457333646121.png\",\"name\":\"11\",\"link\":{\"path\":\"/pages/user_data/user_data\",\"name\":\"个人资料\",\"type\":\"shop\"}}]},\"styles\":{}},{\"id\":\"l8ctwzv4d0jns\",\"title\":\"导航菜单\",\"name\":\"nav\",\"content\":{\"enabled\":1,\"data\":[{\"image\":\"uploads/images/20220926/20220926174457333646121.png\",\"name\":\"导航名称\",\"link\":{\"path\":\"/pages/news/news\",\"name\":\"文章资讯\",\"type\":\"shop\"}}]},\"styles\":{}},{\"id\":\"l8ctwzv4jadxc\",\"title\":\"资讯\",\"name\":\"news\",\"disabled\":1,\"content\":{},\"styles\":{}}]",
"create_time": "2022-08-29 15:13:08",
"update_time": "2022-10-11 15:12:51"
},
"all": [
{
"id": 2,
"title": "测试文章11111",
"desc": "123",
"abstract": "213",
"image": "",
"author": "测试123",
"create_time": "2022-10-19 10:03:21",
"click": 3
}
],
"new": [
{
"id": 3,
"title": "测试文章222",
"desc": "123",
"abstract": "12321",
"image": "",
"author": "测试222",
"create_time": "2022-10-19 10:03:40",
"click": 0
}
],
"hot": [
{
"id": 2,
"title": "测试文章11111",
"desc": "123",
"abstract": "213",
"image": "",
"author": "测试123",
"create_time": "2022-10-19 10:03:21",
"click": 3
}
]
}
}
![](https://cdn.apifox.com/app/apidoc-image/custom/20230616/a471fbe4-8cc7-443e-aef5-0eaa31d0c10a.png)
修改于 2 年前