register.wxml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <view class="container">
  2. <view class="form-box">
  3. <view class="form-item">
  4. <input class="username" value="{{username}}" bindinput="bindUsernameInput" placeholder="用户名" auto-focus/>
  5. <image wx:if="{{ username.length > 0 }}" id="clear-username" class="clear" src="/static/images/clear_input.png" catchtap="clearInput"></image>
  6. </view>
  7. <view class="form-item">
  8. <input class="password" value="{{password}}" password bindinput="bindPasswordInput" placeholder="密码" />
  9. <image class="clear" id="clear-password" wx:if="{{ password.length > 0 }}" src="/static/images/clear_input.png" catchtap="clearInput"></image>
  10. </view>
  11. <view class="form-item">
  12. <input class="password" value="{{confirmPassword}}" password bindinput="bindConfirmPasswordInput" placeholder="确认密码" />
  13. <image class="clear" id="clear-confirm-password" wx:if="{{ confirmPassword.length > 0 }}" src="/static/images/clear_input.png" catchtap="clearInput"></image>
  14. </view>
  15. <view class="form-item">
  16. <input class="mobile" value="{{mobile}}" bindinput="bindMobileInput" placeholder="手机号" />
  17. <image wx:if="{{ mobile.length > 0 }}" id="clear-mobile" class="clear" src="/static/images/clear_input.png" catchtap="clearInput"></image>
  18. </view>
  19. <view class="form-item-code">
  20. <view class="form-item code-item">
  21. <input class="code" value="{{code}}" bindinput="bindCodeInput" placeholder="验证码" />
  22. <image class="clear" id="clear-code" wx:if="{{ code.length > 0 }}" src="/static/images/clear_input.png" catchtap="clearInput"></image>
  23. </view>
  24. <view class="code-btn" bindtap="sendCode">获取验证码</view>
  25. </view>
  26. <button type="primary" class="register-btn" bindtap="startRegister">注册</button>
  27. </view>
  28. </view>