hookehuyr

图片通用高度自适应调整

/*
* @Date: 2022-07-26 09:49:54
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-11-04 16:43:21
* @LastEditTime: 2024-11-07 16:20:26
* @FilePath: /hager/src/common/mixin.js
* @Description: 文件描述
*/
......@@ -37,7 +37,7 @@ export default {
handleResize() {
this.screenWidth = $(window).width(); // 更新屏幕宽度
if (this.screenWidth < 768) {
this.top_img_height = '20vh';
this.top_img_height = $(window).width()*0.39 + 'px';
} else {
this.top_img_height = $(window).width()*0.35 + 'px';
}
......