teachAuthentication.wxml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <!--pages/teachAuthentication/teachAuthentication.wxml-->
  2. <view class="teachContainer">
  3. <!-- 手机号 -->
  4. <view class="input-item">
  5. <text>手机号*:</text>
  6. <input class="userInput" type="number" bindinput="getPhoneNum" placeholder="请输入手机号" />
  7. </view>
  8. <!-- 微信号 -->
  9. <view class="input-item">
  10. <text>微信号*:</text>
  11. <input class="userInput" type="text" bindinput="getWeChatNum" confirm-type="done" placeholder="请输入微信号" />
  12. </view>
  13. <!-- 英文名 -->
  14. <view class="input-item">
  15. <text>英文名:</text>
  16. <input class="userInput" type="text" bindinput="getEnglishName" confirm-type="done" placeholder="请输入您的英文名" />
  17. </view>
  18. <!-- 真实姓名 -->
  19. <view class="input-name">
  20. <text>真实姓名*:</text>
  21. <view class="input-yourName">
  22. <text>姓*:</text>
  23. <input class="userInput" type="text" bindinput="getNameFirst" confirm-type="done" placeholder="请输入姓氏" />
  24. <text>名*:</text>
  25. <input class="input-ming" type="text" bindinput="getNameLast" confirm-type="done" placeholder="请输入名字" />
  26. </view>
  27. </view>
  28. <!-- 身份证号 -->
  29. <view class="input-item">
  30. <text>身份证号*:</text>
  31. <input class="userInput" bindinput="getIdInput" type="idcard" maxlength="18" placeholder="请输入您的身份证号码" />
  32. </view>
  33. <!-- 性别,根据身份证号自动判断 -->
  34. <view class="input-item">
  35. <text>性别*:<text style="color: #808080;">{{sex || '请先输入完整的身份证号嘛'}}</text></text>
  36. </view>
  37. <!-- 身份证照片上传 -->
  38. <view class="idCard">
  39. <text class="idImag-tit">身份证照片*</text>
  40. <text class="explain">说明:需要能看清楚证件号码、日期及头像,否则审核不通过</text>
  41. <view class="idImagUp">
  42. <view class="idImag">
  43. <text wx:if="{{!idImgFontPath}}" class="idImgContainer iconfont icon-tupian" bindtap="chooseIdFront"></text>
  44. <image wx:else src="{{idImgFontPath}}" class="idImgContainer" bindtap="chooseIdFront"></image>
  45. <text>身份证正面</text>
  46. </view>
  47. <view class="idImag">
  48. <text wx:if="{{!idImgBackPath}}" class="idImgContainer iconfont icon-tupian" bindtap="chooseIdBack"></text>
  49. <image wx:else src="{{idImgBackPath}}" class="idImgContainer" bindtap="chooseIdBack"></image>
  50. <text>身份证背面</text>
  51. </view>
  52. </view>
  53. </view>
  54. <!-- 毕业证照片上传 -->
  55. <view class="myCard">
  56. <text>毕业证*:</text>
  57. <text class="explain">需要能看清楚证书编号</text>
  58. <text wx:if="{{!diplomaPath}}" class="ImgContainer iconfont icon-tupian" bindtap="chooseDiploma"></text>
  59. <image wx:else src="{{diplomaPath}}" class="ImgContainer" bindtap="chooseDiploma"></image>
  60. </view>
  61. <!-- 学生证照片上传 -->
  62. <view class="myCard">
  63. <text>学生证*:</text>
  64. <text class="explain">需要能看清头像</text>
  65. <text wx:if="{{!stuCardPath}}" class="ImgContainer iconfont icon-tupian" bindtap="chooseStuCard"></text>
  66. <image wx:else src="{{stuCardPath}}" class="ImgContainer" bindtap="chooseStuCard"></image>
  67. </view>
  68. <!-- 头像照片上传 -->
  69. <view class="myHead">
  70. <text>头像:</text>
  71. <text class="explain">(说明:只能上传证件照,上传其他照片审核不予通过)</text>
  72. <text wx:if="{{!headImgPath}}" class="ImgContainer iconfont icon-tupian" bindtap="chooseHeadImg"></text>
  73. <image wx:else src="{{headImgPath}}" class="ImgContainer" bindtap="chooseHeadImg"></image>
  74. </view>
  75. <!-- 老师的身份 -->
  76. <view class="idAttribute">
  77. <view>身份*:</view>
  78. <view class="idAttribute-container" bindtap="chooseTeachAttr">
  79. <view class="teachAttribute">{{chosedTeachAttr || '请选择'}}</view>
  80. <view class="iconfont icon-xiangxia"></view>
  81. </view>
  82. </view>
  83. <!-- 学校填写 -->
  84. <view class="input-item">
  85. <text>毕业/就读学校*:</text>
  86. <input class="userInput" type="text" bindinput="getSchool" confirm-type="done" placeholder="请输入学校的全称" />
  87. </view>
  88. <!-- 专业填写 -->
  89. <view class="input-item">
  90. <text>所学专业*:</text>
  91. <input class="userInput" type="text" bindinput="getMajor" confirm-type="done" placeholder="请输入您的所学专业" />
  92. </view>
  93. <!-- 学历选择 -->
  94. <view class="education">
  95. <view>学历*:</view>
  96. <view class="education-container" bindtap="chooseEducation">
  97. <view class="teachEducation">{{chosedEducation || '请选择'}}</view>
  98. <view class="iconfont icon-xiangxia"></view>
  99. </view>
  100. </view>
  101. <!-- 籍贯填写 -->
  102. <view class="input-jiguan">
  103. <text>籍贯*:</text>
  104. <input class="userInput" type="text" bindinput="getProvince" confirm-type="done" placeholder-style="font-size:28rpx" placeholder="例:四川" />
  105. <text>省</text>
  106. <input class="userInput" type="text" bindinput="getCity" confirm-type="done" placeholder-style="font-size:28rpx" placeholder="例:成都" />
  107. <text>市/州</text>
  108. <input class="userInput" type="text" bindinput="getCounty" confirm-type="done" placeholder-style="font-size:28rpx" placeholder="例:武侯" />
  109. <text>区/县</text>
  110. </view>
  111. </view>
  112. <!-- 提交按钮 -->
  113. <button class="submit" type="primary" bindtap="toSubmit">提交审核</button>
  114. <!-- 底部空白区域,为了增加间隔效果,避免提交按钮完全贴着底边 -->
  115. <view class="blank"></view>
  116. <!-- 老师身份的选择列表 -->
  117. <view class="idAttrChose" wx:if="{{showIdAttr}}">
  118. <!-- 空白区 -->
  119. <view class="mask" bindtap="hiddenTeachId"></view>
  120. <!-- 内容区 -->
  121. <view class="idAttr-wrapper">
  122. <view class="idAttr-title">
  123. <view bindtap="hiddenTeachId">取消</view>
  124. <view bindtap="confirmTeachId">确定</view>
  125. </view>
  126. <view class="idAttr-content" wx:for="{{attributeList}}" wx:key="key" bindtap="onidAttrSelect" data-index="{{index}}">
  127. <view style="position: absolute;left: 40rpx;">{{item.attr}}</view>
  128. <image style="position: absolute;right: 40rpx;" src="{{item.chosed?'/images/selected.png':'/images/selectNull.png'}}"></image>
  129. </view>
  130. </view>
  131. </view>
  132. <!-- 学历选择列表 -->
  133. <view class="eduChose" wx:if="{{showEdu}}">
  134. <!-- 空白区 -->
  135. <view class="mask" bindtap="hiddenEdu"></view>
  136. <!-- 内容区 -->
  137. <view class="edu-wrapper">
  138. <view class="edu-title">
  139. <view bindtap="hiddenEdu">取消</view>
  140. <view bindtap="confirmEdu">确定</view>
  141. </view>
  142. <view class="edu-content" wx:for="{{educationList}}" wx:key="key" bindtap="onEduSelect" data-index="{{index}}">
  143. <view style="position: absolute;left: 40rpx;">{{item.edu}}</view>
  144. <image style="position: absolute;right: 40rpx;" src="{{item.chosed?'/images/selected.png':'/images/selectNull.png'}}"></image>
  145. </view>
  146. </view>
  147. </view>