调整手机适配

This commit is contained in:
yangjun 2023-06-26 21:33:14 +08:00
parent adaac62c4d
commit 5ccc88cf62
2 changed files with 26 additions and 26 deletions

View File

@ -97,33 +97,33 @@
const maxClassName = ref<any>({}); const maxClassName = ref<any>({});
// //
window.onresize = () => { // window.onresize = () => {
return (() => { // return (() => {
let fullWidth = document.documentElement.clientWidth; // let fullWidth = document.documentElement.clientWidth;
let width = fullWidth; // // let width = fullWidth; //
if(width<600){ // if(width<600){
maxClassName.value = {width:"100%"} // maxClassName.value = {width:"100%"}
}else if(width>=500&&width<1070){ // }else if(width>=500&&width<1070){
width = width-300 // width = width-300
maxClassName.value = {width:width+"px"} // maxClassName.value = {width:width+"px"}
}else{ // }else{
width = 1070 // width = 1070
maxClassName.value = {width:width+"px"} // maxClassName.value = {width:width+"px"}
} // }
})() // })()
}; // };
// //
onMounted(() => { onMounted(() => {
var width = window.screen.width * window.devicePixelRatio; // var width = window.screen.width * window.devicePixelRatio;
console.log(`🚀 ~ file: index.vue:104 ~ onMounted ~ width:`, width) // console.log(`🚀 ~ file: index.vue:104 ~ onMounted ~ width:`, width)
if(width<1070){ // if(width<1070){
width = width-200 // width = width-200
maxClassName.value = {width:width+"px"} // maxClassName.value = {width:width+"px"}
}else{ // }else{
width = 1070 // width = 1070
maxClassName.value = {width:width+"px"} // maxClassName.value = {width:width+"px"}
} // }
}); });
@ -163,7 +163,7 @@
background: #f3f3f4; background: #f3f3f4;
#maxSite { #maxSite {
// //
// max-width: 1170px; max-width: 1070px;
// //
margin: 0 auto; margin: 0 auto;
.rowGutter{ .rowGutter{

View File

@ -28,7 +28,7 @@
<span v-else-if="$route.query.type == '3'">该评价表是方便行政人员和非该课程所属学科的教师听课使用的评价表主要用来反映课堂教学的整体情况</span> <span v-else-if="$route.query.type == '3'">该评价表是方便行政人员和非该课程所属学科的教师听课使用的评价表主要用来反映课堂教学的整体情况</span>
<span v-else-if="$route.query.type == '2'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;该评价表是根据线上课堂的特点研制的如果您听的是线上课堂请您填写该评价表如果您同时是该课程所属学科的专家/教师也欢迎您同时填写同行评价表</span> <span v-else-if="$route.query.type == '2'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;该评价表是根据线上课堂的特点研制的如果您听的是线上课堂请您填写该评价表如果您同时是该课程所属学科的专家/教师也欢迎您同时填写同行评价表</span>
</div> </div>
<div style="padding: 0 15rem;font-weight: 700;"> <div style="padding: 0 2rem;font-weight: 700;">
<a-row :gutter="[16,16]"> <a-row :gutter="[16,16]">
<a-col :span="24" v-for="(item,index) in list" :key="index"> <a-col :span="24" v-for="(item,index) in list" :key="index">
<template v-if="item.isrequire != 0"><span style="color:red;">*</span></template> <template v-if="item.isrequire != 0"><span style="color:red;">*</span></template>