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

更新页面


接口URL

http://demonuxtapi.dishait.cn/admin/s/renovation/update

请求方式

POST

Content-Type

json

请求Header参数

参数名示例值参数类型是否必填参数描述
tokeneyj...NjString用户token
schoolid11Integer网校id

请求Body参数

json5
{
	"id": 1,
	"title": "首页",
	"ismobile": 1,
	"template": [
		{
			"type": "swiper",
			"data": [
				{
					"src": "http://...png",
					"url": ""
				},
				// ...
			]
		},
		{
			"type": "icons",
			"data": [
				{
					"src": "http://...png",
					"name": "Java",
					"url": ""
				},
				// ...
			]
		},
		{
			"type": "promotion",
			"title": "拼团",
			"data": [
				{
					"cover": "http://...png",
					"title": "uni-app实战直播app开发",
					"b_num": 10,
					"price": 100,
					"t_price": 299
				},
				// ...
			]
		},
		{
			"type": "imageAd",
			"data": "http://...png"
		},
		{
			"type": "list",
			"title": "最新列表",
			"listType": "two",
			"showMore": true,
			"more": {
				"title": "演示页面",
				"url": ""
			},
			"data": [
				{
					"cover": "http://...png",
					"title": "uni-app实战视频点播app小程序",
					"desc": "一句话推荐",
					"price": 100,
					"t_price": 299
				},
				// ...
			]
		},
		{
			"type": "imageAd",
			"data": "http://...png"
		}
	]
}
参数名示例值参数类型是否必填参数描述
id1Number页面id
title首页String页面标题
ismobile1Number是否是移动端:0否1是
template-Object模板数据
template.typeswiperString-
template.data-Object-
template.data.srchttp://...pngString-
template.data.url-Object-

成功响应示例

json5
{
	"msg": "ok",
	"data": {
		"id": 1,
		"school_id": 11,
		"title": "首页",
		"isdefault": 1,
		"type": "index",
		"ismobile": 1,
		"template": "[{\"type\":\"swiper\",\"data\":[{\"src\":\"http://edu-image.nosdn.127.net/96bd39ce1d334b8493bac12bb1aa4223.png?imageView&quality=100&thumbnail=1053y483\",\"url\":\"\"},{\"src\":\"http://edu-image.nosdn.127.net/0447eb8e514b45d385d9ed9d6c5b6f5f.png?imageView&quality=100&thumbnail=1053y483\",\"url\":\"\"}]},{\"type\":\"icons\",\"data\":[{\"src\":\"https://img4.mukewang.com/5fc067a7000130ac05400200.jpg\",\"name\":\"Java\",\"url\":\"\"},{\"src\":\"https://img.mukewang.com/5fc067b30001922705400200.jpg\",\"name\":\"前端\",\"url\":\"\"},{\"src\":\"https://img2.mukewang.com/5fc067bd0001575f05400200.jpg\",\"name\":\"Python\",\"url\":\"\"},{\"src\":\"https://img4.mukewang.com/5fc067ca0001048405400200.jpg\",\"name\":\"大数据\",\"url\":\"\"}]},{\"type\":\"promotion\",\"title\":\"拼团\",\"data\":[{\"cover\":\"https://edu-image.nosdn.127.net/9b9572c6b6b14964b3e26faed9eafcb9.png\",\"title\":\"uni-app实战直播app开发\",\"b_num\":10,\"price\":100,\"t_price\":299},{\"cover\":\"https://edu-image.nosdn.127.net/6acb1e3d39dc497bb98cf35b325a755d.png?imageView&quality=100&crop=0_0_899_500&thumbnail=223y124\",\"title\":\"uni-app实战仿微信app开发\",\"b_num\":10,\"price\":100,\"t_price\":299},{\"cover\":\"https://edu-image.nosdn.127.net/9b9572c6b6b14964b3e26faed9eafcb9.png\",\"title\":\"uni-app实战直播app开发\",\"b_num\":10,\"price\":100,\"t_price\":299},{\"cover\":\"https://edu-image.nosdn.127.net/6acb1e3d39dc497bb98cf35b325a755d.png?imageView&quality=100&crop=0_0_899_500&thumbnail=223y124\",\"title\":\"uni-app实战仿微信app开发\",\"b_num\":10,\"price\":100,\"t_price\":299}]},{\"type\":\"imageAd\",\"data\":\"https://dummyimage.com/800x80\"},{\"type\":\"list\",\"title\":\"最新列表\",\"listType\":\"two\",\"showMore\":true,\"more\":{\"title\":\"演示页面\",\"url\":\"\"},\"data\":[{\"cover\":\"https://edu-image.nosdn.127.net/561821cf12524f69bde0c6e9d3f3b030.png?imageView&quality=100&crop=0_0_900_499&thumbnail=223y124\",\"title\":\"uni-app实战视频点播app小程序\",\"desc\":\"一句话推荐\",\"price\":100,\"t_price\":299},{\"cover\":\"https://edu-image.nosdn.127.net/9d416f92eb9f4b0f99673914671a6805.png?imageView&quality=100&crop=0_0_900_499&thumbnail=223y124\",\"title\":\"uni-app多端企业网盘全栈开发\",\"desc\":\"一句话推荐\",\"price\":100,\"t_price\":299},{\"cover\":\"https://edu-image.nosdn.127.net/9769ffd1157747c9b0f668276cf559cc.png?imageView&quality=100&crop=0_0_1280_719&thumbnail=223y124\",\"title\":\"VueCli 实战商城后台管理系统\",\"desc\":\"一句话推荐\",\"price\":100,\"t_price\":299},{\"cover\":\"https://edu-image.nosdn.127.net/b4d2d9f9e6fe41d696133254133178d9.png?imageView&quality=100&crop=0_0_900_499&thumbnail=223y124\",\"title\":\"uni-app实战商城类app和小程序\",\"desc\":\"一句话推荐\",\"price\":100,\"t_price\":299},{\"cover\":\"https://edu-image.nosdn.127.net/561821cf12524f69bde0c6e9d3f3b030.png?imageView&quality=100&crop=0_0_900_499&thumbnail=223y124\",\"title\":\"uni-app实战视频点播app小程序\",\"desc\":\"一句话推荐\",\"price\":100,\"t_price\":299},{\"cover\":\"https://edu-image.nosdn.127.net/9d416f92eb9f4b0f99673914671a6805.png?imageView&quality=100&crop=0_0_900_499&thumbnail=223y124\",\"title\":\"uni-app多端企业网盘全栈开发\",\"desc\":\"一句话推荐\",\"price\":100,\"t_price\":299},{\"cover\":\"https://edu-image.nosdn.127.net/9769ffd1157747c9b0f668276cf559cc.png?imageView&quality=100&crop=0_0_1280_719&thumbnail=223y124\",\"title\":\"VueCli 实战商城后台管理系统\",\"desc\":\"一句话推荐\",\"price\":100,\"t_price\":299},{\"cover\":\"https://edu-image.nosdn.127.net/b4d2d9f9e6fe41d696133254133178d9.png?imageView&quality=100&crop=0_0_900_499&thumbnail=223y124\",\"title\":\"uni-app实战商城类app和小程序\",\"desc\":\"一句话推荐\",\"price\":100,\"t_price\":299}]},{\"type\":\"imageAd\",\"data\":\"https://dummyimage.com/800x80\"}]",
		"created_time": "2021-03-04T17:39:23.000Z",
		"updated_time": "2021-03-19T14:31:23.000Z"
	},
	"code": 20000
}