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-07 17:18:57 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a085c8735fb23d2047be9fe7764f25c7bd53f75a
a085c873
1 parent
60c54a79
🐞 fix(首页): 海格全球和解决方案在移动端大小显示优化
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
4 deletions
src/views/index.vue
src/views/index.vue
View file @
a085c87
<!--
* @Date: 2024-08-27 10:06:30
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-11-07 1
4:39
:51
* @LastEditTime: 2024-11-07 1
5:57
:51
* @FilePath: /hager/src/views/index.vue
* @Description: 首页
-->
...
...
@@ -258,6 +258,8 @@ export default {
// 动态计算解决方案图片高度
let img_box_width = $('.solution-item').outerWidth();
$('.solution-item').css('height', img_box_width * 0.56 + 'px');
let img_xs_width = $('.solution-item.xs').outerWidth();
$('.solution-item.xs').css('height', img_box_width * 0.8 + 'px');
});
window.addEventListener('resize', this.handleHeightResize);
},
...
...
@@ -278,6 +280,8 @@ export default {
// 动态计算解决方案图片高度
let img_box_width = $('.solution-item').outerWidth();
$('.solution-item').css('height', img_box_width * 0.56 + 'px');
let img_xs_width = $('.solution-item.xs').outerWidth();
$('.solution-item.xs').css('height', img_box_width * 0.8 + 'px');
},
getToGroup () {
this.$router.push({
...
...
@@ -412,14 +416,29 @@ export default {
text-align: center;
&.xs {
flex-direction: column;
.hager-global-info-item {
margin-bottom: 1rem;
.num {
font-size: 6vw;
span {
font-size: 8vw;
}
}
.text-cn {
font-size: 4vw;
}
.text {
font-size: 3vw;
}
}
}
.hager-global-info-item {
.num {
color: @secondary-color;
font-size: 1.5
rem
;
font-size: 1.5
vw
;
font-weight: bold;
span {
font-size: 3
rem
;
font-size: 3
vw
;
}
}
.text-cn {
...
...
@@ -427,7 +446,7 @@ export default {
}
.text {
line-height: 1.8;
font-size: 0.9
rem
;
font-size: 0.9
vw
;
}
}
}
...
...
Please
register
or
login
to post a comment