list.vue 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <template>
  2. <view>
  3. <view
  4. class="list ss-m-x-15"
  5. v-for="item in items"
  6. :key="item.id"
  7. >
  8. <view class="list-top">
  9. <text class="list-top-person">牛人:{{ item.sendPerson?.name }}</text>
  10. <text class="list-top-time">{{ timesTampChange(item.createTime) }}</text>
  11. </view>
  12. <view class="list-remuneration">
  13. 薪酬:
  14. <span v-if="item.job?.payFrom && item.job?.payTo">{{ item.job?.payFrom + '-' + item.job?.payTo }}</span>
  15. <span v-else>面议</span>
  16. </view>
  17. <view class="list-company" style="border-radius: 0 0 12px 12px;">
  18. <text>{{ item.enterprise?.anotherName }}</text>
  19. <text>{{ item.enterprise?.anotherName && item.job?.name ? ' · ' : '' }}</text>
  20. <text>{{ item.job?.name }}</text>
  21. </view>
  22. </view>
  23. </view>
  24. </template>
  25. <script setup>
  26. import { timesTampChange } from '@/utils/date'
  27. const props = defineProps({
  28. items: {
  29. type: Array,
  30. default: () => []
  31. }
  32. })
  33. </script>
  34. <style lang="scss" scoped>
  35. .list {
  36. background: #fff;
  37. margin-top: 20rpx;
  38. border-radius: 12px;
  39. &-top {
  40. padding: 20rpx;
  41. display: flex;
  42. justify-content: space-between;
  43. align-items: center;
  44. &-person {
  45. font-size: .9em;
  46. color: #333;
  47. }
  48. &-time {
  49. font-size: .75em;
  50. color: #999;
  51. }
  52. }
  53. &-company {
  54. padding: 30rpx 20rpx;
  55. font-size: 28rpx;
  56. color: #666;
  57. background: linear-gradient(90deg, #f5fcfc 0, #fcfbfa 100%);
  58. }
  59. &-remuneration {
  60. padding: 20rpx;
  61. font-size: 28rpx;
  62. color: #666;
  63. }
  64. }
  65. </style>