index.wxml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <!-- 自定义顶部栏 -->
  2. <block wx:if="{{showNav}}">
  3. <view class="nav-bar" style="height:{{navBarHeight}}px;">
  4. <view class="view" style="height:{{menuHeight}}px;top:{{menuTop}}px;">
  5. <view class="selectGrade" bindtap="showGrade">{{userInfo.gradeName}}</view>
  6. <view class="title">{{title}}</view>
  7. </view>
  8. </view>
  9. <!--
  10. 内容区域:
  11. 自定义顶部栏用的fixed定位,会遮盖到下面内容,注意设置好间距
  12. -->
  13. <view class="content" style="margin-top:{{navBarHeight}}px;"></view>
  14. <view class="headerBg" style="top:{{navBarHeight-2}}px;"></view>
  15. </block>
  16. <view wx:if="{{isGradeShow}}" class="gradeContainer" catchtouchmove='true' bindtap="closeGrade">
  17. <view class="gradeBox zoomIn" catchtap="selectGrade">
  18. <view class="title">请选择年级</view>
  19. <view class="content">
  20. <view class="grade oneRow {{temporaryGrade=='PRESCHOOL'?'check':''}}" data-code="PRESCHOOL">学前班</view>
  21. </view>
  22. <view class="content">
  23. <view class="grade {{temporaryGrade=='PRIMARY_FIRST_GRADE'?'check':''}}" data-code="PRIMARY_FIRST_GRADE">一年级
  24. </view>
  25. <view class="grade {{temporaryGrade=='PRIMARY_SECOND_GRADE'?'check':''}}" data-code="PRIMARY_SECOND_GRADE">
  26. 二年级
  27. </view>
  28. </view>
  29. <view class="content">
  30. <view class="grade {{temporaryGrade=='PRIMARY_THREE_GRADE'?'check':''}}" data-code="PRIMARY_THREE_GRADE">三年级
  31. </view>
  32. <view class="grade {{temporaryGrade=='PRIMARY_SENIOR_GRADE'?'check':''}}" data-code="PRIMARY_SENIOR_GRADE">
  33. 四年级
  34. </view>
  35. </view>
  36. <view class="content">
  37. <view class="grade {{temporaryGrade=='PRIMARY_FIVE_GRADE'?'check':''}}" data-code="PRIMARY_FIVE_GRADE">五年级
  38. </view>
  39. <view class="grade {{temporaryGrade=='PRIMARY_SIX_GRADE'?'check':''}}" data-code="PRIMARY_SIX_GRADE">
  40. 六年级
  41. </view>
  42. </view>
  43. <view class="submitBox">
  44. <button class="resetBtn submit" bindtap="changeGrade">确定</button>
  45. </view>
  46. </view>
  47. </view>
  48. <!-- #if ANDROID -->
  49. <view class="androidMask" wx:if="{{androidMask}}" bind:tap="toAndroidLogin"></view>
  50. <!-- #endif -->
  51. <privacy-popup bind:agree="agree"></privacy-popup>