resume.vue 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. <template>
  2. <view>
  3. <!-- 顶部占位区域 -->
  4. <view :style="{ height: statusBarHeight + 'px' }"></view>
  5. <view v-if="JSON.stringify(list) != '{}'">
  6. <view class="listbox" @click="goUpdete()">
  7. <view class="flex align-center justify-between">
  8. <view class="flex align-center">
  9. <view style="color: #016BF6;" v-if="list.status==1">待审核</view>
  10. <view style="color: #016BF6;" v-if="list.status==2">已通过</view>
  11. <view style="color: red;" v-if="list.status==3">已拒绝</view>
  12. <!-- <view style="color: #016BF6;" v-if="list.status==4">简历隐藏</view>
  13. <view class="" style="font-size: 24rpx;color: red;margin-left: 20rpx;"
  14. v-if="list.isRecommend == 2">
  15. 已录入人才库
  16. </view> -->
  17. </view>
  18. <view class="text-sm" style="color: #999999;">{{list.createTime}}</view>
  19. </view>
  20. <view class="margin-tb-sm" style="width: 100%;height: 1rpx;background: #EEEEEE;"></view>
  21. <view class="flex align-center justify-between">
  22. <view>
  23. <view class="text-xl text-bold" style="color: #000;">{{list.resumesName}}</view>
  24. <view class="flex align-center margin-top-xs flex-wrap" style="color: #999999;">
  25. <view>{{list.resumesAge}}岁</view>
  26. <view class="margin-lr-sm" style="width: 1rpx;height: 25rpx;background: #CCCCCC;"></view>
  27. <view><span v-if="list.resumesWorkExperience!='无经验'">工作</span>{{list.resumesWorkExperience}}
  28. </view>
  29. <view class="margin-lr-sm" style="width: 1rpx;height: 25rpx;background: #CCCCCC;"></view>
  30. <view>{{list.resumesEducation}}</view>
  31. <view class="margin-lr-sm" style="width: 1rpx;height: 25rpx;background: #CCCCCC;"></view>
  32. <view>{{list.resumesCompensation}}</view>
  33. </view>
  34. </view>
  35. <view>
  36. <image :src="avatar?avatar:'../../static/logo.png'"
  37. style="width: 100upx;height: 100upx;border-radius: 55upx;">
  38. </image>
  39. </view>
  40. </view>
  41. <view class="margin-top">
  42. <view class="flex align-center">
  43. <view class="margin-right-xs">
  44. <image src="../../static/images/qi.png" style="width: 30upx;height: 32upx;"></image>
  45. </view>
  46. <view style="color: #121212;">
  47. {{list.resumesCompanyList.length!=0?list.resumesCompanyList[0].resumesTitle:'暂无工作经历'}}
  48. </view>
  49. </view>
  50. <view class=" margin-left margin-top-xs padding-left-xs" style="color: #999999;font-size: 26upx;">
  51. {{list.resumesCompanyList.length!=0?list.resumesCompanyList[0].resumesPost:'暂无'}}
  52. </view>
  53. </view>
  54. <view class="margin-top-sm">
  55. <view class="flex align-center">
  56. <view class="margin-right-xs">
  57. <image src="../../static/images/geren.png" style="width: 35upx;height:26upx;"></image>
  58. </view>
  59. <view style="color: #121212;">{{list.school}}</view>
  60. </view>
  61. <view class="margin-left margin-top-xs padding-left-xs" style="color: #999999;font-size: 26upx;">
  62. {{list.major}}
  63. </view>
  64. </view>
  65. <view class="text-right">
  66. <view class="btn" v-if="list.status==2 || list.status==3" @click.stop="goUpdete()">修改简历</view>
  67. </view>
  68. </view>
  69. </view>
  70. <view class="submit" v-else @click="goUpdete()">添加简历</view>
  71. <empty v-if="JSON.stringify(list) == '{}'" />
  72. </view>
  73. </template>
  74. <script>
  75. import empty from '@/components/empty.vue'
  76. export default {
  77. components: {
  78. empty
  79. },
  80. data() {
  81. return {
  82. avatar: '../../static/logo.png',
  83. list: {},
  84. statusBarHeight: 0
  85. }
  86. },
  87. onLoad() {
  88. // 获取状态栏高度
  89. const systemInfo = uni.getSystemInfoSync()
  90. this.statusBarHeight = systemInfo.statusBarHeight || 0
  91. },
  92. onPullDownRefresh() {
  93. this.getDetails();
  94. },
  95. onShow() {
  96. this.avatar = this.$queue.getData("avatar");
  97. this.getDetails()
  98. },
  99. methods: {
  100. goUpdetes() {
  101. uni.navigateTo({
  102. url: '/my/publish/editors?resumesId=' + this.list.resumesId
  103. })
  104. },
  105. goUpdete() {
  106. if (JSON.stringify(this.list) != '{}') {
  107. uni.navigateTo({
  108. url: '/my/publish/editor?resumesId=' + this.list.resumesId
  109. })
  110. } else {
  111. uni.navigateTo({
  112. url: '/my/publish/editor'
  113. })
  114. }
  115. },
  116. getDetails() {
  117. this.$Request.get('/app/resumes/selectResumesByUserId').then(res => {
  118. if (res.code == 0) {
  119. uni.stopPullDownRefresh()
  120. if (res.data) {
  121. this.list = res.data
  122. }
  123. }
  124. })
  125. }
  126. }
  127. }
  128. </script>
  129. <style lang="less">
  130. page {
  131. background: #F2F2F7;
  132. }
  133. .listbox {
  134. background: #FFFFFF;
  135. border-radius: 24upx;
  136. margin: 20upx 30upx;
  137. padding: 30upx;
  138. }
  139. .btn {
  140. border: 1upx solid #016BF6;
  141. border-radius: 30px;
  142. color: #016BF6;
  143. display: inline-block;
  144. padding: 15upx 30upx;
  145. }
  146. .submit {
  147. background: #016BF6;
  148. border-radius: 50px;
  149. margin: 0upx 30upx;
  150. text-align: center;
  151. padding: 34upx 0upx;
  152. color: #FFFFFF;
  153. // font-size: 32upx;
  154. // font-weight: bold;
  155. position: fixed;
  156. bottom: 100upx;
  157. left: 0;
  158. right: 0;
  159. z-index: 9;
  160. }
  161. </style>