个人中心和首页修改

This commit is contained in:
zhaofang
2022-10-19 16:33:27 +08:00
parent f47c5b84a9
commit 68dfb3d2dc
4 changed files with 8 additions and 12 deletions

View File

@@ -72,23 +72,17 @@
}
},
created() {
// clientWidth
console.log(document.body.clientWidth,'document.body.clientWidth');
let width = document.body.clientWidth;
if(width > 1920 || width == 1920) {
console.log(11111);
if(width > 1920) {
this.clientWidth = '1088px';
}
if(width > 1681 && width < 1920) {
console.log(2222);
if(width > 1681 && width < 1920 || width == 1920) {
this.clientWidth = '888px';
}
if(width > 1367 && width < 1680) {
console.log(3333);
this.clientWidth = '848px';
}
if(width < 1366) {
console.log(444);
this.clientWidth = '688px';
}
//这里必须放在当前的Session存储中不能每次都调用