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

84 lines
1.6 KiB

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