hookehuyr

fix 修复招聘图片推荐奖金高度显示优化

<!--
* @Date: 2024-10-18 13:45:53
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-11-07 14:58:09
* @LastEditTime: 2024-11-08 15:07:40
* @FilePath: /hager/src/views/recruit.vue
* @Description: 招聘信息
-->
......@@ -297,7 +297,11 @@ export default {
this.designSlidesPerView = swiper.slidesPerView
});
// 高度监听
this.recruit_box_height = $('.job-img-wrapper').outerWidth() * 0.1 + 'px';
if (!this.is_xs) {
this.recruit_box_height = $('.job-img-wrapper').outerWidth() * 0.1 + 'px';
} else {
this.recruit_box_height = $('.job-img-wrapper').outerWidth() * 0.15 + 'px';
}
// 动态计算图片高度
let img_box_width = $('.img-box').outerWidth();
$('.img-box').css('height', img_box_width * 0.56 + 'px');
......@@ -311,7 +315,11 @@ export default {
methods: {
handleHeightResize () {
// 高度监听
this.recruit_box_height = $('.job-img-wrapper').outerWidth() * 0.1 + 'px';
if (!this.is_xs) {
this.recruit_box_height = $('.job-img-wrapper').outerWidth() * 0.1 + 'px';
} else {
this.recruit_box_height = $('.job-img-wrapper').outerWidth() * 0.15 + 'px';
}
// 动态计算图片高度
let img_box_width = $('.img-box').outerWidth();
$('.img-box').css('height', img_box_width * 0.56 + 'px')
......