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

108 lines
1.8 KiB

4 months ago
4 months ago
4 months ago
4 months ago
2 months ago
4 months ago
4 months ago
2 months ago
4 months ago
4 months ago
2 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
2 months ago
4 months ago
4 months ago
4 months ago
4 months ago
2 months ago
4 months ago
4 months ago
4 months ago
4 months ago
2 months ago
4 months ago
4 months ago
4 months ago
  1. <template>
  2. <!-- 联系记录 -->
  3. <view class="page">
  4. <navbar title="联系记录"
  5. bgColor="#3796F8"
  6. leftClick
  7. color="#fff"
  8. @leftClick="$utils.navigateBack"/>
  9. <view class="">
  10. <uv-tabs :list="tabsList"
  11. lineColor="#3796F8"
  12. lineHeight="8rpx"
  13. lineWidth="50rpx"
  14. :scrollable="false"
  15. @click="clickTabs"></uv-tabs>
  16. </view>
  17. <!-- 工人看到的 -->
  18. <workList
  19. :api="api"
  20. ref="list"
  21. keyName="employJob"
  22. v-if="!role && type == 0"
  23. />
  24. <bossList
  25. :api="api"
  26. ref="list"
  27. v-if="!role && type == 1"/>
  28. <!-- 老板看到的 -->
  29. <userList
  30. :api="api"
  31. ref="list"
  32. keyName="employResume"
  33. v-if="role"/>
  34. </view>
  35. </template>
  36. <script>
  37. import workList from '@/components/list/workList/index.vue'
  38. import bossList from '@/components/list/bossList/index.vue'
  39. import userList from '@/components/list/userList/index.vue'
  40. import { mapState } from 'vuex'
  41. export default {
  42. components : {
  43. bossList,
  44. workList,
  45. userList,
  46. },
  47. data() {
  48. return {
  49. tabsList: [
  50. {
  51. name: '我看过谁'
  52. },
  53. {
  54. name: '谁看过我'
  55. },
  56. ],
  57. type : 0,
  58. api : ''
  59. }
  60. },
  61. computed : {
  62. ...mapState([
  63. 'role',
  64. ]),
  65. },
  66. onLoad() {
  67. this.setApi()
  68. },
  69. onShow() {
  70. this.$nextTick(() => {
  71. this.$refs.list.getData()
  72. })
  73. },
  74. onPullDownRefresh(){
  75. this.$refs.list.getData()
  76. },
  77. onReachBottom() {
  78. this.$refs.list.loadMoreData()
  79. },
  80. methods: {
  81. clickTabs({index}) {
  82. this.type = index
  83. this.setApi()
  84. this.$nextTick(() => {
  85. this.$refs.list.getData()
  86. })
  87. },
  88. setApi(){
  89. if(this.role){
  90. this.api = ['bossQueryWatchWho', 'bossQueryWatchMe'][this.type]
  91. }else{
  92. this.api = ['queryWatchWhoEmployee', 'employeeQueryWatchMe'][this.type]
  93. }
  94. },
  95. }
  96. }
  97. </script>
  98. <style scoped lang="scss">
  99. </style>