hotPromoted.vue 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. <template>
  2. <div class="hot-box">
  3. <div class="sub-li" v-for="(item, index) in list" :key="index">
  4. <!-- 公司信息 -->
  5. <div class="company-info-top">
  6. <div class="float-left">
  7. <v-img :src="item.enterpriseImg" :alt="item.enterpriseName" :width="40" style="height: 40px;border-radius: 4px;"/>
  8. </div>
  9. <div class="company-info">
  10. <h3>{{ item.enterpriseName }}</h3>
  11. <p>{{ item.enterpriseNature }}<span class="vline"></span>{{ item.scale }}<span class="vline"></span>{{ item.industry }}</p>
  12. </div>
  13. </div>
  14. <!-- 职位列表 -->
  15. <ul class="company-job-list">
  16. <li class="company-job-item" v-for="(k, i) in item.positions" :key="i">
  17. <div class="job-info">
  18. <div class="mb-2 d-flex">
  19. <p class="name">{{ k.recruitName }}</p>
  20. <v-icon size="20" class="message">mdi-message-processing</v-icon>
  21. <span class="salary">{{ k.salary }}</span>
  22. </div>
  23. <v-chip size="x-small" label class="mr-1" color="#666" v-for="j in k.tags" :key="j">{{ j }}</v-chip>
  24. </div>
  25. </li>
  26. </ul>
  27. <div class="text-center">
  28. <v-btn class="buttons" color="primary" variant="outlined">查看更多职位</v-btn>
  29. </div>
  30. </div>
  31. </div>
  32. </template>
  33. <script setup name="hotPromoted">
  34. const list = [
  35. {
  36. enterpriseImg: 'https://img.bosszhipin.com/beijin/upload/com/workfeel/20231212/7bf6f160950405e90671d208831c3be24a7230ff916830a84f48ca3d2af0604795d2582973667498.png',
  37. enterpriseName: '博彦科技',
  38. enterpriseNature: '私营企业',
  39. scale: '100000人以上',
  40. industry: '计算机软件',
  41. positions: [
  42. {
  43. recruitName: '跨境电商运营跨境电商运营跨境电商运营跨境电商运营',
  44. salary: '7-9K',
  45. tags: ['广州番禺南浦', '本科', '1-3年']
  46. },
  47. {
  48. recruitName: '跨境电商运营',
  49. salary: '7-9K',
  50. tags: ['广州番禺南浦', '本科', '1-3年']
  51. },
  52. {
  53. recruitName: '跨境电商运营',
  54. salary: '7-9K',
  55. tags: ['广州番禺南浦', '本科', '1-3年']
  56. }
  57. ]
  58. },
  59. {
  60. enterpriseImg: 'https://img.bosszhipin.com/beijin/upload/com/workfeel/20231212/7bf6f160950405e90671d208831c3be24a7230ff916830a84f48ca3d2af0604795d2582973667498.png',
  61. enterpriseName: '博彦科技',
  62. enterpriseNature: '私营企业',
  63. scale: '100000人以上',
  64. industry: '计算机软件',
  65. positions: [
  66. {
  67. recruitName: '跨境电商运营',
  68. salary: '7-9K',
  69. tags: ['广州番禺南浦', '本科', '1-3年']
  70. },
  71. {
  72. recruitName: '跨境电商运营',
  73. salary: '7-9K',
  74. tags: ['广州番禺南浦', '本科', '1-3年']
  75. },
  76. {
  77. recruitName: '跨境电商运营',
  78. salary: '7-9K',
  79. tags: ['广州番禺南浦', '本科', '1-3年']
  80. }
  81. ]
  82. },
  83. {
  84. enterpriseImg: 'https://img.bosszhipin.com/beijin/upload/com/workfeel/20231212/7bf6f160950405e90671d208831c3be24a7230ff916830a84f48ca3d2af0604795d2582973667498.png',
  85. enterpriseName: '博彦科技',
  86. enterpriseNature: '私营企业',
  87. scale: '100000人以上',
  88. industry: '计算机软件',
  89. positions: [
  90. {
  91. recruitName: '跨境电商运营',
  92. salary: '7-9K',
  93. tags: ['广州番禺南浦', '本科', '1-3年']
  94. },
  95. {
  96. recruitName: '跨境电商运营',
  97. salary: '7-9K',
  98. tags: ['广州番禺南浦', '本科', '1-3年']
  99. },
  100. {
  101. recruitName: '跨境电商运营',
  102. salary: '7-9K',
  103. tags: ['广州番禺南浦', '本科', '1-3年']
  104. }
  105. ]
  106. },
  107. {
  108. enterpriseImg: 'https://img.bosszhipin.com/beijin/upload/com/workfeel/20231212/7bf6f160950405e90671d208831c3be24a7230ff916830a84f48ca3d2af0604795d2582973667498.png',
  109. enterpriseName: '博彦科技',
  110. enterpriseNature: '私营企业',
  111. scale: '100000人以上',
  112. industry: '计算机软件',
  113. positions: [
  114. {
  115. recruitName: '跨境电商运营',
  116. salary: '7-9K',
  117. tags: ['广州番禺南浦', '本科', '1-3年']
  118. },
  119. {
  120. recruitName: '跨境电商运营',
  121. salary: '7-9K',
  122. tags: ['广州番禺南浦', '本科', '1-3年']
  123. },
  124. {
  125. recruitName: '跨境电商运营',
  126. salary: '7-9K',
  127. tags: ['广州番禺南浦', '本科', '1-3年']
  128. }
  129. ]
  130. }
  131. ]
  132. </script>
  133. <style lang="scss" scoped>
  134. .hot-box {
  135. display: flex;
  136. flex-wrap: wrap;
  137. }
  138. .sub-li {
  139. width: calc((100% - 24px) / 3);
  140. min-width: calc((100% - 24px) / 3);
  141. max-width: calc((100% - 24px) / 3);
  142. margin: 0 12px 12px 0;
  143. height: 388px;
  144. border-radius: 12px;
  145. padding: 0;
  146. overflow: hidden;
  147. transition: all .2s linear;
  148. background-color: #fff;
  149. cursor: pointer;
  150. &:nth-child(3n) {
  151. margin-right: 0;
  152. }
  153. }
  154. .company-info {
  155. float: left;
  156. margin-left: 16px;
  157. width: 282px;
  158. }
  159. .company-info-top {
  160. display: flex;
  161. height: 76px;
  162. padding: 16px 20px;
  163. overflow: hidden;
  164. background: linear-gradient(90deg, #f2fafa 0, #fcfbfa 100%);
  165. }
  166. .company-info h3 {
  167. height: 22px;
  168. font-size: 16px;
  169. font-weight: 400;
  170. color: #222;
  171. line-height: 22px;
  172. margin: 0 0 4px 0;
  173. padding: 0;
  174. max-width: 100%;
  175. overflow: hidden;
  176. white-space: nowrap;
  177. text-overflow: ellipsis;
  178. }
  179. .company-info p {
  180. height: 18px;
  181. font-size: 13px;
  182. font-weight: 400;
  183. color: #999;
  184. line-height: 18px;
  185. }
  186. .vline {
  187. display: inline-block;
  188. width: 1px;
  189. height: 10px;
  190. vertical-align: middle;
  191. background-color: #e0e0e0;
  192. margin: 0 10px;
  193. }
  194. .company-job-list {
  195. display: block;
  196. padding: 4px 20px 12px;
  197. margin-right: -16px;
  198. overflow: hidden;
  199. }
  200. ul li {
  201. list-style: none
  202. }
  203. .company-job-item {
  204. display: block;
  205. height: auto;
  206. width: 344px;
  207. padding: 12px 0;
  208. margin: 0;
  209. }
  210. .salary {
  211. font-size: 16px;
  212. float: right;
  213. font-weight: 700;
  214. color: #fe574a;
  215. line-height: 22px;
  216. max-width: none;
  217. text-align: right;
  218. flex: 1;
  219. }
  220. .name {
  221. position: relative;
  222. max-width: 200px;
  223. line-height: 22px;
  224. font-weight: 500;
  225. color: #222;
  226. margin-right: 8px;
  227. overflow: hidden;
  228. text-overflow: ellipsis;
  229. white-space: nowrap;
  230. transition: all linear .2s;
  231. &:hover {
  232. color: var(--v-primary-base);
  233. }
  234. }
  235. .message {
  236. color: #bfc1c9;
  237. &:hover {
  238. color: var(--v-primary-base);
  239. }
  240. }
  241. </style>