會員注冊語法說明
更新時間:2019-12-09
一、使用場景:
會員可以注冊,以查看詢盤記錄和企業(yè)的回復信息
二、使用方法:
用戶名信息驗證→密碼信息驗證→短信驗證碼驗證→提交表單
頁面地址:/userreg.html
1. 驗證手機號是否合法
①說明:必須驗證手機號碼是否被注冊過,是否符合手機號碼的格式:11位數(shù)字,符合運營商格式
②用法:
/account/register/checkaccount?account=(此為用戶的輸入內(nèi)容) ?//手機號碼提交地址
account ? ? ? ? ? ? ? ? ? ? ? ? ?//input框手機號name值
2. 密碼信息驗證
①說明:密碼格式,8~13位數(shù)字或字母
②用法: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>