addMember.wxml 5.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <view class="addMember">
  2. <navigation-bar title=""></navigation-bar>
  3. <view class="appBg"></view>
  4. <scroll-view scroll-y class="addMemberCon">
  5. <view class="labelCon">
  6. <view class="labelLeft">
  7. <image src="./images/label1.png"></image>
  8. <text>为了提供更好的服务,请您耐心填写以下内容</text>
  9. </view>
  10. <image class="labelRight" src="./images/label2.png"></image>
  11. </view>
  12. <view class="fromBox firstFromBox">
  13. <view class="fromCon">
  14. <text class="fromTit">联系电话</text>
  15. <view class="fromIpt">
  16. <van-field model:value="{{ phone }}" input-align="right" type="{{ 'number' }}" placeholder="请输入联系电话" border="{{ false }}" />
  17. </view>
  18. </view>
  19. <view class="fromCon">
  20. <text class="fromTit">学生姓名</text>
  21. <view class="fromIpt">
  22. <van-field model:value="{{ name }}" input-align="right" placeholder="请输入学生姓名" border="{{ false }}" />
  23. </view>
  24. </view>
  25. <view class="fromCon">
  26. <text class="fromTit">学生性别</text>
  27. <view class="fromIpt genderIpt">
  28. <view class="gender {{gender==='1'?'active':''}}" bind:tap="onCheckGender" data-gender="1">男</view>
  29. <view class="gender {{gender==='0'?'active':''}}" bind:tap="onCheckGender" data-gender="0">女</view>
  30. </view>
  31. </view>
  32. </view>
  33. <view class="fromBox">
  34. <view class="fromCon">
  35. <text class="fromTit">学校地区</text>
  36. <view class="fromIpt">
  37. <van-field placeholder="请选择学校地区" value="{{ provinceName + cityName + regionName}}" input-align="right" bind:tap="onShowAreaList" border="{{ false }}" is-link readonly />
  38. </view>
  39. </view>
  40. <view class="fromCon">
  41. <text class="fromTit">所在学校</text>
  42. <view class="fromIpt">
  43. <van-field placeholder="请选择学校" value="{{ schoolAreaName }}" input-align="right" bind:tap="onSelectSchool" border="{{ false }}" is-link readonly />
  44. </view>
  45. </view>
  46. <view class="fromCon">
  47. <text class="fromTit">所在年级</text>
  48. <view class="fromIpt">
  49. <van-field placeholder="请选择年级" value="{{ gradeName }}" input-align="right" bind:tap="onSelectGrade" border="{{ false }}" is-link readonly />
  50. </view>
  51. </view>
  52. <view class="fromCon">
  53. <text class="fromTit">所在班级</text>
  54. <view class="fromIpt">
  55. <van-field placeholder="请选择班级" value="{{ className }}" input-align="right" bind:tap="onSelectClass" border="{{ false }}" is-link readonly />
  56. </view>
  57. </view>
  58. </view>
  59. <view class="botBox"></view>
  60. </scroll-view>
  61. <view class="submitCon">
  62. <view class="subBtn" bind:tap="onSubmit">保存</view>
  63. </view>
  64. <!-- 地区 -->
  65. <van-popup round="{{true}}" lock-scroll="{{true}}" z-index="{{103}}" show="{{showArea}}" position="bottom" safe-area-inset-bottom="{{false}}" bind:close="onCloseAreaList">
  66. <van-area areaList="{{areaList}}" visible-item-count="6" item-height="46" value="{{ regionCode }}" bind:cancel="onCloseAreaList" bind:confirm="submitArea" />
  67. </van-popup>
  68. <!-- 学校 -->
  69. <van-popup round="{{true}}" lock-scroll="{{true}}" z-index="{{102}}" show="{{showSchool}}" position="bottom" safe-area-inset-bottom="{{false}}" bind:close="onCloseSchool">
  70. <view class="toolbar-top">
  71. <view class="toolbar-cancel" bind:tap="onCloseSchool">取消</view>
  72. <view class="toolbar-confirm" bind:tap="onSubmitSchool">确认</view>
  73. </view>
  74. <view class="areaListOpen" bind:tap="onShowAreaList">
  75. <text>{{ provinceName + " " + cityName + " " + regionName}}</text>
  76. <image src="./images/chevron-down.png" />
  77. </view>
  78. <view class="searchList">
  79. <van-search use-left-icon-slot use-action-slot show-action placeholder="请输入学校名称关键字" value="{{ searchName }}" bind:search="onSearch" bind:change="onSearchChange" bind:clear="onSearch">
  80. <image slot="left-icon" src="./images/icon-search.png" class="icon-search" />
  81. <view slot="action" class="searchBtn" bind:tap="onSearch">搜索</view>
  82. </van-search>
  83. </view>
  84. <van-picker loading="{{ schoolLoading }}" columns="{{ schoolAreaList }}" bind:change="onChangeSchool" visible-item-count="6" default-index="{{ schoolAreaIndex }}">
  85. </van-picker>
  86. </van-popup>
  87. <!-- 年级 -->
  88. <van-popup round="{{true}}" lock-scroll="{{true}}" z-index="{{102}}" show="{{showGrade}}" position="bottom" safe-area-inset-bottom="{{false}}" bind:close="onCloseGrade">
  89. <van-picker columns="{{ gradeList }}" visible-item-count="6" show-toolbar bind:cancel="onCloseGrade" bind:confirm="onSubmitGrade" default-index="{{ gradeIndex }}">
  90. </van-picker>
  91. </van-popup>
  92. <!-- 班级 -->
  93. <van-popup round="{{true}}" lock-scroll="{{true}}" z-index="{{102}}" show="{{showClass}}" position="bottom" safe-area-inset-bottom="{{false}}" bind:close="onCloseClass">
  94. <van-picker columns="{{ classList }}" visible-item-count="6" show-toolbar bind:cancel="onCloseClass" bind:confirm="onSubmitClass" default-index="{{ classIndex }}">
  95. </van-picker>
  96. </van-popup>
  97. </view>