From 8791557419d18d49aa7170947dca9d2aa56b0f86 Mon Sep 17 00:00:00 2001 From: LiLongLong <13717757313@163.com> Date: Thu, 13 Feb 2025 18:59:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=8A=A0=E6=B6=B2=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/style/mixin.scss | 3 +- src/router/index.ts | 4 + src/views/Test.vue | 96 ++++--------- src/views/addLiquid/index.vue | 4 +- src/views/components/Footer.vue | 4 +- src/views/components/Header.vue | 43 +++++- src/views/graphite/components/AddLiquid.vue | 206 ++++++++++++++++++++++++---- src/views/graphite/components/index.ts | 3 +- src/views/graphite/index.vue | 10 +- 9 files changed, 256 insertions(+), 117 deletions(-) diff --git a/src/assets/style/mixin.scss b/src/assets/style/mixin.scss index 9c9fae4..83d4fda 100644 --- a/src/assets/style/mixin.scss +++ b/src/assets/style/mixin.scss @@ -1,2 +1 @@ -$textGray: #333; -$addLiquidWidth: 410px;//加液配置 card宽度 \ No newline at end of file +$textGray: #333; \ No newline at end of file diff --git a/src/router/index.ts b/src/router/index.ts index 6563ce3..491672d 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -7,6 +7,10 @@ const router = createRouter({ history: createWebHistory(import.meta.env.BASE_URL), routes: [ { + path: '/', + redirect:'/login' + }, + { path: "/login", name: "login", //@ts-ignore diff --git a/src/views/Test.vue b/src/views/Test.vue index 7229806..dbea4ff 100644 --- a/src/views/Test.vue +++ b/src/views/Test.vue @@ -1,82 +1,38 @@ \ No newline at end of file diff --git a/src/views/addLiquid/index.vue b/src/views/addLiquid/index.vue index e013f46..775feef 100644 --- a/src/views/addLiquid/index.vue +++ b/src/views/addLiquid/index.vue @@ -115,14 +115,14 @@ } .add_liquid{ background: #F4F9FF; - width: $addLiquidWidth; + width: 12.875rem; height: 13.5rem; border:1px solid #275EFB; margin-left: 4.25rem; margin-top: 5rem; border-radius: 10px; .config_title{ - width: $addLiquidWidth; + width: 12.875rem; height: 2.5rem; background: rgba(25, 137, 250, 0.1216); padding-top: .5rem; diff --git a/src/views/components/Footer.vue b/src/views/components/Footer.vue index 140dd82..d59212e 100644 --- a/src/views/components/Footer.vue +++ b/src/views/components/Footer.vue @@ -2,7 +2,7 @@ @@ -21,13 +25,18 @@ import { getFormattedDateTime } from '@/utils' const menuId = ref(0) const time = getFormattedDateTime() + const showUserMenu = ref(false) const currentTime = ref(time) onMounted(()=>{ //测试页面返回时,需要调整菜单 - eventBus.on('menuId', (value:number)=>{ - menuId.value = value - }) + // eventBus.on('menuId', (value:number)=>{ + // menuId.value = value + // }) }) + + const onShowMenu = () => { + showUserMenu.value = !showUserMenu.value; + } \ No newline at end of file diff --git a/src/views/graphite/components/index.ts b/src/views/graphite/components/index.ts index 6a67c69..ae0db08 100644 --- a/src/views/graphite/components/index.ts +++ b/src/views/graphite/components/index.ts @@ -1,4 +1,5 @@ export {default as HeatPosition} from './HeatPosition.vue' export {default as TakePickture} from './TakePickture.vue' -export { default as AddLiquid} from './AddLiquid.vue' +//@ts-ignore +export {default as AddLiquid} from './AddLiquid.vue' diff --git a/src/views/graphite/index.vue b/src/views/graphite/index.vue index 2226aa4..ef6e883 100644 --- a/src/views/graphite/index.vue +++ b/src/views/graphite/index.vue @@ -65,7 +65,7 @@ -
+
@@ -129,7 +129,7 @@ justify-content: center; flex-wrap: wrap; margin: 5px; - gap: 20px; + gap: 1.25rem; flex-direction: row; padding-bottom: 100px; background: #FFFFFF; @@ -175,15 +175,15 @@ padding-top:1rem; } - .waste{ + .liquid{ display: flex; justify-content: center; width: 100%; height: 100%; align-items: center; .addLiquid{ - width: 2250px; - height: 1235px; + width: 70.375rem; + height: 52rem; background: #FFFFFF; } }