index.vue 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. <template>
  2. <view class="ss-m-x-20">
  3. <!-- 岗位列表 -->
  4. <view v-if="data?.length" class="ss-p-b-30 ss-p-t-20">
  5. <view v-for="(item, index) in data" :key="index" class="mList">
  6. <!-- 职位信息 -->
  7. <view class="list-shape" style="border-radius: 12px;">
  8. <!-- 职位 -->
  9. <view class="titleBox my-5">
  10. <view style="display: flex;align-items: center;">
  11. <rich-text v-if="item.name?.indexOf('style') !== -1" class="job-name" :nodes="item.name"></rich-text>
  12. <view v-else class="job-name">{{ formatName(item.name) }}</view>
  13. </view>
  14. </view>
  15. <!-- 薪酬、工作地、学历、工作经验 -->
  16. <view class="font-size-13 ellipsis ss-m-5" style="color: #808080;">
  17. <span>{{item.positionName }}</span>
  18. </view>
  19. <view class="d-flex align-center justify-space-between">
  20. <view class="font-size-13 ellipsis" style="flex: 1;">
  21. <span class="tag-gap" style="color: #808080;">
  22. <span>{{item.area?.str ?? '全国' }}</span>
  23. <span class="divider-mx" v-if="item.eduName">|</span>
  24. <span>{{item.eduName }}</span>
  25. <span class="divider-mx" v-if="item.expName">|</span>
  26. <span>{{item.expName }}</span>
  27. <span class="divider-mx">|</span>
  28. <span>{{!item.payFrom && !item.payTo ? '面议' : `${item.payFrom}-${item.payTo}${item.payName ? '/' + item.payName : ''}` }}</span>
  29. </span>
  30. <view class="font-size-13 ss-m-t-10" style="color: #808080;">
  31. <view>刷新时间:{{ item.refreshTime ? timesTampChange(item.refreshTime, 'Y-M-D h:m') : '暂无' }}</view>
  32. </view>
  33. </view>
  34. <view class="d-flex flex-column align-center justify-center resumeCount" @tap="handleToResume(item)">
  35. <view style="font-size: 14px;">{{ item.payFrom || 0 }}</view>
  36. <view>已投递简历</view>
  37. </view>
  38. </view>
  39. <view class="font-size-13 color-666 ss-m-t-10">
  40. <view class="ss-m-t-10">到期时间:{{ item.expireTime ? timesTampChange(item.expireTime, 'Y-M-D') : '长期有效' }}</view>
  41. </view>
  42. <view class="sub-li-bottom">
  43. <!-- <view v-if="tab === 1">
  44. <span class="cursor-pointer" @tap="handleAction(item.top ? 4 : 3, '', item)">{{ item.top ? '取消置顶' : $t('common.topping') }}</span>
  45. <span class="divider-mx">|</span>
  46. <span class="cursor-pointer" @tap="handleAction(0, '', item)">{{ $t('common.close') }}</span>
  47. </view> -->
  48. <!-- <span v-if="(item.status-0) === 99 && tab === 0" class="cursor-pointer color-primary" @tap="toPay(item)">发布</span> -->
  49. <!-- <span class="divider-mx" v-if="tab !== 2 && tab !== 3">|</span> -->
  50. <span v-if="tab === 2" class="cursor-pointer" @tap="handleAction(1, '', item, item)">激活</span>
  51. <span class="divider-mx" v-if="tab === 2"></span>
  52. <span class="cursor-pointer" @tap="handleDetail(item)">详情</span>
  53. <!-- <view v-if="tab !== 3">
  54. <span class="divider-mx">|</span>
  55. <span class="cursor-pointer" :style="{'color': item.edit ? '#333' : '#999'}" @tap="handleEdit(item)">{{ $t('common.edit') }}</span>
  56. </view> -->
  57. </view>
  58. </view>
  59. </view>
  60. <view v-if="props.noMore" class="noMore">暂无更多数据</view>
  61. </view>
  62. <view v-else>
  63. <image src="https://minio.citupro.com/dev/static/nodata.png" mode="widthFix" style="width: 100vw;height: 100vh;"></image>
  64. <view style="color: gray; text-align: center;">暂无数据</view>
  65. </view>
  66. </view>
  67. </template>
  68. <script setup>
  69. // import { commissionCalculation } from '@/utils/position'
  70. import { timesTampChange } from '@/utils/date'
  71. import { formatName } from '@/utils/getText'
  72. import { ref, watch } from 'vue'
  73. const emit = defineEmits(['entClick'])
  74. const props = defineProps({
  75. tab: { type: Number, default: 0 },
  76. list: { type: Array, default: () => [] },
  77. noMore: { type: Boolean, default: false },
  78. showWelfareTag: { type: Boolean, default: true }
  79. })
  80. const data = ref()
  81. watch(
  82. () => props.list,
  83. (newVal) => {
  84. data.value = newVal?.length ? newVal : []
  85. },
  86. { immediate: true },
  87. { deep: true }
  88. )
  89. // 职位关闭、激活、刷新、置顶
  90. const handleAction = async (index, type, { id }, item) => {
  91. }
  92. // 职位关闭、激活、刷新、置顶
  93. const handleEdit = async (val) => {
  94. if (!val.id || !val.edit) {
  95. uni.showToast({
  96. title: '职位发布时间超过24小时的不支持编辑',
  97. icon: 'none',
  98. duration: 2000
  99. })
  100. return
  101. }
  102. }
  103. // 支付
  104. const toPay = async (val) => {
  105. }
  106. // 职位详情
  107. const handleDetail = (item) => {
  108. if (!item.id) return
  109. let url = `/pagesB/positionDetail/index?id=${item.id}&area=${item.areaName}`
  110. uni.navigateTo({ url })
  111. }
  112. // 查看职位投递简历
  113. const handleToResume = (val) => {
  114. let path = `/recruit/enterprise/invite/resume?id=${val.id}`
  115. if (val.bizId) path += `&jobFairId=${val.bizId}`
  116. router.push(path)
  117. }
  118. </script>
  119. <style scoped lang="scss">
  120. .noMore{
  121. margin: 20px 0;
  122. }
  123. .date-time{
  124. color:#d9d0d2;
  125. float: right;
  126. }
  127. .divided-line {
  128. width: 100%;
  129. height: 1px;
  130. background-color: #f0f2f7;
  131. margin: 20px 0;
  132. }
  133. .enterAvatar{
  134. width: 40px;
  135. height: 40px;
  136. // border-radius: 50%;
  137. margin: auto;
  138. }
  139. .job-name {
  140. font-size: 16px;
  141. font-weight: 700;
  142. color: #0E100F;
  143. max-width: 80vw;
  144. overflow: hidden;
  145. white-space: nowrap;
  146. text-overflow: ellipsis;
  147. }
  148. .sub-li-bottom {
  149. text-align: right;
  150. border-top: 1px dashed #eee;
  151. margin-top: 10px;
  152. padding-top: 10px;
  153. font-size: 13px;
  154. color: #666;
  155. }
  156. .salary-text {
  157. float: right;
  158. color: #00B760;
  159. font-weight: 700;
  160. }
  161. .list-shape {
  162. padding: 10px 30rpx 10px;
  163. background-color: #fff;
  164. border-radius: 12px 12px 0 0;
  165. .titleBox {
  166. display: flex;
  167. align-items: center;
  168. justify-content: space-between;
  169. }
  170. }
  171. .tag-gap{
  172. margin: 10rpx 10rpx 10rpx 0;
  173. }
  174. .tag-gap1{
  175. margin-bottom: 20px;
  176. }
  177. .divider-mx{
  178. margin: 0 10rpx;
  179. }
  180. .divider {
  181. color:#e4d4d2;
  182. }
  183. //公司名称
  184. .cer-end{
  185. position: absolute;
  186. top: 85%;
  187. right: 16%;
  188. }
  189. .cer-text{
  190. text-decoration: underline;
  191. margin: 0 5rpx;
  192. }
  193. //一行展示不全...
  194. .dis{
  195. display: flex;
  196. align-items: center;
  197. }
  198. .show-more{
  199. width: 26vw;
  200. white-space: nowrap;
  201. overflow: hidden;
  202. text-overflow: ellipsis;
  203. }
  204. .mList {
  205. margin-bottom: 20rpx;
  206. }
  207. /* 列表触底暂无更多 */
  208. .noMore{ text-align:center; color:grey; }
  209. .mt { margin-top: 15rpx; }
  210. .mb { margin-bottom: 10rpx; }
  211. .ml { margin-left: 20rpx; }
  212. .mr { margin-right: 20rpx; }
  213. .mr-10{ margin-right: 10rpx; }
  214. .my-5{ margin: 5px 0; }
  215. .disable {
  216. position: relative;
  217. overflow: hidden;
  218. &::after {
  219. content: '已失效';
  220. position: absolute;
  221. display: flex;
  222. align-items: center;
  223. justify-content: center;
  224. font-size: 1.2em;
  225. font-weight: bold;
  226. color: #fc796f;
  227. top: 0;
  228. border-radius: 12px;
  229. left: 0;
  230. width: 100%;
  231. height: 100%;
  232. background-color: rgba(255, 255, 255, 0.75);
  233. }
  234. }
  235. .resumeCount {
  236. color: #00B760;
  237. font-size: 12px;
  238. margin: 0 10px;
  239. }
  240. </style>