Showing
1 changed file
with
23 additions
and
4 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2024-08-27 10:06:30 | 2 | * @Date: 2024-08-27 10:06:30 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2024-11-07 14:39:51 | 4 | + * @LastEditTime: 2024-11-07 15:57:51 |
| 5 | * @FilePath: /hager/src/views/index.vue | 5 | * @FilePath: /hager/src/views/index.vue |
| 6 | * @Description: 首页 | 6 | * @Description: 首页 |
| 7 | --> | 7 | --> |
| ... | @@ -258,6 +258,8 @@ export default { | ... | @@ -258,6 +258,8 @@ export default { |
| 258 | // 动态计算解决方案图片高度 | 258 | // 动态计算解决方案图片高度 |
| 259 | let img_box_width = $('.solution-item').outerWidth(); | 259 | let img_box_width = $('.solution-item').outerWidth(); |
| 260 | $('.solution-item').css('height', img_box_width * 0.56 + 'px'); | 260 | $('.solution-item').css('height', img_box_width * 0.56 + 'px'); |
| 261 | + let img_xs_width = $('.solution-item.xs').outerWidth(); | ||
| 262 | + $('.solution-item.xs').css('height', img_box_width * 0.8 + 'px'); | ||
| 261 | }); | 263 | }); |
| 262 | window.addEventListener('resize', this.handleHeightResize); | 264 | window.addEventListener('resize', this.handleHeightResize); |
| 263 | }, | 265 | }, |
| ... | @@ -278,6 +280,8 @@ export default { | ... | @@ -278,6 +280,8 @@ export default { |
| 278 | // 动态计算解决方案图片高度 | 280 | // 动态计算解决方案图片高度 |
| 279 | let img_box_width = $('.solution-item').outerWidth(); | 281 | let img_box_width = $('.solution-item').outerWidth(); |
| 280 | $('.solution-item').css('height', img_box_width * 0.56 + 'px'); | 282 | $('.solution-item').css('height', img_box_width * 0.56 + 'px'); |
| 283 | + let img_xs_width = $('.solution-item.xs').outerWidth(); | ||
| 284 | + $('.solution-item.xs').css('height', img_box_width * 0.8 + 'px'); | ||
| 281 | }, | 285 | }, |
| 282 | getToGroup () { | 286 | getToGroup () { |
| 283 | this.$router.push({ | 287 | this.$router.push({ |
| ... | @@ -412,14 +416,29 @@ export default { | ... | @@ -412,14 +416,29 @@ export default { |
| 412 | text-align: center; | 416 | text-align: center; |
| 413 | &.xs { | 417 | &.xs { |
| 414 | flex-direction: column; | 418 | flex-direction: column; |
| 419 | + .hager-global-info-item { | ||
| 420 | + margin-bottom: 1rem; | ||
| 421 | + .num { | ||
| 422 | + font-size: 6vw; | ||
| 423 | + span { | ||
| 424 | + font-size: 8vw; | ||
| 425 | + } | ||
| 426 | + } | ||
| 427 | + .text-cn { | ||
| 428 | + font-size: 4vw; | ||
| 429 | + } | ||
| 430 | + .text { | ||
| 431 | + font-size: 3vw; | ||
| 432 | + } | ||
| 433 | + } | ||
| 415 | } | 434 | } |
| 416 | .hager-global-info-item { | 435 | .hager-global-info-item { |
| 417 | .num { | 436 | .num { |
| 418 | color: @secondary-color; | 437 | color: @secondary-color; |
| 419 | - font-size: 1.5rem; | 438 | + font-size: 1.5vw; |
| 420 | font-weight: bold; | 439 | font-weight: bold; |
| 421 | span { | 440 | span { |
| 422 | - font-size: 3rem; | 441 | + font-size: 3vw; |
| 423 | } | 442 | } |
| 424 | } | 443 | } |
| 425 | .text-cn { | 444 | .text-cn { |
| ... | @@ -427,7 +446,7 @@ export default { | ... | @@ -427,7 +446,7 @@ export default { |
| 427 | } | 446 | } |
| 428 | .text { | 447 | .text { |
| 429 | line-height: 1.8; | 448 | line-height: 1.8; |
| 430 | - font-size: 0.9rem; | 449 | + font-size: 0.9vw; |
| 431 | } | 450 | } |
| 432 | } | 451 | } |
| 433 | } | 452 | } | ... | ... |
-
Please register or login to post a comment