preferred.vue 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  1. <template>
  2. <div v-if="Object.keys(result).length" class="default-width" style="position: relative;">
  3. <div style="position: relative;">
  4. <v-carousel :show-arrows="result.carousel.length > 1 ? 'hover' : false" :hide-delimiters="result.carousel.length > 1 ? false : true" cycle>
  5. <v-carousel-item v-for="(k, i) in result.carousel" :key="i">
  6. <v-img :src="k" :lazy-src="k" width="1184" height="500" cover>
  7. <template v-slot:placeholder>
  8. <v-row align="center" class="fill-height ma-0" justify="center">
  9. <v-progress-circular color="grey-lighten-5" indeterminate></v-progress-circular>
  10. </v-row>
  11. </template>
  12. </v-img>
  13. </v-carousel-item>
  14. </v-carousel>
  15. <v-img v-if="result.logo" class="logo-png" :src="result.logo" width="193" height="59"></v-img>
  16. </div>
  17. <!-- 集团简介 -->
  18. <div class="brief-introduction">
  19. <h2>{{ result?.introduce?.title }}</h2>
  20. <div class="desc">
  21. <p v-html="result?.introduce?.describe"></p>
  22. </div>
  23. <div v-if="result?.introduce?.thumbnail?.length" class="my-15">
  24. <div class="culture" v-if="result?.introduce?.thumbnail?.length > 1">
  25. <div v-for="(k, i) in result.introduce.thumbnail" :key="i" class="culture-item">
  26. <v-img :src="k" :lazy-src="k" width="100%" height="230" contain>
  27. <template v-slot:placeholder>
  28. <v-row align="center" class="fill-height ma-0" justify="center">
  29. <v-progress-circular color="grey-lighten-5" indeterminate></v-progress-circular>
  30. </v-row>
  31. </template>
  32. </v-img>
  33. </div>
  34. </div>
  35. <div v-else>
  36. <v-img :src="result.introduce.thumbnail[0]" :lazy-src="result.introduce.thumbnail[0]" width="1184" height="500" contain>
  37. <template v-slot:placeholder>
  38. <v-row align="center" class="fill-height ma-0" justify="center">
  39. <v-progress-circular color="grey-lighten-5" indeterminate></v-progress-circular>
  40. </v-row>
  41. </template>
  42. </v-img>
  43. </div>
  44. </div>
  45. <div v-if="result?.introduce?.bigPicture?.url">
  46. <v-img :src="result.introduce.bigPicture.url" :lazy-src="result.introduce.bigPicture.url">
  47. <template v-slot:placeholder>
  48. <v-row align="center" class="fill-height ma-0" justify="center">
  49. <v-progress-circular color="grey-lighten-5" indeterminate></v-progress-circular>
  50. </v-row>
  51. </template>
  52. </v-img>
  53. </div>
  54. </div>
  55. <!-- 品牌介绍 -->
  56. <div v-if="result.brandIntroduce && result.brandIntroduce.length" class="brand-introduction">
  57. <h2>品牌介绍</h2>
  58. <ul>
  59. <li v-for="k in result.brandIntroduce" :key="k.title">
  60. <v-img :src="k.url" width="100%" height="192" :lazy-src="k.url">
  61. <template v-slot:placeholder>
  62. <v-row align="center" class="fill-height ma-0" justify="center">
  63. <v-progress-circular color="grey-lighten-5" indeterminate></v-progress-circular>
  64. </v-row>
  65. </template>
  66. </v-img>
  67. <h3>{{ k.content }}</h3>
  68. <span>{{ k.desc }}</span>
  69. </li>
  70. </ul>
  71. </div>
  72. <!-- 招聘职位 -->
  73. <div class="recruit-position">
  74. <h2>招聘职位</h2>
  75. <div>
  76. <div class="position-item d-flex" v-for="k in recruitPosition" :key="k.job.id">
  77. <div class="job-name">
  78. {{ formatName(k.job.name) }}
  79. <br>
  80. {{ formatName(k.enterprise.name) }}
  81. </div>
  82. <div class="job-place">
  83. <div class="job-title">地点</div>
  84. <p class="font-size-14">{{ !k.job.areaId ? '全国' : k.job.area?.str || '' }}</p>
  85. </div>
  86. <div class="job-class">
  87. <div class="job-title">工作经验</div>
  88. <p class="font-size-14">{{ k.job.expName ? (k.job.expName.indexOf('不限') !== -1 ? '不限' : k.job.expName) : '不限' }}</p>
  89. </div>
  90. <div class="job-class">
  91. <div class="job-title">职位更新</div>
  92. <p class="font-size-14">{{ timesTampChange(k.job.updateTime) }}</p>
  93. </div>
  94. <div class="font-size-14 cursor-pointer view-detail" @click.stop="handlePosition(k)">点击查看详情
  95. <v-icon>mdi-pan-right</v-icon>
  96. </div>
  97. </div>
  98. <CtPagination
  99. :total="total"
  100. :page="queryParams.pageNo"
  101. :limit="queryParams.pageSize"
  102. @handleChange="handleChangePage"
  103. ></CtPagination>
  104. </div>
  105. </div>
  106. <BackTop />
  107. </div>
  108. </template>
  109. <script setup>
  110. defineOptions({ name: 'home-adv-preferred'})
  111. import { ref, onMounted } from 'vue'
  112. import { useRoute } from 'vue-router'
  113. import { getWebContent } from '@/api/common'
  114. import { getJobAdvertisedSearch } from '@/api/position'
  115. import { dealDictObjData } from '@/utils/position'
  116. import { timesTampChange } from '@/utils/date'
  117. import { formatName } from '@/utils/getText'
  118. import BackTop from '@/components/BackTop'
  119. const route = useRoute()
  120. const { id } = route.params
  121. const result = ref({})
  122. onMounted(async () => {
  123. const data = await getWebContent()
  124. if (!id || !data.appPreferredGroup) {
  125. return window.close()
  126. }
  127. result.value = data.appPreferredGroup[id] || {}
  128. document.title = result.value.title || '门墩儿 优选集团'
  129. })
  130. // 招聘职位
  131. const total = ref(0)
  132. const queryParams = ref({
  133. pageNo: 1,
  134. pageSize: 10,
  135. enterpriseId: id
  136. })
  137. const recruitPosition = ref([])
  138. const getRecruitPositionList = async () => {
  139. const { list, total: number } = await getJobAdvertisedSearch(queryParams.value)
  140. if (!list.length) {
  141. total.value = 0
  142. recruitPosition.value = []
  143. return
  144. }
  145. recruitPosition.value = list.map(e => {
  146. e.job = { ...e.job, ...dealDictObjData({}, e.job) }
  147. return e
  148. })
  149. total.value = number
  150. }
  151. getRecruitPositionList()
  152. const handleChangePage = (e) => {
  153. queryParams.value.pageNo = e
  154. getRecruitPositionList()
  155. }
  156. // 职位详情
  157. const handlePosition = (val) => {
  158. window.open(`/recruit/personal/position/details/${val.job.id}`)
  159. }
  160. </script>
  161. <style scoped lang="scss">
  162. .logo-png {
  163. position: absolute;
  164. top: 30px;
  165. left: 5%;
  166. }
  167. .culture {
  168. width: 100%;
  169. display: flex;
  170. flex-wrap: wrap;
  171. justify-content: center;
  172. &-item {
  173. width: 33.3%;
  174. margin-bottom: 40px;
  175. }
  176. }
  177. h2 {
  178. font-size: 32px;
  179. color: #666;
  180. line-height: 44px;
  181. text-align: center;
  182. margin-bottom: 26px;
  183. font-weight: 600;
  184. }
  185. .brief-introduction {
  186. margin: 100px 0;
  187. .desc {
  188. color: #666;
  189. margin-bottom: 40px;
  190. }
  191. }
  192. .brand-introduction {
  193. ul {
  194. display: flex;
  195. flex-wrap: wrap;
  196. width: 100%;
  197. li {
  198. width: calc((100% - 96px) / 3);
  199. min-width: calc((100% - 96px) / 3);
  200. max-width: calc((100% - 96px) / 3);
  201. margin: 0 48px 24px 0;
  202. list-style: none;
  203. &:nth-child(3n) {
  204. margin-right: 0;
  205. }
  206. h3 {
  207. height: 30px;
  208. font-size: 22px;
  209. color: #333;
  210. line-height: 30px;
  211. margin: 24px 0 12px 10px;
  212. }
  213. span {
  214. display: block;
  215. width: 342px;
  216. font-size: 14px;
  217. color: #666;
  218. line-height: 26px;
  219. margin: 0 auto;
  220. }
  221. }
  222. }
  223. }
  224. .recruit-position {
  225. margin-top: 100px;
  226. .position-item {
  227. position: relative;
  228. background-color: #f9f9f9;
  229. margin-bottom: 15px;
  230. padding: 20px 0 20px 32px;
  231. .job-name {
  232. width: 21%;
  233. overflow: hidden;
  234. margin-right: 5%;
  235. font-size: 15px;
  236. font-weight: 600;
  237. margin-top: 1px;
  238. }
  239. .job-place {
  240. width: 17%;
  241. margin-right: 5%;
  242. }
  243. .job-class {
  244. width: 15%;
  245. margin-right: 5%;
  246. }
  247. .job-title {
  248. font-size: 13px;
  249. color: #8c8c8c;
  250. line-height: 26px;
  251. }
  252. .view-detail{
  253. position: absolute;
  254. top: 50%;
  255. right: 30px;
  256. transform: translateY(-50%);
  257. &:hover {
  258. color: var(--v-primary-base);
  259. font-size: 15px;
  260. }
  261. }
  262. }
  263. }
  264. .up-btn {
  265. position: fixed;
  266. bottom: 20px;
  267. right: 20px;
  268. }
  269. </style>