resume.vue 5.9 KB

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