index.vue 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. <template>
  2. <view v-if="list.length > 0">
  3. <view v-for="(item, index) in list" :key="index" @click="toDetail(1, item)">
  4. <!-- 职位信息 -->
  5. <view class="list-shape">
  6. <!-- 职位 -->
  7. <view class="titleBox my-5">
  8. <span>
  9. <span style="font-size: 16px;font-weight: 700;color: black;">{{item.job?.name}}</span>
  10. <!-- <span class="my-5" v-if="item.job?.hire">
  11. <uni-icons type="staff-filled" size="25" color="#fc6d5e"></uni-icons>
  12. </span> -->
  13. <template v-if="item.job?.hire">
  14. <svg t="1719193613512" class="icon ml mr" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7666" width="22" height="22">
  15. <path d="M592.331776 439.619584l10.840064-30.636032 49.16224 17.398784-10.842112 30.633984-49.160192-17.396736z m96.054272-115.116032l-10.840064 30.635008-49.156096-17.39776 10.842112-30.635008 49.154048 17.39776z m296.593408 363.10528L451.8912 498.937856l-27.737088 78.367744 57.70752 20.424704-55.916544 90.039296 230.827008 81.692672c-9.371648 28.745728-21.200896 34.97984-47.558656 25.652224-27.072512-9.581568-81.678336-29.704192-116.795392-43.738112-2.545664 34.371584-6.008832 66.813952-11.152384 99.465216 45.597696 16.137216 100.243456 33.875968 127.8208 42.0352 69.653504 20.640768 105.135104 1.93024 132.8128-60.423168 15.962112-36.032512 30.455808-70.188032 43.681792-100.77696L565.44256 653.766656l14.022656-21.492736 369.80224 130.878464c-87.150592 150.434816-249.872384 251.63776-436.237312 251.63776-87.114752 0-169.064448-22.115328-240.54784-61.032448l86.624256-244.754432c14.751744 3.617792 29.504512 7.236608 43.544576 10.602496 8.411136-28.286976 20.257792-61.770752 33.829888-97.855488-15.0016-2.906112-29.044736-6.270976-43.082752-9.636864l125.060096-353.362944 24.221696 8.572928 32.776192-92.613632-275.70688-97.577984-32.779264 92.61568 27.072512 9.57952-133.13024 376.160256c-7.324672-1.603584-87.942144-16.722944-151.430144-28.83072A511.248384 511.248384 0 0 1 9.216 510.977024C9.216 232.728576 234.78272 7.161856 513.030144 7.161856c95.85664 0 185.460736 26.7776 261.745664 73.250816l-58.9056 166.436864-135.359488-47.906816-100.349952 283.546624L843.498496 611.08224l100.350976-283.547648-136.786944-48.410624 48.638976-137.43104c99.104768 92.005376 161.142784 223.39072 161.142784 369.28512 0 62.150656-11.28448 121.66144-31.864832 176.630784zM732.680192 489.288704l10.84416-30.63296 49.156096 17.400832-10.842112 30.629888-49.158144-17.39776z m96.057344-115.11296l-10.845184 30.635008-49.155072-17.400832 10.840064-30.633984 49.160192 17.399808z m-575.744 204.278784l25.213952-71.240704 48.444416 17.144832-23.701504 66.967552c-16.89088-4.37248-33.068032-8.49408-49.956864-12.87168z m178.547712-350.462976l-23.954432 67.678208L359.1424 278.528l23.955456-67.680256 48.443392 17.143808zM306.69824 426.71104l23.953408-67.683328 48.44544 17.145856-23.952384 67.68128-48.446464-17.143808zM193.521664 900.518912c-80.457728-66.070528-140.06272-156.583936-167.51104-260.184064 92.57472 17.773568 208.65024 39.995392 242.648064 47.880192l-75.137024 212.303872z" fill="#FE6E5A" p-id="7667"></path>
  16. </svg>
  17. <uni-tag
  18. v-if="item?.job?.hirePrice && item?.job?.hirePrice > 0"
  19. class="tag-gap1"
  20. :text="`赏金:${commissionCalculation(item.job.hirePrice, 1)}元`"
  21. inverted="false"
  22. size="mini"
  23. custom-style="background-color: #e2f0ef;color:#00897B;border-color:#e2f0ef;"
  24. />
  25. </template>
  26. </span>
  27. <span class="salary-text">{{ item.job?.payFrom }}-{{ item.job?.payTo }}/{{ item.job?.payName }}</span>
  28. </view>
  29. <!-- 工作地 -->
  30. <view style="font-size: 13px;" class="mt">
  31. <span class="tag-gap">
  32. <span>{{item.job?.areaName }}</span>
  33. <span class="divider-mx">|</span>
  34. <span>{{item.job?.eduName }}</span>
  35. <span class="divider-mx">|</span>
  36. <span>{{item.job?.expName }}</span>
  37. </span>
  38. <!-- <span class="date-time">
  39. <span>2024-07-14</span>
  40. </span> -->
  41. </view>
  42. <!-- 岗位tag -->
  43. <view class="mt" v-if="showWelfareTag">
  44. <uni-tag
  45. v-for="(tag,i) in item.enterprise?.welfareList || []"
  46. :key="i"
  47. class="tag-gap"
  48. :text="tag"
  49. inverted="false"
  50. size="mini"
  51. custom-style="background-color: #eef1f7;color:#7f828b;border-color:#eef1f7;"
  52. />
  53. </view>
  54. </view>
  55. <!-- 企业信息 -->
  56. <view class=sub-li-bottom>
  57. <view>
  58. <!-- 企业简称 -->
  59. <span
  60. class="mr"
  61. style="font-weight: bold;"
  62. @click.stop="toDetail(0, item)"
  63. >
  64. {{ item.enterprise?.anotherName || ' -- ' }}
  65. </span>
  66. <span>{{ item.enterprise?.industryName || '行业未知' }}</span>
  67. <span class="divider tag-gap1"> | </span>
  68. <span class="mr">{{ item.enterprise?.scaleName || '规模未知' }}</span>
  69. </view>
  70. <view class="avatarBox" @click.stop="toDetail(0, item)">
  71. <image class="enterAvatar ml" :src="item.enterprise?.logoUrl || 'https://minio.citupro.com/dev/menduner/company-avatar.png'"></image>
  72. </view>
  73. </view>
  74. </view>
  75. <view v-if="props.noMore" class="noMore">暂无更多数据</view>
  76. </view>
  77. </template>
  78. <script setup>
  79. import { commissionCalculation } from '@/utils/position'
  80. // import { ref } from 'vue'
  81. const props = defineProps({
  82. list: { type: Array, default: () => [] },
  83. noMore: { type: Boolean, default: false },
  84. showWelfareTag: { type: Boolean, default: true }
  85. })
  86. //岗位详情
  87. const toDetail = (isPosition, item) =>{
  88. const url = isPosition
  89. ? `/pagesB/positionDetail/index?id=${item.job?.id}`
  90. : `/pagesB/companyDetail/index?id=${item.enterprise?.id}`
  91. //
  92. uni.navigateTo({ url })
  93. }
  94. </script>
  95. <style scoped lang="scss">
  96. .noMore{
  97. margin: 20px 0;
  98. }
  99. .date-time{
  100. color:#d9d0d2;
  101. float: right;
  102. }
  103. .divided-line {
  104. width: 100%;
  105. height: 1px;
  106. background-color: #f0f2f7;
  107. margin: 20px 0;
  108. }
  109. .enterAvatar{
  110. width: 40px;
  111. height: 40px;
  112. border-radius: 50%;
  113. margin: auto;
  114. }
  115. .sub-li-bottom {
  116. display: flex;
  117. justify-content:space-between;
  118. align-items: center;
  119. background: linear-gradient(90deg, #f5fcfc 0, #fcfbfa 100%);
  120. font-size: 13px;
  121. padding: 5px 30rpx;
  122. .avatarBox {
  123. max-width: 40px;
  124. max-height: 40px;
  125. }
  126. }
  127. .salary-text {
  128. float: right;
  129. color: #fe574a;
  130. }
  131. .list-shape {
  132. padding: 10px 30rpx 10px;
  133. margin-top: 10px;
  134. background-color: #fff;
  135. .titleBox {
  136. display: flex;
  137. align-items: center;
  138. justify-content: space-between;
  139. }
  140. }
  141. .tag-gap{
  142. margin: 10rpx 10rpx 10rpx 0;
  143. }
  144. .tag-gap1{
  145. margin-bottom: 20px;
  146. }
  147. .divider-mx{
  148. margin: 0 10rpx;
  149. }
  150. .divider {
  151. color:#e4d4d2;
  152. }
  153. //公司名称
  154. .cer-end{
  155. position: absolute;
  156. top: 85%;
  157. right: 16%;
  158. }
  159. .cer-text{
  160. text-decoration: underline;
  161. margin: 0 5rpx;
  162. }
  163. //一行展示不全...
  164. .dis{
  165. display: flex;
  166. align-items: center;
  167. }
  168. .show-more{
  169. width: 26vw;
  170. white-space: nowrap;
  171. overflow: hidden;
  172. text-overflow: ellipsis;
  173. }
  174. /* 列表触底暂无更多 */
  175. .noMore{ text-align:center; color:grey; }
  176. .mt { margin-top: 10rpx; }
  177. .mb { margin-bottom: 10rpx; }
  178. .ml { margin-left: 20rpx; }
  179. .mr { margin-right: 20rpx; }
  180. .mr-10{ margin-right: 10rpx; }
  181. .my-5{ margin: 5px 0; }
  182. </style>