register.wxml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <!--pages/register/register.wxml-->
  2. <view class="container">
  3. <view class="register-box">
  4. <view class="title">用户注册</view>
  5. <view class="form">
  6. <view class="input-group">
  7. <input
  8. class="input"
  9. type="text"
  10. placeholder="用户名(必填)"
  11. value="{{username}}"
  12. bindinput="onUsernameInput"
  13. />
  14. </view>
  15. <view class="input-group">
  16. <input
  17. class="input"
  18. type="text"
  19. placeholder="昵称"
  20. value="{{nickname}}"
  21. bindinput="onNicknameInput"
  22. />
  23. </view>
  24. <view class="input-group">
  25. <input
  26. class="input"
  27. type="password"
  28. placeholder="密码(必填,至少6位)"
  29. value="{{password}}"
  30. bindinput="onPasswordInput"
  31. />
  32. </view>
  33. <view class="input-group">
  34. <input
  35. class="input"
  36. type="password"
  37. placeholder="确认密码"
  38. value="{{confirmPassword}}"
  39. bindinput="onConfirmPasswordInput"
  40. />
  41. </view>
  42. <view class="input-group">
  43. <input
  44. class="input"
  45. type="number"
  46. placeholder="手机号(选填)"
  47. value="{{phone}}"
  48. bindinput="onPhoneInput"
  49. />
  50. </view>
  51. <view class="input-group">
  52. <input
  53. class="input"
  54. type="text"
  55. placeholder="邮箱(选填)"
  56. value="{{email}}"
  57. bindinput="onEmailInput"
  58. />
  59. </view>
  60. <button
  61. class="register-btn"
  62. bindtap="handleRegister"
  63. loading="{{loading}}"
  64. disabled="{{loading}}"
  65. >
  66. 注册
  67. </button>
  68. </view>
  69. </view>
  70. </view>