简要描述:
- 获取用户基本信息
请求URL:
POST/wapapi/member/getMemberBaseInfo
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|
返回示例:
正确时返回:
{
"code": 1,
"message": "获取成功",
"data":{
"avatar": "https://pic.vslai.com.cn/upload/26/avator/1543820405.jpeg",
"real_name": "",
"sex": 0,
"user_name": "我在啊",
"user_tel": "18539772378",
"nick_name": "我在这里呢",
"real_name": "",
"birthday": 0,
"qq": "",
"province_id": 0,
"city_id": 0,
"district_id": 0,
"province_name": "",
"city_name": "",
"district_name": "",
"area_code": "",
"custom_person": [
{
"tag": "input",
"name": "单行文本",
"label": "昵称",
"required": false,
"value": "dddd",
"placeholder": "",
"default": ""
},
{
"tag": "input",
"name": "单行文本",
"label": "微信号",
"required": true,
"value": "asdd",
"placeholder": "",
"default": ""
},
{
"tag": "textarea",
"name": "多行文本",
"label": "留言",
"required": false,
"value": "dddd",
"default": ""
},
{
"tag": "select",
"name": "下拉框",
"label": "下拉框",
"required": false,
"value": "选项一",
"options": "选项一\n选项二"
},
{
"tag": "checkbox",
"name": "多选框",
"label": "爱好",
"required": false,
"value": [
"足球",
"篮球",
"羽毛球"
],
"options": "篮球\n足球\n羽毛球"
},
{
"tag": "radio",
"name": "单选框",
"label": "性别",
"required": false,
"value": "保密",
"options": "男\n女\n保密"
},
{
"tag": "img",
"name": "图片",
"label": "头像",
"required": false,
"value": [],
"max": 1
},
{
"tag": "date",
"name": "日期",
"label": "生日",
"required": false,
"value": 1544688901,
"type": 0,
"default": ""
},
{
"tag": "area",
"name": "城市",
"label": "地区",
"required": false,
"value": {
"id": [
10
],
"text": "江苏省",
"code": "100000"
},
"type": 1
}
],//自定义表单内容已提交的内容
"custom_data": [],//自定义表单
}
}
返回参数说明:
参数名 | 类型 | 说明 | |
---|---|---|---|
avatar | string | 头像 | |
user_name | string | 用户名,如果用户名不为空,则不能修改 | |
user_tel | string | 用户手机号 | |
nick_name | string | 昵称 | |
real_name | string | 真实姓名 | |
sex | string | 性别 | 1为男2为女0为保密 |
birthday | string | 生日 | |
user_qq | string | 用户qq | |
province_id | string | 省份id | |
city_id | string | 市id | |
district_id | string | 区id | |
province_name | string | 省名称 | |
city_name | string | 市名称 | |
district_name | string | 区名称 | |
area_code | string | wap端 | |
custom_person | string | 已提交的自定义表单内容 | |
custom_data | string | 自定义表单 | 存在自定义表单只显示自定义表单数据、用户名和昵称和真实姓名 |
备注:
- 更多返回错误代码请看首页的错误代码描述