作者:小天努力學(xué)java,原文地址
注冊(cè)頁(yè)面的實(shí)現(xiàn)
需求:用戶點(diǎn)擊注冊(cè)按鈕,進(jìn)入注冊(cè)頁(yè)面,輸入注冊(cè)信息,完成注冊(cè)動(dòng)作。
動(dòng)畫演示:
代碼實(shí)現(xiàn):
register.wxml
-
<!--注冊(cè)第一步-->
-
<view wx:if="{{step == 1}}" class="container">
-
<view class="field">
-
<input name="cellphone" bindinput="input_acceptVal" placeholder-class="placeholder" placeholder="輸入手機(jī)號(hào)/E-mail" />
-
</view>
-
<view class="field second_input inputCode">
-
<input class='identifyCode' type="number" bindinput="input_identifyCode" placeholder-class="placeholder" placeholder="輸入驗(yàn)證碼" />
-
<view class="view_identifyCode">
-
<button bindtap="reqIdentifyCode" disabled="{{identifyCode_btn}}" class="reqIdentifyCode">{{button_reqIdentifyCode}}</button>
-
</view>
-
</view>
-
<view class="text nextStep">如手機(jī)獲取不到驗(yàn)證碼,請(qǐng)用E-mail注冊(cè)</view>
|