From 23fca5319641abb13673b1e854495ad75ed930e2 Mon Sep 17 00:00:00 2001
From: zzy <1837289056@qq.com>
Date: Tue, 18 Apr 2023 17:04:41 +0800
Subject: [PATCH] 1
---
src/App.vue | 20 ++++++---
src/locales/en.ts | 2 +-
src/views/IPO/components/IpoContent.vue | 6 +--
src/views/IPO/components/IpoHeader.vue | 8 ++--
src/views/IPO/components/IpoNav.vue | 2 +-
src/views/IPO/index.vue | 44 +++++++++++++-----
src/views/IpoCalendar/index.vue | 32 ++++++-------
src/views/dashBoard/Header/index.vue | 26 ++++++-----
src/views/dashBoard/Main.vue | 4 +-
src/views/dashBoard/index.vue | 22 ++++-----
src/views/login/components/Main.vue | 2 +-
src/views/login/index.vue | 52 ++++++++++++----------
src/views/login/modelComponents/Drawer.vue | 44 +++++++++---------
vite.config.ts | 2 +-
14 files changed, 152 insertions(+), 114 deletions(-)
diff --git a/src/App.vue b/src/App.vue
index 85ff42d..46b2fec 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -37,18 +37,24 @@ const setFontSize = () => {
// }
// },
+// })
+// onMounted(() => {
+// window.addEventListener('resize', function () {
+// isMobile.value = isMobileFn();
+// if (isMobile.value) {
+// window.location.reload()
+// }
+// })
+// })
+// watch(isMobile, (newValue) => {
+// window.location.reload()
// })
onMounted(() => {
window.addEventListener('resize', function () {
- isMobile.value = isMobileFn();
- if (isMobile.value) {
- window.location.reload()
- }
+ var font = document.documentElement.clientWidth / 375;
+ document.documentElement.style.fontSize = font + "px";
})
})
-watch(isMobile, (newValue) => {
- window.location.reload()
-})
@@ -926,11 +932,11 @@ const showMounth = (date: any) => {
.header .el-input__wrapper {
margin-top: 0;
margin-left: 0;
- padding-left: 50rem;
+ padding-left: 50px;
width: 61vw;
- height: 30rem;
- border-radius: 25rem;
- font-size: 16rem;
+ height: 30px;
+ border-radius: 25px;
+ font-size: 16px;
border: none;
outline: none;
@@ -938,14 +944,14 @@ const showMounth = (date: any) => {
.el-input__inner {
- margin: -35rem;
+ margin: -35px;
padding: 0;
}
.imgSearch123 {
- width: 15rem;
- height: 15rem;
- transform: translateX(-7rem);
+ width: 15px;
+ height: 15px;
+ transform: translateX(-7px);
}
}
diff --git a/src/views/login/modelComponents/Drawer.vue b/src/views/login/modelComponents/Drawer.vue
index def9da0..18ebc8d 100644
--- a/src/views/login/modelComponents/Drawer.vue
+++ b/src/views/login/modelComponents/Drawer.vue
@@ -112,14 +112,14 @@ const handleLang3 = () => {