[TOC]
## 设置会员设置的内容
~~~[api]
post:/member/setmember
*string:id=默认值#会员id
*title#修改字段name,phone,sex,birthday
<<<
success
{
"code": 0,
"info": "成功",
"data": true
}
<<<
error
~~~
## 未分配的会员数量
~~~[api]
post:/member/unmember
<<<
success
{
"code": 0,
"info": "成功",
"data": 432
}
<<<
error
~~~
## 编辑信息
~~~[api]
post:/member/edit
*int:id=1#会员Id
int:phone=18864002744#会员手机号
string:member_name= #会员名
string:birthday= 2018-11-11 #会员生日
int:sex= 0 #会员性别 0 未知,1男,2女
int:sn= #身份证号
int:user_id= #销售顾问id
int:level= #会员等级id
<<<
success
{
"code": 0,
"info": "success",
"data":
{
"id": 1
}
}
~~~
## 会员信息
~~~[api]
post:/member/get
*int:id=默认值1000#会员Id
<<<
success
{
"code": 0,
"info": "成功",
"data":{
"id": 1,
"phone": "",
"member_name": "",
"member_card": "",
"score": 0,
"total_score": 0,
"join_date": "1970-01-01",
"user_id": 1000,
"sex": 0,
"birthday": "1970-01-01",
"set_sex": 0,
"set_birthday": "1970-01-01",
"set_name": "",
"set_sn": "",
"set_phone": "",
"set_age": 0,
"age": 0,
"sn": "",
"flag": 0,
"flag_time": 0,
"wechat_user_id": 51,
"wechat_card": 0,
"state": 1,
"level":{
"id": 1,
"name": "abc",
"url": "abc"
},
"balance": 0,
"wechat_user":{
"id": 51,
"is_follow": 1,
"nickname": "再见理想Will",
"headimgurl": "http://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTIk047gYXoEzgfB92YpNWcHDRiaxXKzKmZX1VRk3iaK6TmMVbFSsfXN57pHA4uLCFOZcgicBE0icicialPQ/132",
"openid": "oD18K1DmcFnXiYlVdFZHDfAJxwUo",
"create_time": "2018-10-23 16:49:20",
"last_time": 1540284560,
"active_time": 1540284560,
"card_code": ""
},
"members_tags":[
{
"id": 1,
"tag": 1,
"member_id": 1
}
],
"user":{
"id": 1000,
"name": "_ADMIN_NAME",
"code": "",
"token": "",
"phone": "13068685200",
"identity": "",
"entry_date": "2019-01-01",
"leave_date": "2099-01-01",
"shop_id": 1,
"state": 1,
"wechat_user_id": 1
}
}
}
<<<
error
{
"code": 7700,
"info": "会员不存在",
"data": null
}
{
"code": 401,
"info":{
"id": "id必须是数字"
},
"data": null
}
~~~
## 会员列表
~~~[api]
post:/member/list
*int:page=1#页码
*int:limit=10#每页显示个数
string:key=id#排序字段名
string:order=normal#排序方式
int:level=1#等级id
int:wechat=0#状态筛选 0未绑定 1已绑定
int:tag=0#标签id
<<<
success
{
"code": 0,
"info": "成功",
"data":{
"count": 2,
"list": [
{
"id": 1,
"phone": "",
"member_name": "",
"member_card": "",
"score": 0,
"total_score": 0,
"join_date": "1970-01-01",
"user_id": 1000,
"sex": 0,
"birthday": "1970-01-01",
"sn": "",
"flag": 0,
"flag_time": 0,
"wechat_user_id": 51,
"wechat_card": 0,
"state": 1,
"level":{
"id": 1,
"name": "abc",
"url": "abc"
},
"balance": 0,
"wechat_user":{
"id": 51,
"is_follow": 1,
"nickname": "再见理想Will",
"headimgurl": "http://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTIk047gYXoEzgfB92YpNWcHDRiaxXKzKmZX1VRk3iaK6TmMVbFSsfXN57pHA4uLCFOZcgicBE0icicialPQ/132",
"openid": "oD18K1DmcFnXiYlVdFZHDfAJxwUo",
"create_time": "2018-10-23 16:49:20",
"last_time": 1540284560,
"active_time": 1540284560,
"card_code": ""
},
"members_tags":[
{
"id": 1,
"tag": 1,
"member_id": 1
}
],
"user":{
"id": 1000,
"name": "_ADMIN_NAME",
"code": "",
"token": "",
"phone": "13068685200",
"identity": "",
"entry_date": "2019-01-01",
"leave_date": "2099-01-01",
"shop_id": 1,
"state": 1,
"wechat_user_id": 1
}
}
]
}
}
<<<
error
~~~
## 添加会员
~~~[api]
post:/member/add
*string:member_name=张三#会员姓名
string:member_card=123321#手机号、会员卡号,至少填写一个!
string:phone=18211112222#联系电话 11位
string:sn=110101199003078195#请输入正确的身份证号
string:join_date=2018-10-22#时间
int:sex=1#0-未知 1-男 2-女
string:birthday=2018-10-22#生日
int:level=0#会员等级
<<<
success
{
"code": 0,
"info": "成功",
"data":{
"id": 1,
"phone": "",
"member_name": "",
"member_card": "",
"score": 0,
"total_score": 0,
"join_date": "1970-01-01",
"user_id": 1000,
"sex": 0,
"birthday": "1970-01-01",
"sn": "",
"flag": 0,
"flag_time": 0,
"wechat_user_id": 51,
"wechat_card": 0,
"state": 1,
"level":{
"id": 1,
"name": "abc",
"url": "abc"
},
"balance": 0,
"wechat_user":{
"id": 51,
"is_follow": 1,
"nickname": "再见理想Will",
"headimgurl": "http://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTIk047gYXoEzgfB92YpNWcHDRiaxXKzKmZX1VRk3iaK6TmMVbFSsfXN57pHA4uLCFOZcgicBE0icicialPQ/132",
"openid": "oD18K1DmcFnXiYlVdFZHDfAJxwUo",
"create_time": "2018-10-23 16:49:20",
"last_time": 1540284560,
"active_time": 1540284560,
"card_code": ""
},
"members_tags":[
{
"id": 1,
"tag": 1,
"member_id": 1
}
],
"user":{
"id": 1000,
"name": "_ADMIN_NAME",
"code": "",
"token": "",
"phone": "13068685200",
"identity": "",
"entry_date": "2019-01-01",
"leave_date": "2099-01-01",
"shop_id": 1,
"state": 1,
"wechat_user_id": 1
}
}
}
<<<
error
~~~
## 会员查询--销售下单
~~~[api]
post:/member/fetch
*string:phone=13311112222#会员卡号或手机号
<<<
success
{
"code": 0,
"info": "成功",
"data":{
"id": 1,
"phone": "",
"member_name": "",
"member_card": "",
"score": 0,
"total_score": 0,
"join_date": "1970-01-01",
"user_id": 1000,
"sex": 0,
"birthday": "1970-01-01",
"sn": "",
"flag": 0,
"flag_time": 0,
"wechat_user_id": 51,
"wechat_card": 0,
"state": 1,
"level":{
"id": 1,
"name": "abc",
"url": "abc"
},
"balance": 0,
"wechat_user":{
"id": 51,
"is_follow": 1,
"nickname": "再见理想Will",
"headimgurl": "http://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTIk047gYXoEzgfB92YpNWcHDRiaxXKzKmZX1VRk3iaK6TmMVbFSsfXN57pHA4uLCFOZcgicBE0icicialPQ/132",
"openid": "oD18K1DmcFnXiYlVdFZHDfAJxwUo",
"create_time": "2018-10-23 16:49:20",
"last_time": 1540284560,
"active_time": 1540284560,
"card_code": ""
},
"members_tags":[
{
"id": 1,
"tag": 1,
"member_id": 1
}
],
"user":{
"id": 1000,
"name": "_ADMIN_NAME",
"code": "",
"token": "",
"phone": "13068685200",
"identity": "",
"entry_date": "2019-01-01",
"leave_date": "2099-01-01",
"shop_id": 1,
"state": 1,
"wechat_user_id": 1
}
}
}
<<<
error
~~~
## 修改会员等级
~~~[api]
post:/member/editmemberlevel
*int:member_id=默认值#会员ID
*int:level_id=默认值#会员等级ID
*string:json=[{"coupon_id":2,"num":5}]#[{"coupon_id":2,"num":5}]
<<<
success
{
"code": 0,
"info": "成功",
"data": true
}
<<<
error
~~~
- 全局说明
- 微信相关接口
- 首页
- 系统消息
- 消息中心
- 基础设置
- 门店管理
- 员工管理
- 职务管理
- 会员
- 标签管理
- 会员管理
- 会员等级
- 会员等级权益
- 会员权益核销
- 聊天记录
- 会员等级电子券
- 商品
- 商品分类
- 商品品牌
- 商品管理
- 订单
- 设置
- 生日提醒
- 积分规则
- 客服消息设置
- 群发消息
- 会员/售后待办
- 关键字回复
- 自定义菜单
- 会员卡号规则设置
- 会员卡ID设置
- 客服经理
- 小算盘设置
- 个人中心
- 员工我的待办列表
- 跟进
- 会员动态
- 会员积分/余额
- 订单记录列表
- 个人中心详情页面
- 会员待办列表
- 会员电子券
- 客户平台
- 会员聊天
- 我的顾问
- 客户订单
- 客户中心
- 客户电子券
- 我的动态
- 会员积分/余额
- 统计
- 会员统计
- 会员发展统计
- 销售统计
- 待办统计
- 电子券统计
- 会员等级变更统计
- 积分统计
- 余额统计
- 电子券核销统计
- 权限管理
- 员工权限
- 电子券
- 订单满额
- 订单电子券
- 商品组电子券
- 群发电子券
- 一对一投放
- 商品组
- 商品组商品
- 会员分配
- PC版相关
- 导出相关
- 开通流程页面
- 合作商家
- 商家相关
- 引流券相关
- 合作商家
- 领取功能
- 打印设置
- 小算盘
- e学堂
- 获取Openid