Commit d1820cc1 authored by 高宇's avatar 高宇

2024/01/24 需求变更

parent 0d468f9f
...@@ -4,11 +4,14 @@ const baseSize = 16 ...@@ -4,11 +4,14 @@ const baseSize = 16
function setRem() { function setRem() {
// 当前页面宽度相对于 1920 宽的缩放比例,可根据自己需要修改。 // 当前页面宽度相对于 1920 宽的缩放比例,可根据自己需要修改。
const scale = document.documentElement.clientWidth / 1920 const scale = document.documentElement.clientWidth / 1920
// 设置页面根节点字体大小, 字体大小最小为12 const fontSize = (baseSize * Math.min(scale, 2)) > 7.2 ? (baseSize * Math.min(scale, 2)) : 7.2
document.documentElement.style.fontSize = baseSize * Math.min(scale, 2) + 'px' console.log('fontSize', (baseSize * Math.min(scale, 2)))
document.documentElement.style.fontSize = fontSize + 'px'
} }
// 初始化 // 初始化
setRem() setRem()
// 初始化
// 改变窗口大小时重新设置 rem,这里最好加上节流 // 改变窗口大小时重新设置 rem,这里最好加上节流
window.onresize = function() { window.onresize = function() {
setRem() setRem()
......
...@@ -282,7 +282,7 @@ export default { ...@@ -282,7 +282,7 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
.CheckBobyList { .CheckBobyList {
::v-deep .el-form-item__content{ ::v-deep .el-form-item__content{
margin-left: 3.1rem !important; //margin-left: 3.1rem !important;
} }
::v-deep .el-input__inner { ::v-deep .el-input__inner {
padding-right: 13px; padding-right: 13px;
...@@ -303,11 +303,11 @@ export default { ...@@ -303,11 +303,11 @@ export default {
//检查表主题 //检查表主题
.checkList { .checkList {
.smallInput { .smallInput {
width: 14rem; width: 11rem;
} }
.normalInput { .normalInput {
width: 38.9rem;; width: 34rem;
height: 32px; height: 32px;
background: #ffffff; background: #ffffff;
border: 1px solid #d9d9d9; border: 1px solid #d9d9d9;
...@@ -390,7 +390,7 @@ export default { ...@@ -390,7 +390,7 @@ export default {
} }
.appearance { .appearance {
width: 38.9rem; width: 34rem;
height: 5.1rem; height: 5.1rem;
margin-left: 0.5rem; margin-left: 0.5rem;
background: #f4f4f4; background: #f4f4f4;
...@@ -443,7 +443,7 @@ export default { ...@@ -443,7 +443,7 @@ export default {
.recordOneContainer { .recordOneContainer {
margin-top: 16px; margin-top: 16px;
width: 38.9rem; width: 34rem;;
height: 37rem; height: 37rem;
background: rgba(0, 87, 255, 0.05); background: rgba(0, 87, 255, 0.05);
border-radius: 4px; border-radius: 4px;
...@@ -512,7 +512,7 @@ export default { ...@@ -512,7 +512,7 @@ export default {
.recordTwoContainer { .recordTwoContainer {
margin-top: 16px; margin-top: 16px;
width: 38.9rem; width: 34rem;;
height: 37rem; height: 37rem;
background: rgba(0, 87, 255, 0.05); background: rgba(0, 87, 255, 0.05);
border-radius: 4px; border-radius: 4px;
...@@ -672,7 +672,7 @@ export default { ...@@ -672,7 +672,7 @@ export default {
.imgText { .imgText {
margin-top: 8px; margin-top: 8px;
width: 48px; width: 5rem;
height: 16px; height: 16px;
font-size: 12px; font-size: 12px;
font-family: Microsoft YaHei, Microsoft YaHei-400; font-family: Microsoft YaHei, Microsoft YaHei-400;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment