企业微信服务商
当前位置:首页文档模板语法会员注册语法说明

会员注册语法说明

更新时间:2019-12-09

一、使用场景:

会员可以注册,以查看询盘记录和企业的回复信息
二、使用方法:

用户名信息验证→密码信息验证→短信验证码验证→提交表单

页面地址:/userreg.html

1. 验证手机号是否合法
①说明:必须验证手机号码是否被注册过,是否符合手机号码的格式:11位数字,符合运营商格式
②用法:
/account/register/checkaccount?account=(此为用户的输入内容)  //手机号码提交地址
account                          //input框手机号name值
2. 密码信息验证
①说明:密码格式,8~13位数字或字母
②用法:password                 //input框密码name值
3. 获取短信验证码
①说明:获取验证码时必须验证手机号码是否填写,否则无法获取
②用法:
/sendcode.html?type=reg             //验证码获取地址
verifycode                                     //input框验证码name值
4. 提交表单
/reg.html             //请求地址
post                    //请求方式
5. 使用举例:
<form action="/reg.html" method="post">
     <input type="text"  name="account" >
     <input type="password"name="password" >
     <input type="text" name="verifycode" >
     <button  data-url="/sendcode.html?type=reg">获取验证码</button>
</form>