item.vue 4.0 KB

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