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

95 lines
1.9 KiB

4 months ago
2 months ago
4 months ago
2 months ago
4 months ago
2 months ago
4 months ago
2 months ago
4 months ago
2 months ago
4 months ago
2 months ago
4 months ago
  1. <template>
  2. <view>
  3. <navbar
  4. :title="title"
  5. leftClick @leftClick="$utils.navigateBack" />
  6. <view class="search">
  7. <uv-search
  8. placeholder="请输入岗位/公司名称"
  9. :showAction="false"
  10. search-icon-size="40rpx"
  11. @search="search"
  12. v-model="queryParams.title"></uv-search>
  13. </view>
  14. <!-- 筛选器 -->
  15. <!-- <screenWork @clickItem="clickItem" ref="screenWork"/> -->
  16. <!-- 老板看到的 -->
  17. <userList ref="workList" v-if="role"/>
  18. <!-- 工人看到的 -->
  19. <workList ref="workList" v-else/>
  20. </view>
  21. </template>
  22. <script>
  23. import screenWork from '@/components/screen/screenWork.vue'
  24. import workList from '@/components/list/workList/index.vue'
  25. import userList from '@/components/list/userList/index.vue'
  26. import {
  27. mapState,
  28. } from 'vuex'
  29. export default {
  30. components : {
  31. workList,
  32. screenWork,
  33. userList,
  34. },
  35. computed: {
  36. ...mapState(['userInfo', 'role']),
  37. },
  38. data() {
  39. return {
  40. keyword : '',
  41. title : '',
  42. queryParams : {
  43. },
  44. screenWorkList : [],
  45. }
  46. },
  47. onPullDownRefresh(){
  48. this.$refs.workList.getData(this.screenWorkList, this.queryParams)
  49. },
  50. // 页面显示的时候触发
  51. onShow() {
  52. this.$refs.workList.getData(this.screenWorkList, this.queryParams)
  53. },
  54. onLoad({typeId, title, keyword}) {
  55. if(title){
  56. this.title = title
  57. }
  58. if(typeId){
  59. this.queryParams.typeId = typeId
  60. }
  61. if(keyword){
  62. this.queryParams.title = keyword
  63. this.title = keyword
  64. }
  65. },
  66. methods: {
  67. clickItem(result){
  68. console.log(result);
  69. this.screenWorkList = result
  70. this.$refs.workList.getData(this.screenWorkList, this.queryParams)
  71. },
  72. search(){
  73. this.$refs.workList.getData(this.screenWorkList, this.queryParams)
  74. },
  75. }
  76. }
  77. </script>
  78. <style scoped lang="scss">
  79. .search{
  80. padding: 20rpx;
  81. display: flex;
  82. justify-content: center;
  83. background-color: #fff;
  84. /deep/ .uv-search__content__icon{
  85. padding: 10rpx 0;
  86. }
  87. }
  88. </style>