records.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666
  1. <template>
  2. <view>
  3. <view class="qz-record">
  4. <view class="qz-title">求职记录</view>
  5. <view class="qz-desc"
  6. >当前记录仅自己可见,招聘者无法看到你所浏览过或投递过的
  7. 其他岗位,当前数据仅保留半年的记录。</view
  8. >
  9. </view>
  10. <u-tabs :list="list" @change="tabClick" :current="tabIndex" class="tab-list"></u-tabs>
  11. <view class="gwList flex justify-center" v-if="dataList.length > 0">
  12. <view class="gwList-box">
  13. <view
  14. class="gwList-box-item flex justify-center"
  15. @click="gotoInfo(item)"
  16. v-for="(item, index) in dataList"
  17. :key="index"
  18. >
  19. <view class="gwList-box-item-box">
  20. <view
  21. v-if="item"
  22. class="gwList-box-item-box-title flex justify-between align-center"
  23. >
  24. <text>{{ item.stationName||item.postPush&&item.postPush.stationName }}</text>
  25. <text>{{ item.salaryRange||item.postPush&&item.postPush.salaryRange }}</text>
  26. </view>
  27. <block v-if="title == '我的收藏'">
  28. <view class="gwList-box-item-box-name">
  29. <text>{{ item.companyName ? item.companyName : "匿名公司" }}</text>
  30. <text v-if="item.companyPeople">{{ item.companyPeople }}</text>
  31. </view>
  32. <view class="gwList-box-item-box-label flex align-center flex-wrap">
  33. <view
  34. class="gw-tag"
  35. v-for="(ite, ind) in item.positionWelfare"
  36. :key="ind"
  37. >{{ ite }}</view
  38. >
  39. </view>
  40. <view class="gwList-box-item-box-info flex justify-between align-center">
  41. <view class="gwList-box-item-box-info-l flex align-center">
  42. <image
  43. :src="item.companyLogo ? item.companyLogo : '../../static/logo.png'"
  44. class="user-info-img"
  45. mode=""
  46. ></image>
  47. <text v-if="item.companyLegalPerson"
  48. >{{ item.companyLegalPerson }}·创始人</text
  49. >
  50. <view class="info-tag">3分钟前回复</view>
  51. </view>
  52. <view class="gwList-box-item-box-info-r">
  53. {{ item.county }}
  54. {{ item.address }}
  55. </view>
  56. </view>
  57. </block>
  58. <block v-else-if="title == '浏览记录'">
  59. <view class="gwList-box-item-box-name">
  60. <text>{{ item.companyName ? item.companyName : "匿名公司" }}</text>
  61. <text>{{ item.companyPeople ? item.companyPeople : 0 }}</text>
  62. </view>
  63. <view class="gwList-box-item-box-label flex align-center flex-wrap">
  64. <view
  65. class="gw-tag"
  66. v-for="(ite, ind) in item.positionWelfare"
  67. :key="ind"
  68. >{{ ite }}</view
  69. >
  70. </view>
  71. <view class="gwList-box-item-box-info flex justify-between align-center">
  72. <view class="gwList-box-item-box-info-l flex align-center">
  73. <image
  74. :src="item.companyLogo ? item.companyLogo : '../../static/logo.png'"
  75. class="user-info-img"
  76. mode=""
  77. ></image>
  78. <text v-if="item.companyLegalPerson"
  79. >{{ item.companyLegalPerson }}·创始人</text
  80. >
  81. <view class="info-tag">3分钟前回复</view>
  82. </view>
  83. <view class="gwList-box-item-box-info-r">
  84. {{ item.county }}
  85. {{ item.address }}
  86. </view>
  87. </view>
  88. </block>
  89. <block v-else-if="title == '沟通记录'">
  90. <view class="gwList-box-item-box-name">
  91. <text>{{ item.company&&item.company.companyName ? item.company.companyName : "匿名公司" }}</text>
  92. <text>{{ item.company&&item.company.companyPeople ? item.company.companyPeople : 0 }}</text>
  93. </view>
  94. <view class="gwList-box-item-box-label flex align-center flex-wrap">
  95. <view
  96. class="gw-tag"
  97. v-for="(ite, ind) in item.postPush&&item.postPush.positionWelfare&&item.postPush.positionWelfare.split(',')||[]"
  98. :key="ind"
  99. >{{ ite }}</view
  100. >
  101. </view>
  102. <view class="gwList-box-item-box-info flex justify-between align-center">
  103. <view class="gwList-box-item-box-info-l flex align-center">
  104. <image
  105. :src="item.company&&item.company.companyLogo ? item.company.companyLogo : '../../static/logo.png'"
  106. class="user-info-img"
  107. mode=""
  108. ></image>
  109. <text
  110. >{{ item.userEntity&&item.userEntity.userName||'匿名' }}·{{item.hr&&item.hr.hrPosition||'创始人'}}</text
  111. >
  112. <view class="info-tag">3分钟前回复</view>
  113. </view>
  114. <view class="gwList-box-item-box-info-r">
  115. {{ item.county }}
  116. {{ item.address }}
  117. </view>
  118. </view>
  119. </block>
  120. <block v-else-if="title == '面试记录'">
  121. <view class="gwList-box-item-box-info flex justify-between align-center padding0">
  122. <view class="gwList-box-item-box-info-l flex align-center">
  123. <image
  124. :src="item.company&&item.company.companyLogo ? item.company.companyLogo : '../../static/logo.png'"
  125. class="company-info-img"
  126. mode=""
  127. ></image>
  128. </view>
  129. <view class="companyRight">
  130. <view class="gwList-box-item-box-info-l flex justify-between align-center">
  131. <text class="companyName">{{ item.company&&item.company.companyName||'匿名公司' }}</text>
  132. <view :class="['info-tag']">{{item.status==1?'待接受':(item.status==2?'已同意':(item.status==3?'已拒绝':'已过期'))}}</view>
  133. </view>
  134. <view class="gwList-box-item-box-name">
  135. <text>{{ item.postPush&&item.postPush.ruleClassifyName ? item.postPush.ruleClassifyName : "匿名" }}</text>·<text>{{ item.postPush&&item.postPush.salaryRange }}</text>
  136. </view>
  137. <view class="gwList-box-item-box-info-r">
  138. {{ item.interviewDateTime&&item.interviewDateTime.substring(0,10)||''}} <text>{{item.detailTime}}</text>
  139. </view>
  140. </view>
  141. </view>
  142. </block>
  143. <block v-else>
  144. <view class="gwList-box-item-box-name">
  145. <text>{{ item.companyName ? item.companyName : "匿名公司" }}</text>
  146. <text v-if="item.companyPeople">{{ item.companyPeople }}</text>
  147. </view>
  148. <view class="gwList-box-item-box-label flex align-center flex-wrap">
  149. <view
  150. class="gw-tag"
  151. v-for="(ite, ind) in item.positionWelfare"
  152. :key="ind"
  153. >{{ ite }}</view
  154. >
  155. </view>
  156. <view class="gwList-box-item-box-info flex justify-between align-center">
  157. <view class="gwList-box-item-box-info-l flex align-center">
  158. <image
  159. :src="item.companyLogo ? item.companyLogo : '../../static/logo.png'"
  160. class="user-info-img"
  161. mode=""
  162. ></image>
  163. <text v-if="item.companyLegalPerson"
  164. >{{ item.companyLegalPerson }}·创始人</text
  165. >
  166. <view class="info-tag">3分钟前回复</view>
  167. </view>
  168. <view class="gwList-box-item-box-info-r">
  169. {{ item.county }}
  170. {{ item.address }}
  171. </view>
  172. </view>
  173. </block>
  174. </view>
  175. </view>
  176. </view>
  177. </view>
  178. <!-- 暂无数据 -->
  179. <view class="gwList" v-else>
  180. <empty />
  181. </view>
  182. <!-- 筛选悬浮 -->
  183. <view hidden class="filterSe" @click="goScreen()">
  184. <image src="../../static/images/my/filterSe.png" mode=""></image>
  185. </view>
  186. </view>
  187. </template>
  188. <script>
  189. import empty from "../../components/empty.vue";
  190. export default {
  191. components: {
  192. empty,
  193. },
  194. data() {
  195. return {
  196. dataList: [],
  197. page: 1,
  198. limit: 10,
  199. pages: "",
  200. title: "",
  201. tabIndex: 0, //tab选中的索引
  202. filter: {
  203. education: "", //学历
  204. salaryRange: "", //薪资
  205. experience: "", //经验
  206. companyPeople: "", //公司规模
  207. industry: "", //行业
  208. },
  209. list: [
  210. {
  211. name: "我看过",
  212. },
  213. {
  214. name: "沟通过",
  215. },
  216. {
  217. name: "投递过",
  218. },
  219. {
  220. name: "面试",
  221. },
  222. {
  223. name: "收藏职位",
  224. },
  225. ],
  226. };
  227. },
  228. onLoad(option) {
  229. /* uni.setNavigationBarTitle({
  230. title: option.title,
  231. }); */
  232. uni.showLoading({
  233. title: "加载中",
  234. });
  235. this.title = option.title;
  236. var that=this
  237. that.getFilter()
  238. uni.$on('updateRecord',function(){
  239. that.page = 1;
  240. that.getFilter()
  241. })
  242. },
  243. onUnload() {
  244. uni.removeStorageSync("browse");
  245. uni.$off('updateRecord')
  246. },
  247. onReachBottom() {
  248. if (this.page < this.pages) {
  249. this.page += 1;
  250. if (this.title == "我的收藏") {
  251. this.getMyCollectionList();
  252. } else if (this.title == "浏览记录") {
  253. this.getDataList();
  254. } else if(this.title == "投递记录") {
  255. this.getDataLists();
  256. }else if (this.title == "沟通记录") {
  257. this.getDataLists(1);
  258. }else if (this.title == "面试记录") {
  259. this.getDataLists(3);
  260. }
  261. }
  262. },
  263. onPullDownRefresh() {
  264. this.page = 1;
  265. if (this.title == "我的收藏") {
  266. this.getMyCollectionList();
  267. } else if (this.title == "浏览记录") {
  268. this.getDataList();
  269. } else if (this.title == "投递记录") {
  270. this.getDataLists();
  271. }else if (this.title == "沟通记录") {
  272. this.getDataLists(1);
  273. }else if (this.title == "面试记录") {
  274. this.getDataLists(3);
  275. }
  276. },
  277. methods: {
  278. // 去筛选
  279. goScreen() {
  280. uni.navigateTo({
  281. url: "/package/screen/screen?isBrowse=1",
  282. });
  283. },
  284. tabClick(e) {
  285. this.tabIndex = e;
  286. if (this.tabIndex==4) {
  287. this.title = "我的收藏"
  288. this.getMyCollectionList();
  289. } else if (this.tabIndex==0) {
  290. this.title = "浏览记录"
  291. this.getDataList();
  292. } else if(this.tabIndex==2) {
  293. this.title = "投递记录"
  294. this.getDataLists();
  295. }else if(this.tabIndex==1) {
  296. this.title = "沟通记录"
  297. this.getDataLists(1);
  298. }else if(this.tabIndex==3) {
  299. this.title = "面试记录"
  300. this.getDataLists(3);
  301. }
  302. /* if (e == 2) {
  303. uni.navigateTo({
  304. url: "/my/jilu/mianshiDetail",
  305. });
  306. } */
  307. },
  308. getFilter() {
  309. if (uni.getStorageSync("browse") && uni.getStorageSync("browse").length > 0) {
  310. let browse = uni.getStorageSync("browse");
  311. console.log(browse, "2222222222");
  312. browse.map((item) => {
  313. let arr = [];
  314. item.list.map((ite) => {
  315. if (ite.value != "不限") {
  316. arr.push(ite.value);
  317. }
  318. });
  319. switch (item.name) {
  320. case "学历要求":
  321. this.filter.education = arr.join(",");
  322. break;
  323. case "薪资范围(单选)":
  324. this.filter.salaryRange = arr.join(",");
  325. break;
  326. case "经验要求":
  327. this.filter.experience = arr.join(",");
  328. break;
  329. case "公司规模":
  330. this.filter.companyPeople = arr.join(",");
  331. break;
  332. case "行业":
  333. this.filter.industry = arr.join(",");
  334. break;
  335. }
  336. });
  337. } else {
  338. this.filter.education = ""; //学历
  339. this.filter.experience = ""; //经验
  340. this.filter.industry = ""; //行业
  341. this.filter.salaryRange = ""; //薪资
  342. this.filter.companyPeople = ""; //公司规模
  343. }
  344. if (this.title == "我的收藏") {
  345. this.tabIndex=4
  346. this.getMyCollectionList();
  347. } else if (this.title == "浏览记录") {
  348. this.tabIndex=0
  349. this.getDataList();
  350. } else if (this.title == "投递记录"){
  351. this.tabIndex=2
  352. this.getDataLists();
  353. }else if (this.title == "沟通记录"){
  354. this.tabIndex=1
  355. this.getDataLists(1);
  356. }else if (this.title == "面试记录"){
  357. this.tabIndex=3
  358. this.getDataLists(3);
  359. }
  360. },
  361. /**
  362. * 我的收藏记录列表
  363. */
  364. getMyCollectionList() {
  365. let data = {
  366. page: this.page,
  367. limit: this.limit,
  368. education: this.filter.education, //学历
  369. salaryRange: this.filter.salaryRange, //薪资
  370. experience: this.filter.experience, //经验
  371. companyPeople: this.filter.companyPeople, //公司规模
  372. industry: this.filter.industry, //行业
  373. };
  374. this.$Request.getT("/app/myCollection/getMyCollectionListV2", data).then((res) => {
  375. uni.stopPullDownRefresh();
  376. uni.hideLoading();
  377. if (res.code == 0) {
  378. res.data.records.map((item) => {
  379. if (item.positionWelfare) {
  380. item.positionWelfare = item.positionWelfare.split(",");
  381. }
  382. });
  383. this.pages = res.data.pages;
  384. if (this.page == 1) {
  385. this.dataList = res.data.records;
  386. } else {
  387. this.dataList = [...this.dataList, ...res.data.records];
  388. }
  389. }
  390. });
  391. },
  392. gotoInfo(item) {
  393. if(this.title == "面试记录"){
  394. if(item.status!=2)
  395. return this.$queue.showToast('已同意方可查看详情')
  396. uni.navigateTo({
  397. url: "/my/jilu/mianshiDetail?recordId="+item.recordId,
  398. });
  399. return
  400. }
  401. var postPushId =item.postPushId
  402. if (!postPushId) {
  403. uni.showToast({
  404. title: "岗位不存在",
  405. icon: "none",
  406. });
  407. return;
  408. }
  409. uni.navigateTo({
  410. url: "/pages/index/game/order?postPushId=" + postPushId,
  411. });
  412. },
  413. getDataLists(types=0) {
  414. let data = {
  415. page: this.page,
  416. limit: this.limit,
  417. /* userId: uni.getStorageSync("userId"), */
  418. education: this.filter.education, //学历
  419. salaryRange: this.filter.salaryRange, //薪资
  420. experience: this.filter.experience, //经验
  421. companyPeople: this.filter.companyPeople, //公司规模
  422. industry: this.filter.industry, //行业
  423. };
  424. let action='/app/sendRecord/getMyRecordListV2'
  425. switch (types){
  426. case 0:
  427. break;
  428. case 1:
  429. action='/app/sendRecord/getConversationList'
  430. break;
  431. case 3:
  432. action='/app/interviewRecord/interviewList'
  433. break;
  434. }
  435. this.$Request.getT(action, data).then((res) => {
  436. uni.stopPullDownRefresh();
  437. uni.hideLoading();
  438. if (res.code == 0) {
  439. res.data.records.map((item) => {
  440. if (item.positionWelfare) {
  441. item.positionWelfare = item.positionWelfare.split(",");
  442. }
  443. });
  444. this.pages = res.data.pages;
  445. if (this.page == 1) {
  446. this.dataList = res.data.records;
  447. } else {
  448. this.dataList = [...this.dataList, ...res.data.records];
  449. }
  450. }
  451. });
  452. },
  453. getDataList() {
  454. let data = {
  455. page: this.page,
  456. limit: this.limit,
  457. education: this.filter.education, //学历
  458. salaryRange: this.filter.salaryRange, //薪资
  459. experience: this.filter.experience, //经验
  460. companyPeople: this.filter.companyPeople, //公司规模
  461. industry: this.filter.industry, //行业
  462. // browseType:1
  463. };
  464. this.$Request.getT("/app/userBrowse/selectMyBrowseV2", data).then((res) => {
  465. uni.stopPullDownRefresh();
  466. uni.hideLoading();
  467. if (res.code == 0) {
  468. res.data.records.map((item) => {
  469. if (item.positionWelfare) {
  470. item.positionWelfare = item.positionWelfare.split(",");
  471. } else {
  472. item.positionWelfare = [];
  473. }
  474. });
  475. this.pages = res.data.pages;
  476. if (this.page == 1) {
  477. this.dataList = res.data.records;
  478. } else {
  479. this.dataList = [...this.dataList, ...res.data.records];
  480. }
  481. }
  482. });
  483. },
  484. },
  485. };
  486. </script>
  487. <style lang="scss" scoped>
  488. page {
  489. background: #fff;
  490. }
  491. .filterSe {
  492. position: fixed;
  493. bottom: 10vh;
  494. right: 30rpx;
  495. image {
  496. width: 100rpx;
  497. height: 100rpx;
  498. // border-radius: 50%;
  499. }
  500. }
  501. .tab-list {
  502. margin-bottom: 20rpx;
  503. }
  504. .gwList {
  505. width: 100%;
  506. .gwList-box {
  507. width: 686rpx;
  508. height: 100%;
  509. .gwList-box-item {
  510. width: 100%;
  511. box-sizing: border-box;
  512. border: 1rpx solid rgba(227, 231, 236, 1);
  513. border-radius: 12rpx;
  514. background: #fdfdfd;
  515. padding: 36rpx;
  516. margin-bottom: 20rpx;
  517. }
  518. .gwList-box-item-box {
  519. width: 623rpx;
  520. height: 100%;
  521. .gwList-box-item-box-title {
  522. text:nth-of-type(1) {
  523. color: #171725;
  524. font-family: DM Sans;
  525. font-size: 32rpx;
  526. font-weight: 700;
  527. line-height: 48rpx;
  528. }
  529. text:nth-of-type(2) {
  530. color: #016bf6;
  531. font-family: DM Sans;
  532. font-size: 24rpx;
  533. font-weight: 700;
  534. line-height: 40rpx;
  535. }
  536. }
  537. .gwList-box-item-box-label {
  538. display: flex;
  539. align-items: center;
  540. gap: 8rpx;
  541. .gw-tag {
  542. /* 自动布局 */
  543. display: flex;
  544. justify-content: center;
  545. align-items: center;
  546. padding: 8rpx;
  547. border-radius: 8rpx;
  548. box-sizing: border-box;
  549. background: #c6c6c61a;
  550. color: rgba(153, 153, 153, 1);
  551. font-family: DM Sans;
  552. font-size: 20rpx;
  553. font-weight: 400;
  554. line-height: 20rpx;
  555. }
  556. }
  557. .gwList-box-item-box-name {
  558. color: #9ca4ab;
  559. font-family: DM Sans;
  560. font-size: 24rpx;
  561. font-weight: 400;
  562. line-height: 40rpx;
  563. padding: 6rpx 0;
  564. box-sizing: border-box;
  565. text {
  566. margin-right: 8rpx;
  567. }
  568. // text:nth-of-type(1) {
  569. // width: 450rpx;
  570. // }
  571. }
  572. .gwList-box-item-box-info {
  573. font-size: 26rpx;
  574. padding-top: 20rpx;
  575. box-sizing: border-box;
  576. color: #9ca4ab;
  577. font-family: DM Sans;
  578. font-size: 16rpx;
  579. font-weight: 400;
  580. line-height: 40rpx;
  581. text-align: left;
  582. .gwList-box-item-box-info-l {
  583. .info-tag {
  584. border-radius: 8rpx;
  585. background: rgba(236, 225, 253, 1);
  586. padding: 8rpx;
  587. box-sizing: border-box;
  588. font-family: DM Sans;
  589. color: #7659d2;
  590. font-size: 16rpx;
  591. font-weight: 400;
  592. line-height: 20rpx;
  593. margin-left: 8rpx;
  594. }
  595. .user-info-img {
  596. width: 40rpx;
  597. height: 40rpx;
  598. border: 1rpx solid rgba(240, 240, 240, 1);
  599. border-radius: 50%;
  600. margin-right: 8.62rpx;
  601. }
  602. .company-info-img{
  603. width: 100rpx;
  604. height: 100rpx;
  605. border: 1rpx solid rgba(240, 240, 240, 1);
  606. border-radius: 50%;
  607. margin-right: 30rpx;
  608. }
  609. }
  610. .gwList-box-item-box-info-r {
  611. max-width: 340rpx;
  612. text{
  613. margin-left:10rpx
  614. }
  615. }
  616. .companyRight{
  617. width: 100%;
  618. .companyName{
  619. font-size: 26rpx;
  620. color: #353535;
  621. margin-right: 20rpx;
  622. }
  623. }
  624. }
  625. .padding0{
  626. padding-top:0
  627. }
  628. }
  629. }
  630. }
  631. .qz-record {
  632. padding: 20rpx 40rpx;
  633. box-sizing: border-box;
  634. .qz-title {
  635. font-family: DM Sans;
  636. font-size: 60rpx;
  637. color: rgba(51, 51, 51, 1);
  638. font-weight: 800;
  639. }
  640. .qz-desc {
  641. color: rgba(102, 102, 102, 1);
  642. font-family: DM Sans;
  643. font-size: 24rpx;
  644. font-weight: 400;
  645. line-height: 32rpx;
  646. margin-top: 20rpx;
  647. }
  648. }
  649. </style>