addMember.wxml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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="fromCon">
  15. <text class="fromTit">联系电话</text>
  16. <view class="fromIpt">
  17. <van-field maxlength="11" model:value="{{ phone }}" input-align="right" type="{{ 'number' }}" placeholder="请输入联系电话" border="{{ false }}" />
  18. </view>
  19. </view>
  20. <view class="fromCon">
  21. <text class="fromTit">学生姓名</text>
  22. <view class="fromIpt">
  23. <van-field maxlength="14" model:value="{{ name }}" input-align="right" placeholder="请输入学生姓名" border="{{ false }}" />
  24. </view>
  25. </view>
  26. <view class="fromCon">
  27. <text class="fromTit">学生性别</text>
  28. <view class="fromIpt genderIpt">
  29. <view class="gender {{gender==='1'?'active':''}}" bind:tap="onCheckGender" data-gender="1">男</view>
  30. <view class="gender {{gender==='0'?'active':''}}" bind:tap="onCheckGender" data-gender="0">女</view>
  31. </view>
  32. </view>
  33. </view>
  34. <view class="fromBox">
  35. <view class="fromCon">
  36. <text class="fromTit">学校地区</text>
  37. <view class="fromIpt">
  38. <van-field placeholder="请选择学校地区" value="{{ provinceName + cityName + regionName}}" input-align="right" bind:tap="onShowAreaList" border="{{ false }}" is-link readonly />
  39. </view>
  40. </view>
  41. <view class="fromCon">
  42. <text class="fromTit">所在学校</text>
  43. <view class="fromIpt">
  44. <van-field placeholder="请选择学校" value="{{ schoolAreaName }}" input-align="right" bind:tap="onSelectSchool" border="{{ false }}" is-link readonly />
  45. </view>
  46. </view>
  47. <view class="fromCon">
  48. <text class="fromTit">所在年级</text>
  49. <view class="fromIpt">
  50. <van-field placeholder="请选择年级" value="{{ gradeName }}" input-align="right" bind:tap="onSelectGrade" border="{{ false }}" is-link readonly />
  51. </view>
  52. </view>
  53. <view class="fromCon">
  54. <text class="fromTit">所在班级</text>
  55. <view class="fromIpt">
  56. <van-field placeholder="请选择班级" value="{{ className }}" input-align="right" bind:tap="onSelectClass" border="{{ false }}" is-link readonly />
  57. </view>
  58. </view>
  59. </view>
  60. <view class="botBox"></view>
  61. </scroll-view>
  62. <view class="submitCon">
  63. <view class="subBtn" bind:tap="onSubmit">保存</view>
  64. </view>
  65. <!-- 地区 -->
  66. <van-popup round="{{true}}" lock-scroll="{{true}}" z-index="{{103}}" show="{{showArea}}" position="bottom" safe-area-inset-bottom="{{false}}" bind:close="onCloseAreaList">
  67. <van-area wx:if="{{showArea}}" areaList="{{areaList}}" visible-item-count="6" item-height="46" value="{{ regionCode || cityCode }}" bind:cancel="onCloseAreaList" bind:confirm="submitArea" />
  68. </van-popup>
  69. <!-- 学校 -->
  70. <van-popup round="{{true}}" lock-scroll="{{true}}" z-index="{{102}}" show="{{showSchool}}" position="bottom" safe-area-inset-bottom="{{false}}" bind:close="onCloseSchool">
  71. <block wx:if="{{showSchool}}">
  72. <view class="toolbar-top">
  73. <view class="toolbar-cancel" bind:tap="onCloseSchool">取消</view>
  74. <view class="toolbar-confirm" bind:tap="onSubmitSchool">确认</view>
  75. </view>
  76. <view class="areaListOpen" bind:tap="onShowAreaList">
  77. <text>{{ provinceName + " " + cityName + " " + regionName}}</text>
  78. <image src="./images/chevron-down.png" />
  79. </view>
  80. <view class="searchList">
  81. <van-search use-left-icon-slot use-action-slot show-action placeholder="请输入学校名称关键字" value="{{ searchName }}" bind:search="onSearch" bind:change="onSearchChange" bind:clear="onSearch">
  82. <image slot="left-icon" src="./images/icon-search.png" class="icon-search" />
  83. <view slot="action" class="searchBtn" bind:tap="onSearch">搜索</view>
  84. </van-search>
  85. </view>
  86. <van-picker id="schoolAreaId" wx:if="{{schoolAreaList.length}}" loading="{{ schoolLoading }}" columns="{{ schoolAreaList }}" visible-item-count="6" default-index="{{ schoolAreaIndex }}">
  87. </van-picker>
  88. <view wx:else class="empty-box">
  89. <image src="https://oss.dayaedu.com/ktyq/1739278149891.png"></image>
  90. <view class="empty-text">暂无数据</view>
  91. </view>
  92. </block>
  93. </van-popup>
  94. <!-- 年级 -->
  95. <van-popup round="{{true}}" lock-scroll="{{true}}" z-index="{{102}}" show="{{showGrade}}" position="bottom" safe-area-inset-bottom="{{false}}" bind:close="onCloseGrade">
  96. <van-picker wx:if="{{ showGrade }}" columns="{{ gradeList }}" visible-item-count="6" show-toolbar bind:cancel="onCloseGrade" bind:confirm="onSubmitGrade" default-index="{{ gradeIndex }}">
  97. </van-picker>
  98. </van-popup>
  99. <!-- 班级 -->
  100. <van-popup round="{{true}}" lock-scroll="{{true}}" z-index="{{102}}" show="{{showClass}}" position="bottom" safe-area-inset-bottom="{{false}}" bind:close="onCloseClass">
  101. <van-picker wx:if="{{ showClass }}" columns="{{ classList }}" visible-item-count="6" show-toolbar bind:cancel="onCloseClass" bind:confirm="onSubmitClass" default-index="{{ classIndex }}">
  102. </van-picker>
  103. </van-popup>
  104. </view>
  105. </page-meta>