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