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

83 lines
1.6 KiB

4 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
4 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
4 months ago
4 months ago
  1. <template>
  2. <!-- 谁看过我 -->
  3. <view class="page">
  4. <navbar :title="role ? '谁看过我的招工' : '谁看过我的简历'"
  5. bgColor="#3796F8"
  6. leftClick
  7. color="#fff"
  8. @leftClick="$utils.navigateBack"/>
  9. <!-- <statisticsNumber title="简历被查看量" /> -->
  10. <statisticsNumber :title="role ? '招工被查看量' : '简历被查看量'" :num="total"/>
  11. <userList :api="mixinsListApi" ref="list" v-if="role"/>
  12. <bossList :api="mixinsListApi" ref="list" v-else/>
  13. </view>
  14. </template>
  15. <script>
  16. import bossList from '@/components/list/bossList/index.vue'
  17. import userList from '@/components/list/userList/index.vue'
  18. import statisticsNumber from '../components/statistics/statisticsNumber.vue'
  19. // import mixinList from '@/mixins/list.js'
  20. import { mapState } from 'vuex'
  21. export default {
  22. // mixins : [mixinList],
  23. components : {
  24. statisticsNumber,
  25. bossList,
  26. userList,
  27. },
  28. data() {
  29. return {
  30. options: [
  31. {
  32. text: '修改',
  33. style: {
  34. backgroundColor: '#ffa12c'
  35. }
  36. },
  37. {
  38. text: '删除',
  39. style: {
  40. backgroundColor: '#FA5A0A'
  41. }
  42. },
  43. ],
  44. mixinsListApi : '',
  45. total : 0,
  46. }
  47. },
  48. computed : {
  49. ...mapState([
  50. 'role',
  51. ]),
  52. },
  53. onLoad() {
  54. this.mixinsListApi = (this.role ? 'boss' : 'employee') + 'QueryWatchMe'
  55. },
  56. onShow() {
  57. this.$nextTick(() => {
  58. this.$refs.list.getData()
  59. })
  60. },
  61. onReachBottom() {
  62. this.$refs.list.loadMoreData()
  63. },
  64. methods: {
  65. clickSwipeAction({e, item}){
  66. console.log(e, item);
  67. },
  68. }
  69. }
  70. </script>
  71. <style scoped lang="scss">
  72. .page{
  73. /deep/ .uv-swipe-action{
  74. width: 100%;
  75. }
  76. }
  77. </style>