register.wxml 1.5 KB

123456789101112131415161718192021222324252627282930
  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-code" >
  16. <view class="form-item code-item">
  17. <input class="code" value="{{code}}" bindinput="bindCodeInput" placeholder="验证码"/>
  18. <image class="clear" id="clear-code" wx:if="{{ code.length > 0 }}" src="/static/images/clear_input.png" catchtap="clearInput"></image>
  19. </view>
  20. <image class="code-img" src="https://dl.reg.163.com/cp?pd=yanxuan_web&pkid=SkeBZeG&random=1489903563234"></image>
  21. </view>
  22. <button type="default" class="login-btn" bindtap="startRegister">注册</button>
  23. </view>
  24. </view>