item.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. <template>
  2. <view v-if="list.length > 0" class="ss-m-x-20">
  3. <view v-for="(item, index) in list" :key="index">
  4. <view class="sub-li-bottom" @click.stop="toDetail(0, item)">
  5. <view class="avatarBox">
  6. <image class="enterAvatar" :src="item.enterprise?.logoUrl || 'https://minio.citupro.com/dev/menduner/company-avatar.png'"></image>
  7. </view>
  8. <view>
  9. <span class="ss-m-x-20 color-66" style="font-weight: bold;">{{ item.contact?.name || ' -- ' }}</span>
  10. <span>{{ item.contact?.postNameCn }}</span>
  11. <span class="divider tag-gap1 ss-m-x-10" v-if="item.contact?.postNameCn && item.invitePhone"> | </span>
  12. <span class="mr">{{ item.invitePhone }}</span>
  13. </view>
  14. </view>
  15. <!-- 职位信息 -->
  16. <view class="list-shape">
  17. <view class="titleBox my-5" @click="toDetail(1, item)">
  18. <span style="font-size: 16px;font-weight: 700; color: #345768;">{{item.job?.name}}</span>
  19. <span class="salary-text">{{ item.job?.payFrom }}-{{ item.job?.payTo }}/{{ item.job?.payName }}</span>
  20. </view>
  21. <!-- 面试时间、地点 -->
  22. <view class="color-666 font-size-14 ss-m-t-20" @click="toDetail(1, item)">
  23. <view>面试时间:{{ timesTampChange(item.time, 'Y-M-D h:m') }}</view>
  24. <view class="ss-m-t-20">面试地点:{{ item.address }}</view>
  25. </view>
  26. <view v-if="item.status === '0'">
  27. <view class="divided-line"></view>
  28. <view class="d-flex justify-end">
  29. <span style="color: #dd524d;text-decoration: underline;" @click="handleAction(item, 'refuse')">拒绝</span>
  30. <span style="color: #00897B;margin-left: 65rpx;text-decoration: underline;" @click="handleAction(item, 'agree')">同意</span>
  31. </view>
  32. </view>
  33. </view>
  34. </view>
  35. </view>
  36. </template>
  37. <script setup>
  38. import { timesTampChange } from '@/utils/date'
  39. const emits = defineEmits(['action'])
  40. const props = defineProps({
  41. list: { type: Array, default: () => [] }
  42. })
  43. //岗位详情
  44. const toDetail = (isPosition, item) =>{
  45. const url = isPosition ? `/pagesB/positionDetail/index?id=${item.job?.id}` : `/pagesB/companyDetail/index?id=${item.enterprise?.id}`
  46. uni.navigateTo({ url })
  47. }
  48. const handleAction = (item, type) => {
  49. emits('action', item, type)
  50. }
  51. </script>
  52. <style scoped lang="scss">
  53. .noMore{
  54. margin: 20px 0;
  55. }
  56. .date-time{
  57. color:#d9d0d2;
  58. float: right;
  59. }
  60. .divided-line {
  61. width: 100%;
  62. height: 1px;
  63. background-color: #f0f2f7;
  64. margin: 20px 0;
  65. }
  66. .enterAvatar{
  67. width: 40px;
  68. height: 40px;
  69. border-radius: 50%;
  70. margin: auto;
  71. }
  72. .sub-li-bottom {
  73. margin-top: 10px;
  74. display: flex;
  75. // justify-content:space-between;
  76. align-items: center;
  77. background: linear-gradient(90deg, #f5fcfc 0, #fcfbfa 100%);
  78. font-size: 13px;
  79. padding: 5px 30rpx;
  80. border-radius: 12px 12px 0 0;
  81. .avatarBox {
  82. max-width: 40px;
  83. max-height: 40px;
  84. }
  85. }
  86. .salary-text {
  87. float: right;
  88. color: #CEC149;
  89. font-weight: 700;
  90. }
  91. .list-shape {
  92. padding: 10px 30rpx 10px;
  93. background-color: #fff;
  94. border-radius: 0 0 12px 12px;
  95. .titleBox {
  96. display: flex;
  97. align-items: center;
  98. justify-content: space-between;
  99. }
  100. }
  101. .tag-gap{
  102. margin: 10rpx 10rpx 10rpx 0;
  103. }
  104. .tag-gap1{
  105. margin-bottom: 20px;
  106. }
  107. .divider-mx{
  108. margin: 0 10rpx;
  109. }
  110. .divider {
  111. color:#e4d4d2;
  112. }
  113. //公司名称
  114. .cer-end{
  115. position: absolute;
  116. top: 85%;
  117. right: 16%;
  118. }
  119. .cer-text{
  120. text-decoration: underline;
  121. margin: 0 5rpx;
  122. }
  123. //一行展示不全...
  124. .dis{
  125. display: flex;
  126. align-items: center;
  127. }
  128. .show-more{
  129. width: 26vw;
  130. white-space: nowrap;
  131. overflow: hidden;
  132. text-overflow: ellipsis;
  133. }
  134. /* 列表触底暂无更多 */
  135. .noMore{ text-align:center; color:grey; }
  136. .mt { margin-top: 10rpx; }
  137. .mb { margin-bottom: 10rpx; }
  138. .ml { margin-left: 20rpx; }
  139. .mr { margin-right: 20rpx; }
  140. .mr-10{ margin-right: 10rpx; }
  141. .my-5{ margin: 5px 0; }
  142. </style>