Skip to content
关注公众号,获取新课通知

获取首页数据


接口URL

http://demonuxtapi.dishait.cn/pc/index

请求方式

GET

Content-Type

application/x-www-form-urlencoded

请求Header参数

参数名示例值参数类型是否必填参数描述
appidbd9d01ecc75dbbaaefceString网校唯一appid

成功响应示例

json5
{
	"msg": "ok",
	"data": [
		{
			"logo": "帝莎编程",
			"data": [
				{
					"title": "首页",
					"type": "webview",
					"url": "/",
					"page_id": 0,
					"page_title": "",
					"course_title": "",
					"course_id": ""
				},
				// ...
			],
			"checked": false,
			"type": "header"
		},
		{
			"data": [
				{
					"src": "http://...png",
					"type": "webview",
					"course_title": "",
					"course_id": "",
					"url": "https://...html"
				},
				// ...
			],
			"checked": false,
			"type": "swiper"
		},
		{
			"data": [
				{
					"src": "http://...png",
					"name": "vuecli在线教育实战",
					"type": "webview",
					"url": "https://...htm",
					"page_id": 5,
					"page_title": "新页面",
					"course_title": "",
					"course_id": ""
				},
				// ...
			],
			"checked": false,
			"type": "icons"
		},
		{
			"data": [
				{
					"src": "http://...png",
					"type": "course",
					"course_title": "我是音频123",
					"course_id": 539,
					"url": ""
				}
			],
			"checked": false,
			"type": "imageAd"
		},
		{
			"listType": "group",
			"title": "拼团",
			"data": [
				{
					"id": 539,
					"title": "我是音频123",
					"cover": "http://...png",
					"try": "<p>我是音频1</p>",
					"content": "http://...mp3",
					"price": "10.00",
					"t_price": "20.00",
					"type": "audio",
					"school_id": 11,
					"status": 1,
					"sub_count": 0,
					"is_single": 1,
					"created_time": "2021-04-15T07:47:38.000Z",
					"updated_time": "2021-04-15T08:08:14.000Z"
				},
				// ...
			],
			"checked": false,
			"type": "promotion"
		},
		{
			"listType": "one",
			"title": "最新列表",
			"showMore": true,
			"more": false,
			"data": [
				{
					"id": 931,
					"title": "Vue3实战商城后台管理系统开发",
					"cover": "http://...png",
					"try": "<div>...;</div>",
					"content": "<p>3333</p>",
					"price": "0.20",
					"t_price": "300.00",
					"type": "media",
					"school_id": 11,
					"status": 1,
					"sub_count": 0,
					"is_single": 1,
					"created_time": "2022-02-08T13:58:21.000Z",
					"updated_time": "2022-06-21T13:13:55.000Z"
				},
				// ...
			],
			"checked": false,
			"type": "list"
		},
		{
			"listType": "one",
			"title": "推荐列表",
			"showMore": true,
			"more": false,
			"data": [
				{
					"id": 10,
					"title": "egg.js图文入门",
					"cover": "http://...png",
					"try": "<p>egg.js图文入门<img class=\"wscnph\" src=\"http:/...png\" /></p>",
					"content": "<p>egg.js图文入门</p>",
					"price": "90.00",
					"t_price": "100.00",
					"type": "media",
					"school_id": 11,
					"status": 0,
					"sub_count": 0,
					"is_single": 1,
					"created_time": "2021-03-11T16:11:45.000Z",
					"updated_time": "2021-08-24T06:00:07.000Z"
				},
				{
					"id": 895,
					"title": "我的音频课程1",
					"cover": "http://...png",
					"try": "<p>我的音频课程1</p>",
					"content": "http://...mp3",
					"price": "10.00",
					"t_price": "20.00",
					"type": "audio",
					"school_id": 11,
					"status": 1,
					"sub_count": 0,
					"is_single": 1,
					"created_time": "2021-07-31T09:04:37.000Z",
					"updated_time": "2021-07-31T09:04:37.000Z"
				},
				// ...
			],
			"checked": true,
			"type": "list"
		},
		{
			"data": [
				{
					"title": "帝莎编程",
					"type": "webview",
					"url": "www.dishaxy.com",
					"page_id": 0,
					"page_title": "",
					"course_title": "",
					"course_id": ""
				}
			],
			"beian": "备案信息",
			"checked": false,
			"type": "footer"
		}
	],
	"code": 20000
}