Showing
1 changed file
with
2 additions
and
2 deletions
| 1 | /* | 1 | /* |
| 2 | * @Date: 2022-07-26 09:49:54 | 2 | * @Date: 2022-07-26 09:49:54 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2024-11-04 16:43:21 | 4 | + * @LastEditTime: 2024-11-07 16:20:26 |
| 5 | * @FilePath: /hager/src/common/mixin.js | 5 | * @FilePath: /hager/src/common/mixin.js |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | */ | 7 | */ |
| ... | @@ -37,7 +37,7 @@ export default { | ... | @@ -37,7 +37,7 @@ export default { |
| 37 | handleResize() { | 37 | handleResize() { |
| 38 | this.screenWidth = $(window).width(); // 更新屏幕宽度 | 38 | this.screenWidth = $(window).width(); // 更新屏幕宽度 |
| 39 | if (this.screenWidth < 768) { | 39 | if (this.screenWidth < 768) { |
| 40 | - this.top_img_height = '20vh'; | 40 | + this.top_img_height = $(window).width()*0.39 + 'px'; |
| 41 | } else { | 41 | } else { |
| 42 | this.top_img_height = $(window).width()*0.35 + 'px'; | 42 | this.top_img_height = $(window).width()*0.35 + 'px'; |
| 43 | } | 43 | } | ... | ... |
-
Please register or login to post a comment