Showing
1 changed file
with
16 additions
and
32 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2024-10-18 13:45:53 | 2 | * @Date: 2024-10-18 13:45:53 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2024-10-23 14:57:22 | 4 | + * @LastEditTime: 2024-10-24 17:33:52 |
| 5 | * @FilePath: /hager/src/views/recruit.vue | 5 | * @FilePath: /hager/src/views/recruit.vue |
| 6 | * @Description: 招聘信息 | 6 | * @Description: 招聘信息 |
| 7 | --> | 7 | --> |
| ... | @@ -91,7 +91,7 @@ | ... | @@ -91,7 +91,7 @@ |
| 91 | <div :class="['job-img-box', 'email', is_xs ? 'xs' : '']" :style="{ backgroundImage: 'url(https://cdn.ipadbiz.cn/hager/img/recruit/z01.png)'}"> | 91 | <div :class="['job-img-box', 'email', is_xs ? 'xs' : '']" :style="{ backgroundImage: 'url(https://cdn.ipadbiz.cn/hager/img/recruit/z01.png)'}"> |
| 92 | <div>简历投递邮箱:hr.communication@hager.com</div> | 92 | <div>简历投递邮箱:hr.communication@hager.com</div> |
| 93 | </div> | 93 | </div> |
| 94 | - <div :class="['job-img-box', 'job', is_xs ? 'xs' : '']" :style="{ backgroundImage: 'url(https://cdn.ipadbiz.cn/hager/img/recruit/z02.png)'}"> | 94 | + <div :class="['job-img-box', 'job', is_xs ? 'xs' : '']" :style="{ backgroundImage: 'url(https://cdn.ipadbiz.cn/hager/img/recruit/z02.png)', height: recruit_box_height }"> |
| 95 | <p>经理职位 8000元</p> | 95 | <p>经理职位 8000元</p> |
| 96 | <p>高级工程师/主管 6000元</p> | 96 | <p>高级工程师/主管 6000元</p> |
| 97 | <p>工程师/专员 5000元</p> | 97 | <p>工程师/专员 5000元</p> |
| ... | @@ -165,6 +165,7 @@ import mixin from 'common/mixin'; | ... | @@ -165,6 +165,7 @@ import mixin from 'common/mixin'; |
| 165 | import hagerBox from '@/components/common/hagerBox'; | 165 | import hagerBox from '@/components/common/hagerBox'; |
| 166 | import hagerH1 from '@/components/common/hagerH1.vue'; | 166 | import hagerH1 from '@/components/common/hagerH1.vue'; |
| 167 | import hagerLoadMore from '@/components/hagerLoadMore.vue'; | 167 | import hagerLoadMore from '@/components/hagerLoadMore.vue'; |
| 168 | +import $ from 'jquery'; | ||
| 168 | 169 | ||
| 169 | export default { | 170 | export default { |
| 170 | components: { hagerH1, hagerBox, hagerLoadMore }, | 171 | components: { hagerH1, hagerBox, hagerLoadMore }, |
| ... | @@ -172,35 +173,6 @@ export default { | ... | @@ -172,35 +173,6 @@ export default { |
| 172 | data () { | 173 | data () { |
| 173 | return { | 174 | return { |
| 174 | active_idx: 0, | 175 | active_idx: 0, |
| 175 | - location_options: [{ | ||
| 176 | - value: '远程办公', | ||
| 177 | - label: '远程办公' | ||
| 178 | - }, { | ||
| 179 | - value: '广东省-东莞', | ||
| 180 | - label: '广东省-东莞' | ||
| 181 | - }, { | ||
| 182 | - value: '浙江省-杭州', | ||
| 183 | - label: '浙江省-杭州' | ||
| 184 | - }], | ||
| 185 | - location_value: '', | ||
| 186 | - job_list: [ | ||
| 187 | - { | ||
| 188 | - title: '销售工程师', | ||
| 189 | - location: '远程办公' | ||
| 190 | - }, | ||
| 191 | - { | ||
| 192 | - title: '产品管理主管级工程师', | ||
| 193 | - location: '广东省-东莞' | ||
| 194 | - }, | ||
| 195 | - { | ||
| 196 | - title: 'QE/ 质量工程师', | ||
| 197 | - location: '广东省-东莞' | ||
| 198 | - }, | ||
| 199 | - { | ||
| 200 | - title: '销售工程师', | ||
| 201 | - location: '浙江省-杭州' | ||
| 202 | - }, | ||
| 203 | - ], | ||
| 204 | awards_list: [{ | 176 | awards_list: [{ |
| 205 | id: '1', | 177 | id: '1', |
| 206 | zh: '海格集团雇主奖项', | 178 | zh: '海格集团雇主奖项', |
| ... | @@ -315,6 +287,7 @@ export default { | ... | @@ -315,6 +287,7 @@ export default { |
| 315 | activeDesignIndex: 0, | 287 | activeDesignIndex: 0, |
| 316 | reach_design_end: false, | 288 | reach_design_end: false, |
| 317 | designSlidesPerView: 3, | 289 | designSlidesPerView: 3, |
| 290 | + recruit_box_height: '10rem' | ||
| 318 | } | 291 | } |
| 319 | }, | 292 | }, |
| 320 | mounted () { | 293 | mounted () { |
| ... | @@ -323,9 +296,20 @@ export default { | ... | @@ -323,9 +296,20 @@ export default { |
| 323 | // breakpoint时 显示的条数 | 296 | // breakpoint时 显示的条数 |
| 324 | this.designSlidesPerView = swiper.slidesPerView | 297 | this.designSlidesPerView = swiper.slidesPerView |
| 325 | }); | 298 | }); |
| 299 | + // 高度监听 | ||
| 300 | + this.recruit_box_height = $('.job-img-wrapper').outerWidth() * 0.09 + 'px'; | ||
| 326 | }); | 301 | }); |
| 302 | + window.addEventListener('resize', this.handleHeightResize); | ||
| 303 | + }, | ||
| 304 | + beforeDestroy() { | ||
| 305 | + // 在组件销毁前移除监听器,防止内存泄漏 | ||
| 306 | + window.removeEventListener('resize', this.handleHeightResize); | ||
| 327 | }, | 307 | }, |
| 328 | methods: { | 308 | methods: { |
| 309 | + handleHeightResize () { | ||
| 310 | + // 高度监听 | ||
| 311 | + this.recruit_box_height = $('.job-img-wrapper').outerWidth() * 0.09 + 'px'; | ||
| 312 | + }, | ||
| 329 | onClickBtn (idx) { | 313 | onClickBtn (idx) { |
| 330 | this.active_idx = idx; | 314 | this.active_idx = idx; |
| 331 | }, | 315 | }, |
| ... | @@ -466,7 +450,7 @@ export default { | ... | @@ -466,7 +450,7 @@ export default { |
| 466 | } | 450 | } |
| 467 | &.job { | 451 | &.job { |
| 468 | padding: 1rem 2rem; | 452 | padding: 1rem 2rem; |
| 469 | - height: 9rem; | 453 | + height: auto; |
| 470 | flex-direction: column; | 454 | flex-direction: column; |
| 471 | font-size: 1.25rem; | 455 | font-size: 1.25rem; |
| 472 | p { | 456 | p { | ... | ... |
-
Please register or login to post a comment