index.vue 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. <template>
  2. <view class="ss-m-x-20">
  3. <view v-if="list.length > 0" class="ss-p-b-30 ss-p-t-20">
  4. <view v-for="(item, index) in list" :key="index" class="mList" :class="{ 'disable': item.job?.status === '1'}" @click="toDetail(item)">
  5. <!-- 职位信息 -->
  6. <view class="list-shape">
  7. <!-- 职位 -->
  8. <view class="titleBox my-5">
  9. <view style="display: flex;align-items: center;">
  10. <view v-if="item.job?.hire" class="iconfont icon-a-1_zhaopin ss-m-r-10" style="color: #e03506; font-size: 25px;"></view>
  11. <rich-text v-if="item.job?.name?.indexOf('style') !== -1" class="job-name" :nodes="item.job.name"></rich-text>
  12. <view v-else class="job-name">{{item.job?.name}}</view>
  13. </view>
  14. <span v-if="!item.job?.payFrom && !item.job?.payTo" class="salary-text">面议</span>
  15. <span v-else class="salary-text">{{ item.job?.payFrom }}-{{ item.job?.payTo }}{{ item.job?.payName ? '/' + item.job?.payName : '' }}</span>
  16. </view>
  17. <!-- 工作地 -->
  18. <view style="font-size: 13px;" class="mt">
  19. <span class="tag-gap" style="color: #808080;">
  20. <span>{{item.job?.areaName }}</span>
  21. <span class="divider-mx" v-if="item.job?.areaName && item.job?.eduName">|</span>
  22. <span>{{item.job?.eduName }}</span>
  23. <span class="divider-mx" v-if="item.job?.expName">|</span>
  24. <span>{{item.job?.expName }}</span>
  25. </span>
  26. </view>
  27. <!-- 岗位tag -->
  28. <view class="mt" v-if="showWelfareTag">
  29. <uni-tag
  30. v-for="(tag,i) in item.job?.tagList || []"
  31. :key="i"
  32. class="tag-gap"
  33. :text="tag"
  34. inverted="false"
  35. size="mini"
  36. custom-style="background-color: #ececec;color:#666;border-color:#ececec;display: inline-block;"
  37. />
  38. </view>
  39. <view style="text-align: end;" v-if="item.job?.hire">
  40. <uni-tag
  41. class="ss-m-l-10"
  42. v-if="item?.job?.hirePrice && item?.job?.hirePrice > 0"
  43. :text="`赏金:${commissionCalculation(item.job.hirePrice, 1)}元`"
  44. inverted="false"
  45. size="default"
  46. custom-style="background-color: #e2f0ef; color:#00897B; border-color:#e2f0ef;"
  47. />
  48. </view>
  49. </view>
  50. <!-- 企业信息 -->
  51. <view class="sub-li-bottom">
  52. <view class="avatarBox">
  53. <image class="enterAvatar ml" :src="item.enterprise?.logoUrl || 'https://minio.citupro.com/dev/menduner/company-avatar.png'"></image>
  54. </view>
  55. <view class="ss-m-l-35">
  56. <span class="mr">{{ item.enterprise?.anotherName || item.enterprise.name }}</span>
  57. <span class="color-999">{{ item.enterprise?.industryName || '' }}</span>
  58. <span class="divider tag-gap1" v-if="item.enterprise?.industryName && item.enterprise?.scaleName"> | </span>
  59. <span class="mr color-999">{{ item.enterprise?.scaleName || '' }}</span>
  60. </view>
  61. </view>
  62. </view>
  63. <view v-if="props.noMore" class="noMore">暂无更多数据</view>
  64. </view>
  65. <view v-else>
  66. <image src="https://minio.citupro.com/dev/static/nodata.png" mode="widthFix" style="width: 100vw;height: 100vh;"></image>
  67. <view style="color: gray; text-align: center;">暂无数据</view>
  68. </view>
  69. </view>
  70. </template>
  71. <script setup>
  72. import { commissionCalculation } from '@/utils/position'
  73. const props = defineProps({
  74. list: { type: Array, default: () => [] },
  75. noMore: { type: Boolean, default: false },
  76. showWelfareTag: { type: Boolean, default: true }
  77. })
  78. //岗位详情
  79. const toDetail = (item) =>{
  80. const url = `/pagesB/positionDetail/index?id=${item.job?.id}`
  81. uni.navigateTo({ url })
  82. }
  83. </script>
  84. <style scoped lang="scss">
  85. .noMore{
  86. margin: 20px 0;
  87. }
  88. .date-time{
  89. color:#d9d0d2;
  90. float: right;
  91. }
  92. .divided-line {
  93. width: 100%;
  94. height: 1px;
  95. background-color: #f0f2f7;
  96. margin: 20px 0;
  97. }
  98. .enterAvatar{
  99. width: 40px;
  100. height: 40px;
  101. border-radius: 50%;
  102. margin: auto;
  103. }
  104. .job-name {
  105. font-size: 16px;
  106. font-weight: 700;
  107. color: #345768;
  108. max-width: 50vw;
  109. overflow: hidden;
  110. white-space: nowrap;
  111. text-overflow: ellipsis;
  112. }
  113. .sub-li-bottom {
  114. display: flex;
  115. align-items: center;
  116. background-color: #fff;
  117. font-size: 13px;
  118. padding: 5px;
  119. border-radius: 0 0 12px 12px;
  120. .avatarBox {
  121. max-width: 40px;
  122. max-height: 40px;
  123. }
  124. }
  125. .salary-text {
  126. float: right;
  127. color: #CEC149;
  128. font-weight: 700;
  129. }
  130. .list-shape {
  131. padding: 10px 30rpx 10px;
  132. background-color: #fff;
  133. border-radius: 12px 12px 0 0;
  134. .titleBox {
  135. display: flex;
  136. align-items: center;
  137. justify-content: space-between;
  138. }
  139. }
  140. .tag-gap{
  141. margin: 10rpx 10rpx 10rpx 0;
  142. }
  143. .tag-gap1{
  144. margin-bottom: 20px;
  145. }
  146. .divider-mx{
  147. margin: 0 10rpx;
  148. }
  149. .divider {
  150. color:#e4d4d2;
  151. }
  152. //公司名称
  153. .cer-end{
  154. position: absolute;
  155. top: 85%;
  156. right: 16%;
  157. }
  158. .cer-text{
  159. text-decoration: underline;
  160. margin: 0 5rpx;
  161. }
  162. //一行展示不全...
  163. .dis{
  164. display: flex;
  165. align-items: center;
  166. }
  167. .show-more{
  168. width: 26vw;
  169. white-space: nowrap;
  170. overflow: hidden;
  171. text-overflow: ellipsis;
  172. }
  173. .mList {
  174. margin-bottom: 20rpx;
  175. }
  176. /* 列表触底暂无更多 */
  177. .noMore{ text-align:center; color:grey; }
  178. .mt { margin-top: 15rpx; }
  179. .mb { margin-bottom: 10rpx; }
  180. .ml { margin-left: 20rpx; }
  181. .mr { margin-right: 20rpx; }
  182. .mr-10{ margin-right: 10rpx; }
  183. .my-5{ margin: 5px 0; }
  184. .disable {
  185. position: relative;
  186. overflow: hidden;
  187. &::after {
  188. content: '已失效';
  189. position: absolute;
  190. display: flex;
  191. align-items: center;
  192. justify-content: center;
  193. font-size: 1.2em;
  194. font-weight: bold;
  195. color: #fc796f;
  196. top: 0;
  197. border-radius: 12px;
  198. left: 0;
  199. width: 100%;
  200. height: 100%;
  201. background-color: rgba(255, 255, 255, 0.75);
  202. }
  203. }
  204. </style>