作者:小天努力學java,原文地址
注冊頁面的實現
需求:用戶點擊注冊按鈕,進入注冊頁面,輸入注冊信息,完成注冊動作。
動畫演示:
代碼實現:
register.wxml
-
<!--注冊第一步-->
-
<view wx:if="{{step == 1}}" class="container">
-
<view class="field">
-
<input name="cellphone" bindinput="input_acceptVal" placeholder-class="placeholder" placeholder="輸入手機號/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">如手機獲取不到驗證碼,請用E-mail注冊</view>
|