##登录
域名/index.php/App/User/Login.html 传输方式:GET
+++
*phone# 用户账号
*uuid# 用户手机设备ID
*code# 短信验证码
*cid# 用户CID(个推)
*grade# 用户等级 //3位经纪人。7为业主。。其他用户用到在加上去
<<<
success
{
"info":"登录成功!", //失败或成功原因
"state":"1", //0登录失败,1登录成功,2,用户等级不可为空。3用户还没上传验证信息,4表示注册失败,5用户设备ID不可为空,7身份认证未通过,8未审核。9该账号已冻结 10:不是经纪人无法登陆经纪人端
"token":"*********************************"
}
<<<
error
{
"info":"您还未上传身份证认证信息!",
"state":"3",
"token":""
}
+++
##验证码
域名/index.php/App/User/sentSMS 传输方式:GET
+++
*phone# 手机号
<<<
success
{
"info":"发送成功!",
"state":"1" //3为短信服务商返回的失败
}
<<<
error
{
"info":"错误原因!",
"state":"0"
}
+++
##添加用户信息(业主端)
域名/index.php/App/User/addUserInfo/token/当前用户的token 传输方式:POST
+++
*name# 姓名
*card_positive_img# 身份证正面(图片)
*card_otherside_img# 身份证反面(图片)
<<<
success
{
"info":"添加成功,正在等待工作人员审核,预计3 - 5个工作日!",
"state":1
}
<<<
error
{
"info":"错误信息",
"state":0
}
+++
##添加用户信息(经纪人端)
域名/index.php/App/User/addUserInfoAgent/token/当前用户的token 传输方式:POST
+++
*name# 姓名
*card_positive_img# 身份证正面(字符串)
*card_otherside_img# 身份证反面(字符串)
<<<
success
{
"info":"添加成功,正在等待工作人员审核,预计3 - 5个工作日!",
"state":1
}
<<<
error
{
"info":"错误信息",
"state":0
}
+++
##上传身份证正面
域名/index.php/App/User/cardPositiveImg/token/当前用户的token 传输方式:POST
+++
*card_positive_img# 身份证正面(图片)
<<<
success
{
"info": "上传成功。",
"state": 1,
"data": "Public/card/2016-12-02/58413963a1b20.png"
}
<<<
error
{
"info": "请选择身份证正面。",
"state": 0,
"data": ""
}
+++
##上传身份证反面
域名/index.php/App/User/cardOthersideImg/token/当前用户的token 传输方式:POST
+++
*card_otherside_img# 身份证反面(图片)
<<<
success
{
"info": "上传成功。",
"state": 1,
"data": "Public/card/2016-12-02/58413963a1b20.png"
}
<<<
error
{
"info": "请选择身份证正面。",
"state": 0,
"data": ""
}
+++
##用户签到
域名/index.php/App/Index/userSign/token/当前用户的TOKEN
+++
<<<
success
{
"info":"签到成功!",
"state":1
}
<<<
error
{
"info":"您今日已签到过了!",
"state":0
}
+++
##获取用户签到日期
域名/index.php/App/Index/getSign/token/当前用户的TOKEN
+++
<<<
success
{
"info":"查询成功!",
"time":"2016-10-31 15:03:30",
"state":1,
"retData":[
{
"_id":"59",
"sign_time":"2016-10-30 14:59:54",
"user_id":"69"
}
]
}
<<<
error
{
"info":"您当前月没签到!",
"time":"2016-10-31 15:05:21",
"state":0,
"retData":""
}
+++
##用户详情
域名/index.php/Admin/User/userDetails/token/用户TOKEN
+++
<<<
success
{
"data": {
"_id":"2",
"account":"15507898841",
"password":"d3f75b4ec9ef6fa0",
"user_grade":"2",
"integral":null,
"status":"1",
"card_id":null,
"name":null,
"card_positive_img":null,
"card_otherside_img":null,
"user_id":null,
"desc":"合伙人",
"user_type":"1",
"min_area":"0",
"max-area":"200"
},
"info":"获取成功!",
"state":1
}
<<<
error
{
"info":"*********", //签到失败原因!
"state":0,
"data":""
}
+++
##我的客户
域名/index.php/App/User/userCustomer/token/当前用户的TOKEN
+++
*page# 当前页数
*num# 每页显示的数量(默认为10)
<<<
success
{
"info": "查询成功!", //提示语
"num": 10, //每页返回的数量
"state": 1, //返回状态 1为获取成功,2为没有数据,3为当前页数不可为空
"data": [
{
"_id": "2",
"user_id": "21",
"customer_id": "2",
"status": "2",
"biding_id": "19",
"end_time": "1476088909",
"customer": "张三",
"phone_num": "15507898841",
"desc": "李四的客户",
"city": "深圳",
"region": "南山区",
"company": "李四公司",
"measure": "150",
"price": "9999",
"start_time": "1476088849"
}
]
}
<<<
error
{
"info": "查无数据!",
"num": 0,
"state": 2,
"data": ""
}
+++
##指派客户
域名/index.php/App/User/distributionCustomer/token/当前用户的TOKEN
+++
*page# 当前页数
*num# 每页显示的数量(默认为10)
<<<
success
{
"info": "查询成功!", //提示语
"num": 10, //每页返回的数量
"state": 1, //返回状态 1为获取成功,2为没有数据,3为当前页数不可为空
"data": [
{
"_id": "2",
"user_id": "21",
"customer_id": "2",
"status": "2",
"biding_id": "19",
"end_time": "1476088909",
"customer": "张三",
"phone_num": "15507898841",
"desc": "李四的客户",
"city": "深圳",
"region": "南山区",
"company": "李四公司",
"measure": "150",
"price": "9999",
"start_time": "1476088849"
}
]
}
<<<
error
{
"info": "查无数据!",
"num": 0,
"state": 2,
"data": ""
}
+++
##完成的客户
域名/index.php/App/User/completeCustomer/token/当前用户的TOKEN
+++
*page# 当前页数
*num# 每页显示的数量(默认为10)
<<<
success
{
"info": "查询成功!", //提示语
"num": 10, //每页返回的数量
"state": 1, //返回状态 1为获取成功,2为没有数据,3为当前页数不可为空
"data": [
{
"_id": "2",
"user_id": "21",
"customer_id": "2",
"status": "2",
"biding_id": "19",
"end_time": "1476088909",
"customer": "张三",
"phone_num": "15507898841",
"desc": "李四的客户",
"city": "深圳",
"region": "南山区",
"company": "李四公司",
"measure": "150",
"price": "9999",
"start_time": "1476088849"
}
]
}
<<<
error
{
"info": "查无数据!",
"num": 0,
"state": 2,
"data": ""
}
+++
##消息记录
域名/index.php/App/Index/getNews/token/当前用户的TOKEN
+++
*page# 当前页数
*num# 每页显示的数量(默认为10)
<<<
success
{
"info": "查询成功!",
"num": 1,
"state": 1, //返回状态 1为获取成功,2为没有数据,3为当前页数不可为空
"data": [
{
"_id": "5",
"user_id": "69",
"title": "通知栏标题!",
"content": "推送消息内容",
"text": "通知栏的内容",
"time": "1477968439"
}
]
}
<<<
error
{
"info": "查无数据!",
"num": 1,
"state": 1, //返回状态 1为获取成功,2为没有数据,3为当前页数不可为空
"data":""
}
+++