index.wxml 1.1 KB

1234567891011121314151617181920212223242526
  1. <wxs module="enumItem" src="../../../wxs/enumItem.wxs"></wxs>
  2. <view class="card-image-container">
  3. <image src="/assets/logo2.png" style="width:175px;height:147px"></image>
  4. </view>
  5. <form bindsubmit='formSubmit'>
  6. <i-panel title="用户名">
  7. <i-input value="{{ userName }}" name="userName" maxlength="-1" />
  8. </i-panel>
  9. <i-panel title="密码">
  10. <i-input value="{{ password }}" name="password" maxlength="-1" />
  11. </i-panel>
  12. <i-panel title="年级">
  13. <picker mode="selector" range="{{ enumItem.state.user.levelEnum }}" range-key="{{'value'}}" value="{{levelIndex}}" bindchange="bindLevelChange">
  14. <view class="i-cell i-input exam-pick-input">{{ enumItem.state.user.levelEnum[levelIndex].value }}</view>
  15. <i-input value="{{enumItem.state.user.levelEnum[levelIndex].key}}" maxlength="-1" name="userLevel" class="exam-hidden" />
  16. </picker>
  17. </i-panel>
  18. <view>
  19. <button class="i-btn i-btn- i-btn-primary i-btn-square" form-type='submit'>注册</button>
  20. </view>
  21. <i-spin size="large" fix wx:if="{{ spinShow }}"></i-spin>
  22. </form>
  23. <i-message id="message" />