简要描述:

-获取定金阶梯活动信息详情

请求域名:

  • http://xx.com

请求URL:

plugin.deposit-ladder.frontend.index.activity

请求参数说明:

参数名 类型 是否必需 说明
id int 活动ID

返回示例:

正确时返回:

{
	"result": 1,
	"msg": "ok",
	"data": {
		"activity": {
			"id": 20,
			"uniacid": 1,
			"goods_id": 210,
			"bind_goods_id": 115,
			"goods_option_id": 0,
			"goods_option_title": null,
			"activity_name": "测试活动活动活动活动活动活动活",
			"activity_start": 1620629102,
			"activity_end": 1620748800,
			"limit": 2,
			"limit_total": 3,
			"ladder_type": 0,
			"activity_explain": "",
			"deposit": "20.00",
			"agreement": 0,
			"contract_id": 0,
			"agreement_content": "3213",
			"status": 0,
			"fail_text": null,
			"created_at": "2021-05-10 14:52:59",
			"updated_at": "2021-05-14 11:39:16",
			"deleted_at": null,
			"theme_color": "#D24F4F",
			"ranking_list": 1,
			"order_count": 4,
			"member_order_count": 0,
			"ladder": [
				{
					"id": 146,
					"activity_id": 20,
					"deal_num": 1,
					"sale_num": null,
					"deal_price": "100.00",
					"created_at": "2021-05-14 11:39:16",
					"updated_at": null
				},
				{
					"id": 147,
					"activity_id": 20,
					"deal_num": 5,
					"sale_num": null,
					"deal_price": "70.00",
					"created_at": "2021-05-14 11:39:16",
					"updated_at": null
				},
				{
					"id": 148,
					"activity_id": 20,
					"deal_num": 10,
					"sale_num": null,
					"deal_price": "50.00",
					"created_at": "2021-05-14 11:39:16",
					"updated_at": null
				}
			],
			"activity_order": [
				{
					"id": 1,
					"activity_id": 20,
					"member_id": 163779,
					"member": null
				},
				{
					"id": 2,
					"activity_id": 20,
					"member_id": 163779,
					"member": null
				},
				{
					"id": 3,
					"activity_id": 20,
					"member_id": 163780,
					"member": null
				},
				{
					"id": 4,
					"activity_id": 20,
					"member_id": 163781,
					"member": null
				}
			],
			"bind_goods": {
				"id": 115,
				"title": "测试商品发布",
				"thumb": "/newimage/55812ff61cb4764ce2c995bdd7c37d91.jpg",
				"price": "100.00",
				"has_option": 0,
				"thumb_src": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com//newimage/55812ff61cb4764ce2c995bdd7c37d91.jpg"
			},
			"goods_option": null
		},
		"member": {
			"credit1": "50.00",
			"avatar_image": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2019/04/tWMW4dK4vlxk2Zb29mGC922m82bwg2.jpg",
			"username": null
		}
	}
}

返回参数说明:

参数名 类型 说明
activity.id int 活动ID
activity.goods_id int 商品ID
activity.bind_goods_id int 绑定商品ID
activity.goods_option_id int 绑定商品规格ID
activity.goods_option_title string 绑定商品规格标题
activity.activity_name string 活动名称
activity.activity_start int 活动开始时间
activity.activity_end int 活动结束时间
activity.limit int 每单最多购买数量
activity.limit_total int 每个会员最多购买数量
activity.ladder_type int 梯度判断类别,0按成交人数,1按销售数量
activity.activity_explain string 活动说明
activity.deposit float 活动定金
activity.agreement int 定金协议:0电子合同,1弹窗确认
activity.contract_id int 选用的电子合同ID
activity.agreement_content string 弹窗协议内容
activity.status int 活动状态:0进行中,1已失效,2最终订单生成失败,3已结束
activity.theme_color string 活动主题色
activity.order_count int 该活动已下定金人数
activity.sale_count int 该活动已销售数量
activity.commission int 分销金额,0的话显示分享就行
ladder array 梯度信息
ladder.deal_num int 成交人数
ladder.sale_num int 销售数量
ladder.deal_price int 成交价
activity_order array 定金订单信息
activity_order.member array 定金订单会员信息
bind_goods array 绑定商品信息
bind_goods.id int 绑定商品id
bind_goods.title string 绑定商品名称
bind_goods.thumb string 绑定商品图片,thumb_src绝对路径
bind_goods.price float 绑定商品价格
bind_goods.has_option int 绑定商品是否开启了规格,0已开启,1未开启
goods_option array 绑定商品的规格信息
goods_option.title string 绑定商品的规格标题
cservice array 客服信息(里边是啥我也不清楚,看商品详情页的设置就行)
share array 分享信息
share.share_title string 分享标题
share.share_img string 分享图片
share.share_desc string 分享描述

错误时返回:

{
    "result": 0,
    "msg": "参数错误",
    "data": []
}