>用户报名提交
~~~[api]
post:/index.php/activity/Apiactivity/member_submit_signup
*int:rid=0#活动id
int:recommendid=0#推荐人id
obj:enrollinfo= #报名人信息,格式如 {key:val}
*string:pay_type="WX" #支付方式 WX:微信支付,Balance:余额支付
<<<
success
{
"err": 0,
"data": {
"id": 10,
"activity": {
"id": 3,
"title": "活动标题",
"area": "活动位置",
"thumb": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png",
"activitytime": 123456789910,
"starttime": 123456789910,
"endtime": 123456789910,
"number": 100,
"price": 5000,
"sponsor": "主办商名称",
"status": 0,
"rebate": "0.3 分(积分)",
"signup_num": 20
},
"userinfo": {
"id": 10,
"name": "小怪兽123",
"headPath": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png"
},
"recommend_userinfo": {
"id": 8,
"name": "小怪兽",
"headPath": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png"
},
"enrollinfo": { }
}
}
<<<
error
{
"err": 1,
"code": 1000,
"content": "错误信息"
}
~~~
>获取活动列表
~~~[api]
get:/index.php/activity/Apiactivity/activity_list
int:pagesize=10#每页显示个数
int:page=1#显示页码数
string:between_price= #价格区间 如100-200
string:keyword= #检索的关键字
string:sort=sort #排序字段
string:sort_type= asc#排序类型
int:status= # 不传表示全部 0未开始 1进行中 2已结束
<<<
success
{
"err": 0,
"page": 1,
"pageTotal": 10,
"pageSize": 10,
"count": 1,
"data": [
{
"id": 3,
"title": "活动标题",
"area": "活动位置",
"thumb": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png",
"activitytime": 123456789910,
"starttime": 123456789910,
"endtime": 123456789910,
"number": 100,
"price": 5000,
"sponsor": "主办商名称",
"status": 0,
"signup_num": 20,
}
]
}
<<<
error
{
"err": 1,
"code": 1000,
"content": "错误信息"
}
~~~
>获取当前登录的会员参加的活动列表
~~~[api]
get:/index.php/activity/Apiactivity/member_activity_list
int:pagesize=10#每页显示个数
int:page=1#显示页码数
string:keyword= #检索的关键字
string:sort=sort #排序字段
string:sort_type= asc#排序类型
string:status= # 不传表示全部 0未开始 1进行中 2已结束
<<<
success
{
"err": 0,
"page": 1,
"pageTotal": 10,
"pageSize": 10,
"count": 1,
"data": [
{
"id": 3,
"title": "活动标题",
"area": "活动位置",
"is_signup": 0,
"thumb": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png",
"activitytime": 123456789910,
"starttime": 123456789910,
"endtime": 123456789910,
"number": 100,
"price": 5000,
"sponsor": "主办商名称",
"status": 0,
"signup_num": 20,
"content": "活动内容"
}
]
}
<<<
error
{
"err": 1,
"code": 1000,
"content": "错误信息"
}
~~~
>获取活动详细信息
~~~[api]
get:/index.php/activity/Apiactivity/activity_getInfo
*int:id=1#活动id
<<<
success
{
"err": 0,
"data": {
"id": 3,
"title": "活动标题",
"area": "活动位置",
"thumb": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png",
"activitytime": 123456789910,
"starttime": 123456789910,
"endtime": 123456789910,
"number": 100,
"price": 5000,
"sponsor": "主办商名称",
"status": 0,
"signup_num": 20,
"enrollinfo": { },
"content": "活动内容"
},
"signup_info": [
{
"id": 10,
"addtime": 12345678910,
"userinfo": {
"id": 10,
"name": "小怪兽123",
"headPath": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png"
},
"recommend_userinfo": {
"id": 8,
"name": "小怪兽",
"headPath": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png"
},
"enrollinfo": { }
}
]
}
<<<
error
{
"err": 1,
"code": 1000,
"content": "错误信息"
}
~~~
>获取活动已报名人员信息
~~~[api]
get:/index.php/activity/Apiactivity/activity_get_signup
*int:id=1#活动id
<<<
success
{
"err": 0,
"count": 1,
"data": [
{
"signup_id": 10,
"addtime": 12345678910,
"userid": 10,
"name": "小怪兽123",
"headPath": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png"
}
]
}
<<<
error
{
"err": 1,
"code": 1000,
"content": "错误信息"
}
~~~
>获取活动邀请榜排行
~~~[api]
get:/index.php/activity/Apiactivity/member_activity_get_invite_ranking
*int:id=1#活动id
<<<
success
{
"err": 0,
"count": 1,
"userinfo": {
"id": 10,
"name": "小怪兽123",
"headPath": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png",
"Invitation_num": 10,
"ranking": 10
},
"data": [
{
"signup_id": 10,
"addtime": 12345678910,
"invite_num": 10,
"id": 10,
"name": "小怪兽123",
"headPath": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png"
}
]
}
<<<
error
{
"err": 1,
"code": 1000,
"content": "错误信息"
}
~~~