特易招,招聘小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

88 lines
1.7 KiB

6 months ago
6 months ago
4 months ago
6 months ago
4 months ago
6 months ago
6 months ago
6 months ago
4 months ago
6 months ago
4 months ago
4 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
4 months ago
6 months ago
  1. <template>
  2. <view class="page">
  3. <navbar title="我的收藏"
  4. bgColor="#3796F8"
  5. leftClick
  6. color="#fff"
  7. @leftClick="$utils.navigateBack"/>
  8. <userListSwipe
  9. :options="options"
  10. v-if="role"
  11. keyName="employResume"
  12. @clickSwipeAction="clickSwipeAction"
  13. :list="list"/>
  14. <workListSwipe
  15. :options="options"
  16. v-else
  17. keyName="employJob"
  18. @clickSwipeAction="clickSwipeAction"
  19. :list="list"/>
  20. <uv-empty mode="list" v-if="list.length == 0"></uv-empty>
  21. </view>
  22. </template>
  23. <script>
  24. import workListSwipe from '@/components/list/workList/workListSwipe.vue'
  25. import userListSwipe from '@/components/list/userList/userListSwipe.vue'
  26. import mixinList from '@/mixins/list.js'
  27. import { mapState } from 'vuex'
  28. export default {
  29. mixins : [mixinList],
  30. components : {
  31. workListSwipe,
  32. userListSwipe,
  33. },
  34. data() {
  35. return {
  36. options: [
  37. {
  38. text: '删除',
  39. style: {
  40. backgroundColor: '#FA5A0A'
  41. }
  42. },
  43. ],
  44. mixinsListApi : 'employeeQueryCollectionJobList',
  45. list2 : [],
  46. }
  47. },
  48. computed : {
  49. ...mapState([
  50. 'role',
  51. ]),
  52. },
  53. onLoad() {
  54. this.mixinsListApi = (this.role ? 'boss' : 'employee') + 'QueryCollectionJobList'
  55. },
  56. methods: {
  57. clickSwipeAction({e, item}){
  58. console.log(e, item);
  59. },
  60. // getDataThen(list, total, result){
  61. // let l = []
  62. // result.forEach(res => {
  63. // if(this.role){
  64. // res.employResume.collection = res.employCollectionResume
  65. // l.push(res.employResume)
  66. // }else{
  67. // res.employJob.collection = res.employCollectionJob
  68. // l.push(res.employJob)
  69. // }
  70. // })
  71. // this.list2 = l
  72. // },
  73. }
  74. }
  75. </script>
  76. <style scoped lang="scss">
  77. .page{
  78. /deep/ .uv-swipe-action{
  79. width: 100%;
  80. }
  81. }
  82. </style>