简要描述:
请求域名:
请求URL:
GET/route=member.register.register-page
参数:
返回示例:
正确时返回:
{
"result": 1,
"msg": "",
"data": {
"getInviteCode": {
"status": 1,
"variable": null,
"json": {
"status": 1,
"required": 1,
"country_code": "0",
"invitation_code": "",
"default_invite": "21"
}
},
"title1": "欢迎来到商城",
"title2": "登录尽享各种优惠权益!",
"is_password": "1",
"top_img": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2022/04/b6832971da780bc9b61142fd3805b286.jpeg",
"get_captcha": {
"captcha": {
"status": "0"
}
},
"register_basic_info": [
{
"name": "姓名",
"field": "name",
"must": 0
},
{
"name": "性别",
"field": "sex",
"must": 1
},
{
"name": "详细地址",
"field": "address",
"must": 0
}
],
"fixed_diy_field": [
{
"name": "12333",
"field": "fixed_diy_field",
"must": 1
}
],
"diy_field": {
"form_edit": 0,
"form_open": 0,
"form": [
{
"name": "cs1",
"field": "cs1",
"must": 1
},
{
"name": "cs2",
"field": "cs2",
"must": 1
},
{
"name": "产生",
"field": "chansheng",
"must": 1
},
{
"name": "cs3",
"field": "cs3",
"must": 1
}
]
},
"diy_form": {
"status": 1,
"variable": null,
"json": {
"id": 21,
"uniacid": 1,
"title": "姓名",
"fields": {
"diyzhanghao": {
"data_type": "88",
"tp_name": "账号",
"tp_must": 1,
"placeholder": ""
},
"diyxuanzeshengshi": {
"data_type": "9",
"tp_name": "选择省市",
"tp_must": 0,
"tp_area": 0
},
"diyshengshiqu": {
"data_type": "9",
"tp_name": "省市区",
"tp_must": 0,
"tp_area": 1
}
},
"status": 1,
"success": "0",
"submit_number": 0,
"created_at": null,
"updated_at": "2022-05-13 15:36:53",
"deleted_at": null,
"thumb": "",
"description": "",
"share_description": "",
"form_type": [
{
"tp_title":diyzhanghao":
"data_type": "88",
"tp_name": "账号",
"tp_must": 1,
"placeholder": ""
},{
"tp_title":"diyxuanzeshengshi"
"data_type": "9",
"tp_name": "选择省市",
"tp_must": 0,
"tp_area": 0
},{
"tp_title":"diyshengshiqu"
"data_type": "9",
"tp_name": "省市区",
"tp_must": 0,
"tp_area": 1
}
]
}
},
"agreement": {
"status": 1,
"title": "注册协议1",
"default_tick": 1
}
}
}
错误时返回:
{
"result": 0,
"msg": "获取失败"
}
返回参数说明:
参数名 |
类型 |
说明 |
title1 |
string |
主标题 |
title2 |
string |
副标题 |
is_password |
int |
是否需要密码,1是0否 |
top_img |
string |
顶部图片 |
register_basic_info |
array |
基础字段信息 |
fixed_diy_field |
array |
自定义字段信息(固定) |
diy_field |
array |
自定义字段信息 |
diy_form |
array |
按之前接口格式返回,自定义表单信息 |
get_captcha |
array |
按之前的接口格式返回的,图形验证码相关数据 |
getInviteCode |
array |
按之前的接口格式返回的,邀请码相关数据 |
agreement |
array |
注册协议内容 |
register_basic_info 返回参数说明:
参数名 |
类型 |
说明 |
name |
string |
字段名称 |
field |
string |
字段参数名 |
must |
int |
是否必填,1是0否 |
show |
bool |
是否显示,true显示,false不显示 |
fixed_diy_field 返回参数说明:
参数名 |
类型 |
说明 |
name |
string |
字段名称 |
field |
string |
字段参数名 |
must |
int |
是否必填,1是0否 |
diy_field 返回参数说明:
参数名 |
类型 |
说明 |
form_edit |
int |
前端禁止编辑,1禁止0否 |
form_open |
int |
自定义必填开启,1开0关 |
form.name |
string |
字段名称 |
form.field |
string |
字段参数名 |
agreement 返回参数说明:
参数名 |
类型 |
说明 |
status |
int |
协议是否开启,1开0关 |
title |
title |
协议名称 |
default_tick |
int |
自动勾选,1是0否 |
content |
string |
协议内容 |
参数名 |
类型 |
说明 |
description |
string |
课程介绍 |
front_show |
int |
前端是否可以查看用户表单,1是o否 |
fields |
array |
表单内容 |
form_type |
array |
内容和字段fields一样 |
resubmit |
int |
前端是否显示再次提交,1是0否 |
success |
string |
提交成功提示文本 |
submit_number |
string |
允许提交次数 |
title |
string |
表单标题 |
thumb |
string |
分享图片 |
status |
int |
状态 |
参数名 |
类型 |
说明 |
字段名 |
array |
命名不固定,根据后端设置而定,比如微信号就是diyweixinhao,姓名是diyxingming以此类推 |
参数名 |
类型 |
说明 |
data_type |
string |
类型0单行文本,1多行文本,2下拉选项,3多选框,4单选框,5图片,7日期,9城市,88账号,99密码 |
tp_must |
int |
是否必填 |
tp_name |
string |
字段名称 |
tp_text |
array |
字段内容,多选框,下拉框和单选会返回,如['1','2','3']数组中的元素为选项值 |
default_time |
string |
默认日期,只有日期会返回 |
default_time_type |
int |
默认日期类型,1当天日期,2指定日期,只有日期会返回 |
tp_must |
int |
图片最大数,只有图片会返回 |
placeholder |
int |
默认内容 |
get_captcha 返回参数说明:
参数名 |
类型 |
说明 |
captcha |
array |
验证码信息 |
captcha 返回参数说明:
参数名 |
类型 |
说明 |
img |
string |
验证码图片 |
status |
string |
是否有启用验证码 |
getInviteCode.json 返回参数说明:
参数名 |
类型 |
说明 |
country_code |
string |
是否需要输入国际区号 |
default_invite |
string |
默认邀请码 |
invitation_code |
string |
邀请码 |
required |
int |
是否必填 |
status |
int |
是否填入默认邀请码 |
备注: