teacher_authentication_detail.vue 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. <template>
  2. <view class="container">
  3. <!-- 顶部信息 -->
  4. <view class="userInfo">
  5. <view>
  6. <text>用户ID</text>
  7. <text class="userDetail">{{item.uid}}</text>
  8. </view>
  9. <view class="userName">
  10. <text>贵姓</text>
  11. <text class="userDetail">{{item.firstName}}</text>
  12. </view>
  13. </view>
  14. <view class="userInfo">
  15. <view>
  16. <text>手机号</text>
  17. <text class="userDetail">{{item.phone}}</text>
  18. </view>
  19. <view class="userName">
  20. <text>英文名</text>
  21. <text class="userDetail">{{item.englishName}}</text>
  22. </view>
  23. </view>
  24. <view class="userInfo">
  25. <text>微信号</text>
  26. <text class="userDetail">{{item.weixinId}}</text>
  27. </view>
  28. <view class="userInfo">
  29. <text>身份证号</text>
  30. <text class="userDetail">{{item.idCard}}</text>
  31. </view>
  32. <!-- 照片信息 -->
  33. <view class="userImg">
  34. <view class="userImgDetail">
  35. <image class="userImage" :src="item.diplomaPhoto"></image>
  36. </view>
  37. <view class="userImgDetail">
  38. <image class="userImage" :src="item.idCardBack"></image>
  39. </view>
  40. <view class="userImgDetail">
  41. <image class="userImage" :src="item.idCardFront"></image>
  42. </view>
  43. <view class="userImgDetail">
  44. <image class="userImage" :src="item.profilePhoto"></image>
  45. </view>
  46. </view>
  47. <!-- 高校信息 -->
  48. <view class="school">
  49. <text>高校全名</text>
  50. <text class="schoolName">{{item.school}}</text>
  51. </view>
  52. <!-- 教员性别和专业 -->
  53. <view class="teacherSexMajor">
  54. <view>
  55. <text>教员性别</text>
  56. <text class="userDetail">{{item.sex}}</text>
  57. </view>
  58. <view class="teacherMajor">
  59. <text>当前学历</text>
  60. <text class="userDetail">{{item.education}}</text>
  61. </view>
  62. </view>
  63. <!-- 籍贯 -->
  64. <view class="userInfo">
  65. <text>籍贯</text>
  66. <text class="userDetail">{{item.nativePlace}}</text>
  67. </view>
  68. <!-- 当前学历 -->
  69. <view class="userInfo">
  70. <text>专业</text>
  71. <text class="userDetail">{{item.major}}</text>
  72. </view>
  73. <!-- 审核状态 -->
  74. <view class="audit">
  75. <text>审核状态</text>
  76. <text class="auditDetail">{{item.verifyStatus}}</text>
  77. </view>
  78. <!-- 审核不通过原因 -->
  79. <view class="auditResult">
  80. <text>审核不通过原因</text>
  81. <text class="auditDetail">{{item.verifyRefuseReason}}</text>
  82. </view>
  83. <!-- 申请日期 -->
  84. <view class="applyDate">
  85. <text>申请日期</text>
  86. <text class="userDetail">{{item.datetime}}</text>
  87. </view>
  88. <!-- 修改认证按钮 -->
  89. <view class="modify" @click="modifyAuthorize">
  90. <text class="modifyBtn">修改认证</text>
  91. </view>
  92. </view>
  93. </template>
  94. <script>
  95. import { mapState } from 'vuex';
  96. export default {
  97. computed: {
  98. ...mapState('m_user', ['authorizePhoto'])
  99. },
  100. data() {
  101. return {
  102. item: {}
  103. };
  104. },
  105. onLoad(option) {
  106. this.item = JSON.parse(decodeURIComponent(option.item))
  107. let arr = this.item.name.split('')
  108. if (arr.length <= 3) {
  109. this.item.firstName = this.item.name.substring(0,1)
  110. } else {
  111. this.item.firstName = this.item.name.substring(0,2)
  112. }
  113. },
  114. methods: {
  115. modifyAuthorize() {
  116. uni.navigateTo({
  117. url: '/subpkg/teacher/authentication/teacher_authentication_add?item=' + encodeURIComponent(JSON.stringify(this.item))
  118. })
  119. }
  120. }
  121. }
  122. </script>
  123. <!-- 设置页面背景 -->
  124. <style lang="scss">
  125. page{
  126. height: 100%;
  127. // background-color: #FFF;
  128. }
  129. </style>
  130. <style lang="scss" scoped>
  131. .container {
  132. //background-color: #FFF2CC;
  133. padding-left: 20rpx;
  134. height: 100%;
  135. }
  136. /* 顶部用户信息、性别和专业 */
  137. .userInfo,
  138. .teacherSexMajor{
  139. display: flex;
  140. margin-top: 16rpx;
  141. }
  142. /* 姓、英文名、专业 */
  143. .userName,
  144. .teacherMajor{
  145. position: absolute;
  146. left: 60%;
  147. }
  148. .school{
  149. margin-top: 30rpx;
  150. }
  151. /* 用户详情、高校名称、审核状态即原因 */
  152. .userDetail,
  153. .schoolName,
  154. .auditDetail{
  155. margin-left: 20rpx;
  156. font-weight: bold;
  157. }
  158. /* 照片信息 */
  159. .userImg{
  160. margin-top: 30rpx;
  161. display: flex;
  162. flex-wrap: wrap;
  163. }
  164. /* 设置边框 */
  165. .userImgDetail{
  166. width: 45%;
  167. padding: 10rpx;
  168. height: 200rpx;
  169. display: flex;
  170. border-left: 1rpx solid gray;
  171. border-top: 1rpx solid gray;
  172. }
  173. /* 偶数照片添加右边框 */
  174. .userImg :nth-child(even){
  175. border-right: 1rpx solid gray;
  176. }
  177. /* 第三张照片添加下边框 */
  178. .userImg :nth-child(3){
  179. border-bottom: 1rpx solid gray;
  180. }
  181. /* 第四张照片添加下边框 */
  182. .userImg :nth-child(4){
  183. border-bottom: 1rpx solid gray;
  184. }
  185. /* 设置照片 */
  186. .userImage{
  187. width: 100%;
  188. height: 100%;
  189. }
  190. /* 审核状态 */
  191. .audit{
  192. margin-top: 40rpx;
  193. }
  194. /* 审核不通过原因、申请日期 */
  195. .auditResult,
  196. .applyDate{
  197. margin-top: 20rpx;
  198. }
  199. /* 修改认证按钮 */
  200. .modify{
  201. margin-top: 120rpx;
  202. margin-bottom: 60rpx;
  203. display: flex;
  204. justify-content: center;
  205. }
  206. .modifyBtn{
  207. font-size: 38rpx;
  208. padding: 10rpx 30rpx;
  209. border-radius: 40rpx;
  210. background-color: #35b882;
  211. color: white;
  212. }
  213. </style>