简要描述:

盲盒-聚合页列表

请求域名:

  • http://xx.com

请求URL:

POST/plugin.blind-box.api.index.activity

传递参数:

参数名 是否必须 类型 说明
activity_type int 类型:全部(不传),1进行中,2未开始,3已结束

返回参数说明:

参数名 类型 说明
id int 盲盒活动id
activity_name string 活动名
activity_img string 活动图片(绝对地址activity_img_src)
activity_type int 盲盒活动类型:0付费,1免费
price float (盲盒活动类型选付费时)盲盒售价
activity_start int 活动开启时间
activity_end int 活动结束时间
slide array 轮播图信息
slide.title string 轮播图标题
slide.img_src string 轮播图图片地址
slide.url string 轮播图跳转链接
slide.mini_url string 轮播图小程序跳转链接

返回示例:

正确时返回的数据:

{
	"result": 1,
	"msg": "ok",
	"data": {
		"list": {
			"total": 2,
			"per_page": 20,
			"current_page": 1,
			"last_page": 1,
			"next_page_url": null,
			"prev_page_url": null,
			"from": 1,
			"to": 2,
			"data": [
				{
					"id": 2,
					"activity_name": "盲盒活动2",
					"price": "0.00",
					"activity_img": "images/1/2019/07/VDFddBMDs8Ddg2rHzdRkGr92dgmrWW.jpg",
					"activity_type": 1,
					"activity_start": "2021-01-01 08:26:55",
					"activity_end": "2021-04-01 08:26:57",
					"activity_img_src": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2019/07/VDFddBMDs8Ddg2rHzdRkGr92dgmrWW.jpg",
					"top_img_src": "",
					"poster_src": "",
					"cservice_code_src": ""
				},
				{
					"id": 1,
					"activity_name": "盲盒活动1",
					"price": "20.00",
					"activity_img": "newimage/5de29eb8a5fdceef7a172a68709478a7.jpg",
					"activity_type": 0,
					"activity_start": "2021-03-08 03:00:00",
					"activity_end": "2021-03-25 00:00:00",
					"activity_img_src": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/newimage/5de29eb8a5fdceef7a172a68709478a7.jpg",
					"top_img_src": "",
					"poster_src": "",
					"cservice_code_src": ""
				}
			]
		},
		"slide": [
			{
				"title": "测试",
				"img": "newimage/62a94fff46ba289dd2cae70ce1e6e389.jpg",
				"url": "http://yzmall.com/addons/yun_shop/?menu#/member/footprint?i=1",
				"mini_url": "/packageB/member/income/income/income",
				"img_src": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/newimage/62a94fff46ba289dd2cae70ce1e6e389.jpg"
			}
		]
	}
}

错误时返回:

{
	"result": 0,
	"msg": "",
	"data": []
}

备注:

  • 更多返回错误代码请看首页的错误代码描述