addMember.wxml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <page-meta page-style="{{ showArea || showSchool || showGrade || showClass ? 'overflow: hidden;' : '' }}" style="height: 100vh;">
  2. <view class="addMember">
  3. <navigation-bar title=""></navigation-bar>
  4. <view class="appBg"></view>
  5. <scroll-view scroll-y class="addMemberCon">
  6. <view class="labelCon">
  7. <view class="labelLeft">
  8. <image src="./images/label1.png"></image>
  9. <text>为了给您更好的服务,请认真填写</text>
  10. </view>
  11. <image class="labelRight" src="./images/label2.png"></image>
  12. </view>
  13. <view class="fromBox firstFromBox">
  14. <view class="topTit">个人信息</view>
  15. <view class="fromCon">
  16. <text class="fromTit">手机号码</text>
  17. <view class="fromIpt">
  18. <van-field maxlength="11" model:value="{{ phone }}" input-align="left" type="{{ 'number' }}" placeholder="请输入手机号码" border="{{ false }}" />
  19. </view>
  20. </view>
  21. <view class="fromCon">
  22. <text class="fromTit">学生姓名</text>
  23. <view class="fromIpt">
  24. <van-field maxlength="14" model:value="{{ name }}" input-align="left" placeholder="请输入学生姓名" border="{{ false }}" />
  25. </view>
  26. </view>
  27. <view class="fromCon">
  28. <text class="fromTit">学生性别</text>
  29. <view class="fromIpt genderIpt">
  30. <view class="gender {{gender==='1'?'active':''}}" bind:tap="onCheckGender" data-gender="1">
  31. <image src="{{ gender==='1'?'./images/radioAct.png':'./images/radio.png' }}" mode="" />
  32. <text>男生</text>
  33. </view>
  34. <view class="gender {{gender==='0'?'active':''}}" bind:tap="onCheckGender" data-gender="0">
  35. <image src="{{ gender==='0'?'./images/radioAct.png':'./images/radio.png' }}" mode="" />
  36. <text>女生</text>
  37. </view>
  38. </view>
  39. </view>
  40. </view>
  41. <view class="fromBox">
  42. <view class="topTit">学校信息</view>
  43. <view class="fromCon">
  44. <text class="fromTit">学校地区</text>
  45. <view class="fromIpt">
  46. <van-field placeholder="请选择学校地区" value="{{ provinceName + cityName + regionName}}" input-align="left" bind:tap="onShowAreaList" border="{{ false }}" is-link readonly />
  47. </view>
  48. </view>
  49. <view class="fromCon">
  50. <text class="fromTit">所在学校</text>
  51. <view class="fromIpt">
  52. <van-field placeholder="请选择学校" value="{{ schoolAreaName }}" input-align="left" bind:tap="onSelectSchool" border="{{ false }}" is-link readonly />
  53. </view>
  54. </view>
  55. <view class="fromCon">
  56. <text class="fromTit">年级班级</text>
  57. <view class="fromIpt">
  58. <van-field placeholder="请选择年级班级" value="{{ gradeName + className }}" input-align="left" bind:tap="onSelectGrade" border="{{ false }}" is-link readonly />
  59. </view>
  60. </view>
  61. </view>
  62. <view class="botBox"></view>
  63. </scroll-view>
  64. <view class="submitCon">
  65. <view class="subBtn" bind:tap="onSubmit">确认</view>
  66. </view>
  67. <!-- 地区 -->
  68. <van-popup round="{{true}}" lock-scroll="{{true}}" z-index="{{103}}" show="{{showArea}}" position="bottom" safe-area-inset-bottom="{{false}}" bind:close="onCloseAreaList">
  69. <van-area wx:if="{{showArea}}" areaList="{{areaList}}" visible-item-count="6" item-height="46" value="{{ regionCode || cityCode }}" bind:cancel="onCloseAreaList" bind:confirm="submitArea" />
  70. </van-popup>
  71. <!-- 学校 -->
  72. <van-popup round="{{true}}" lock-scroll="{{true}}" z-index="{{102}}" show="{{showSchool}}" position="bottom" safe-area-inset-bottom="{{false}}" bind:close="onCloseSchool">
  73. <block wx:if="{{showSchool}}">
  74. <view class="toolbar-top">
  75. <view class="toolbar-cancel" bind:tap="onCloseSchool">取消</view>
  76. <view class="toolbar-confirm" bind:tap="onSubmitSchool">确认</view>
  77. </view>
  78. <view class="areaListOpen" bind:tap="onShowAreaList">
  79. <text>{{ provinceName + " " + cityName + " " + regionName}}</text>
  80. <image src="./images/chevron-down.png" />
  81. </view>
  82. <view class="searchList">
  83. <van-search use-left-icon-slot use-action-slot show-action placeholder="请输入学校名称关键字" value="{{ searchName }}" bind:search="onSearch" bind:change="onSearchChange" bind:clear="onSearch">
  84. <image slot="left-icon" src="./images/icon-search.png" class="icon-search" />
  85. <view slot="action" class="searchBtn" bind:tap="onSearch">搜索</view>
  86. </van-search>
  87. </view>
  88. <van-picker wx:if="{{schoolAreaList.length}}" loading="{{ schoolLoading }}" columns="{{ schoolAreaList }}" bind:change="onChangeSchool" visible-item-count="6" default-index="{{ schoolAreaIndex }}">
  89. </van-picker>
  90. <view wx:else class="empty-box">
  91. <image src="https://oss.dayaedu.com/ktyq/1739278149891.png"></image>
  92. <view class="empty-text">暂无数据</view>
  93. </view>
  94. </block>
  95. </van-popup>
  96. <!-- 年级 -->
  97. <van-popup round="{{true}}" lock-scroll="{{true}}" z-index="{{102}}" show="{{showGrade}}" position="bottom" safe-area-inset-bottom="{{false}}" bind:close="onCloseGrade">
  98. <van-picker wx:if="{{ showGrade }}" columns="{{ gradeList }}" visible-item-count="6" show-toolbar bind:cancel="onCloseGrade" bind:confirm="onSubmitGrade" bind:change="onGradeChange">
  99. </van-picker>
  100. </van-popup>
  101. </view>
  102. </page-meta>