index.vue 6.2 KB

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