Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
hager
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2024-11-08 15:08:34 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
df5602f72a074c6f4dde4c90af5df6ba8ac27752
df5602f7
1 parent
81ee76fb
fix 修复招聘图片推荐奖金高度显示优化
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
src/views/recruit.vue
src/views/recruit.vue
View file @
df5602f
<!--
* @Date: 2024-10-18 13:45:53
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-11-0
7 14:58:09
* @LastEditTime: 2024-11-0
8 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')
...
...
Please
register
or
login
to post a comment