From 5ccc88cf6269622cc3d0156df25f39a2c5ff34e0 Mon Sep 17 00:00:00 2001 From: yangjun <1173114630@qq.com> Date: Mon, 26 Jun 2023 21:33:14 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=89=8B=E6=9C=BA=E9=80=82?= =?UTF-8?q?=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/site/index.vue | 50 ++++++++++---------- src/views/site/tingKeZuJi/page/qaAddPage.vue | 2 +- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/src/views/site/index.vue b/src/views/site/index.vue index a663b0b..225611f 100644 --- a/src/views/site/index.vue +++ b/src/views/site/index.vue @@ -97,33 +97,33 @@ const maxClassName = ref({}); // 实时计算浏览器的宽度 - window.onresize = () => { - return (() => { - let fullWidth = document.documentElement.clientWidth; - let width = fullWidth; // 宽 - if(width<600){ - maxClassName.value = {width:"100%"} - }else if(width>=500&&width<1070){ - width = width-300 - maxClassName.value = {width:width+"px"} - }else{ - width = 1070 - maxClassName.value = {width:width+"px"} - } - })() - }; + // window.onresize = () => { + // return (() => { + // let fullWidth = document.documentElement.clientWidth; + // let width = fullWidth; // 宽 + // if(width<600){ + // maxClassName.value = {width:"100%"} + // }else if(width>=500&&width<1070){ + // width = width-300 + // maxClassName.value = {width:width+"px"} + // }else{ + // width = 1070 + // maxClassName.value = {width:width+"px"} + // } + // })() + // }; //进入就加载 onMounted(() => { - var width = window.screen.width * window.devicePixelRatio; - console.log(`🚀 ~ file: index.vue:104 ~ onMounted ~ width:`, width) - if(width<1070){ - width = width-200 - maxClassName.value = {width:width+"px"} - }else{ - width = 1070 - maxClassName.value = {width:width+"px"} - } + // var width = window.screen.width * window.devicePixelRatio; + // console.log(`🚀 ~ file: index.vue:104 ~ onMounted ~ width:`, width) + // if(width<1070){ + // width = width-200 + // maxClassName.value = {width:width+"px"} + // }else{ + // width = 1070 + // maxClassName.value = {width:width+"px"} + // } }); @@ -163,7 +163,7 @@ background: #f3f3f4; #maxSite { //最大宽度 - // max-width: 1170px; + max-width: 1070px; //居中 margin: 0 auto; .rowGutter{ diff --git a/src/views/site/tingKeZuJi/page/qaAddPage.vue b/src/views/site/tingKeZuJi/page/qaAddPage.vue index 9b01dd2..f836bf4 100644 --- a/src/views/site/tingKeZuJi/page/qaAddPage.vue +++ b/src/views/site/tingKeZuJi/page/qaAddPage.vue @@ -28,7 +28,7 @@ 该评价表是方便行政人员和非该课程所属学科的教师听课使用的评价表,主要用来反映课堂教学的整体情况。         该评价表是根据线上课堂的特点研制的,如果您听的是线上课堂,请您填写该评价表;如果您同时是该课程所属学科的专家/教师,也欢迎您同时填写《同行评价表》。 -
+