特易招,招聘小程序
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.

85 lines
1.6 KiB

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