deliveryRecord.vue 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  1. <template>
  2. <view>
  3. <!-- #ifdef H5 -->
  4. <u-sticky h5-nav-height="0">
  5. <!-- #endif -->
  6. <!-- #ifndef H5 -->
  7. <u-sticky>
  8. <!-- #endif -->
  9. <u-tabs :list="list" active-color="#00b78f" :is-scroll="false" :current="current"
  10. @change="change"></u-tabs>
  11. </u-sticky>
  12. <!-- 简历列表 -->
  13. <view class="qyList flex justify-center">
  14. <view class="qyList-box">
  15. <view class="qyList-box-item flex justify-center" v-for="(item,index) in datasList" :key="index"
  16. @click="goNav(item,index)">
  17. <view class="qyList-box-item-box">
  18. <view v-if="item.isSee == 1" class="flex align-center justify-end"
  19. style="margin-top: 40rpx;color: #00b78f;">
  20. 已读
  21. </view>
  22. <view class="qyList-box-item-info flex justify-between align-center">
  23. <view class="qyList-box-item-info-l">
  24. <view class="" style="color: #212121;font-size: 38rpx;font-weight: 800;">
  25. {{item.resumesName?item.resumesName:''}}
  26. </view>
  27. <view class="flex align-center flex-wrap"
  28. style="color: #999999;font-size: 26rpx;margin-top: 10rpx;">
  29. <text>{{item.resumesAge?item.resumesAge:''}}岁</text>
  30. <text style="margin-left: 20rpx;margin-right: 20rpx;">|</text>
  31. <text>{{item.resumesWorkExperience?item.resumesWorkExperience:''}}</text>
  32. <text style="margin-left: 20rpx;margin-right: 20rpx;">|</text>
  33. <text>{{item.school?item.school:''}}</text>
  34. <text style="margin-left: 20rpx;margin-right: 20rpx;">|</text>
  35. <text>期望{{item.resumesCompensation?item.resumesCompensation:''}}</text>
  36. </view>
  37. </view>
  38. <view class="qyList-box-item-info-r">
  39. <image :src="item.avatar?item.avatar:'../../static/logo.png'"
  40. style="width: 95rpx;height: 95rpx;border-radius: 50%;" mode=""></image>
  41. </view>
  42. </view>
  43. <view class="qyList-box-item-job flex align-center">
  44. <u-icon name="heart-fill" color="#00B88F" size="30" style="margin-right: 16rpx;">
  45. </u-icon>
  46. 期望岗位:{{item.resumesPost?item.resumesPost:''}}
  47. </view>
  48. <view class="qyList-box-item-job flex align-center"
  49. v-if="item.resumesCompanyList && item.resumesCompanyList.length>0">
  50. <image src="../../static/images/qi.png"
  51. style="width: 30rpx;height: 32rpx;margin-right: 16rpx;" mode=""></image>
  52. {{item.resumesCompanyList[0].resumesTitle}}
  53. /
  54. {{item.resumesCompanyList[0].resumesPost}}
  55. </view>
  56. <view class="qyList-box-item-rem" v-if="item.resumesDetails">
  57. 优势:{{item.resumesDetails}}
  58. </view>
  59. <view class="line"></view>
  60. <view class="qyList-box-item-box-ti flex justify-between align-center">
  61. <text>投递岗位</text>
  62. <text>{{item.stationName?item.stationName:''}}--{{item.ruleClassifyName?item.ruleClassifyName:''}}</text>
  63. </view>
  64. </view>
  65. </view>
  66. <empty v-if="datasList.length==0" />
  67. </view>
  68. </view>
  69. <!-- 筛选悬浮 -->
  70. <view class="filterSe" @click="goScreen()">
  71. <image src="../../static/images/my/filterSe.png" mode=""></image>
  72. </view>
  73. </view>
  74. </template>
  75. <script>
  76. import empty from '../../components/empty.vue'
  77. export default {
  78. components: {
  79. empty
  80. },
  81. data() {
  82. return {
  83. list: [{
  84. name: '全部',
  85. isSee: '',
  86. }, {
  87. name: '已读',
  88. isSee: 1
  89. }, {
  90. name: '未读',
  91. isSee: 0
  92. }],
  93. current: 0,
  94. datasList: [],
  95. page: 1,
  96. limit: 10,
  97. totlo: 0,
  98. filter: {
  99. resumesCompensation: '', //薪资
  100. resumesEducation: '', //学历
  101. resumesWorkExperience: '', //经验
  102. industryName: '', //行业
  103. }
  104. };
  105. },
  106. onLoad() {
  107. this.getDataList()
  108. },
  109. onReachBottom() {
  110. if (this.page < this.totlo) {
  111. this.page += 1
  112. this.getDataList()
  113. }
  114. },
  115. onPullDownRefresh() {
  116. this.page = 1
  117. this.getDataList()
  118. },
  119. onShow() {
  120. if (uni.getStorageSync('isCompyHistory') && (uni.getStorageSync('isCompyHistory')).length > 0) {
  121. let isCompyHistory = uni.getStorageSync('isCompyHistory')
  122. isCompyHistory.map(item => {
  123. let arr = []
  124. item.list.map(ite => {
  125. if (ite.value != '不限') {
  126. arr.push(ite.value)
  127. }
  128. })
  129. switch (item.name) {
  130. case '学历':
  131. this.filter.resumesEducation = arr.join(',')
  132. break;
  133. case '薪资':
  134. this.filter.resumesCompensation = arr.join(',')
  135. break;
  136. case '经验':
  137. this.filter.resumesWorkExperience = arr.join(',')
  138. break;
  139. case '行业':
  140. this.filter.industryName = arr.join(',')
  141. break;
  142. }
  143. })
  144. } else {
  145. this.filter.resumesEducation = '' //学历
  146. this.filter.resumesWorkExperience = '' //经验
  147. this.filter.industryName = '' //行业
  148. this.filter.resumesCompensation = '' //薪资
  149. }
  150. },
  151. watch: {
  152. filter: {
  153. handler() {
  154. this.page = 1
  155. this.getDataList()
  156. },
  157. deep: true,
  158. immediate: true
  159. }
  160. },
  161. onUnload() {
  162. uni.removeStorageSync('isCompyHistory')
  163. },
  164. methods: {
  165. change(index) {
  166. this.current = index;
  167. this.page = 1
  168. this.getDataList()
  169. },
  170. // 去筛选
  171. goScreen() {
  172. uni.navigateTo({
  173. url: '/package/screen/screen?isCompyHistory=1'
  174. })
  175. },
  176. // 标记为已读
  177. setIsSee(recordId, index) {
  178. let data = {
  179. recordId: recordId
  180. }
  181. this.$Request.getT('/app/sendRecord/seeRecord', data).then(res => {
  182. if (res.code == 0) {
  183. this.datasList[index].isSee = 1
  184. }
  185. })
  186. },
  187. goNav(item, index) {
  188. if (item.resumesId) {
  189. this.setIsSee(item.recordId, index)
  190. uni.navigateTo({
  191. url: '/pages/index/game/orderDet?resumesId=' + item.resumesId + '&isSee=' + item.isSee
  192. })
  193. } else {
  194. uni.showToast({
  195. title: '该用户简历不存在',
  196. icon: 'none'
  197. })
  198. }
  199. console.log(url, '1111')
  200. },
  201. //获取已投递简历的列表
  202. getDataList() {
  203. let data = {
  204. page: this.page,
  205. limit: this.limit,
  206. resumesCompensation: this.filter.resumesCompensation, //薪资
  207. resumesEducation: this.filter.resumesEducation, //学历
  208. resumesWorkExperience: this.filter.resumesWorkExperience, //经验
  209. industryName: this.filter.industryName, //行业
  210. isSee: this.list[this.current].isSee
  211. }
  212. this.$Request.getT('/app/sendRecord/getCompanyRecordListV2', data).then(res => {
  213. if (res.code == 0) {
  214. this.totlo = res.data.pages //记录总页数
  215. if (this.page == 1) {
  216. this.datasList = res.data.records
  217. } else {
  218. this.datasList = [...this.datasList, ...res.data.records]
  219. }
  220. }
  221. })
  222. },
  223. }
  224. }
  225. </script>
  226. <style lang="scss">
  227. page {
  228. background: #F2F2F7;
  229. }
  230. .filterSe {
  231. position: fixed;
  232. bottom: 10vh;
  233. right: 30rpx;
  234. image {
  235. width: 100rpx;
  236. height: 100rpx;
  237. // border-radius: 50%;
  238. }
  239. }
  240. .qyList {
  241. width: 100%;
  242. height: auto;
  243. margin-top: 20rpx;
  244. .qyList-box {
  245. width: 686rpx;
  246. height: 100%;
  247. .qyList-box-item {
  248. width: 100%;
  249. // height: 400rpx;
  250. padding-bottom: 40rpx;
  251. background-color: #ffffff;
  252. border-radius: 24rpx;
  253. margin-bottom: 20rpx;
  254. .qyList-box-item-box {
  255. width: 626rpx;
  256. height: 100%;
  257. }
  258. .line {
  259. width: 100%;
  260. border-bottom: 1rpx solid #F2F2F7;
  261. margin-top: 20rpx;
  262. }
  263. .qyList-box-item-box-ti {
  264. margin-top: 20rpx;
  265. }
  266. .qyList-box-item-info {
  267. margin-top: 20rpx;
  268. // margin-top: 40rpx;
  269. }
  270. .qyList-box-item-job {
  271. color: #121212;
  272. font-size: 28rpx;
  273. font-weight: 500;
  274. margin-top: 20rpx;
  275. }
  276. .qyList-box-item-rem {
  277. color: #999999;
  278. font-size: 26rpx;
  279. margin-top: 20rpx;
  280. }
  281. }
  282. }
  283. }
  284. </style>