From e4d3e3ba1c09a1351850c76c39c562fa04995766 Mon Sep 17 00:00:00 2001 From: wx <645899409@qq.com> Date: Mon, 29 Sep 2025 15:41:01 +0800 Subject: [PATCH] =?UTF-8?q?update=201.=E4=BF=AE=E6=94=B9=E5=A4=A7=E5=B1=8F?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/utils.ts | 14 +++--- .../HealthConsultationIndex.vue | 7 +-- .../components/healthContentMiddle.vue | 21 +++++--- src/views/indexSun.vue | 48 ++++++++++++------- src/views/indexSun/indexSun.api.ts | 2 + src/views/indexSun/indexSun.ts | 5 ++ src/views/indexSun/twoL.vue | 16 +++---- src/views/indexSun/twoNewR.data.ts | 36 +++++++------- 8 files changed, 89 insertions(+), 60 deletions(-) diff --git a/src/utils/utils.ts b/src/utils/utils.ts index e2349db..17d6977 100644 --- a/src/utils/utils.ts +++ b/src/utils/utils.ts @@ -32,10 +32,10 @@ export function getToday() { } //分钟转小时 -export function minuteToStr(minutes) { +export function minuteToStr(minutes: any) { if (!minutes) return '0分'; - let h = Math.floor(minutes / 60); - let m = Math.floor(minutes % 60); + const h: any = Math.floor(minutes / 60); + const m: any = Math.floor(minutes % 60); if (h) { return `${h}小时${m > 0 ? `${m}分钟` : ''}`; } @@ -43,12 +43,12 @@ export function minuteToStr(minutes) { } //处理echarts-环形图 数据为0时不显示label -export function visibleChartLabel(chartData) { +export function visibleChartLabel(chartData: any) { const data = cloneDeep(chartData); - let list = data?.map((item) => item?.value); - let flag = list.every((item) => item == 0); + const list: any = data?.map((item: any) => item?.value); + const flag: any = list.every((item: any) => item == 0); if (!flag) { - data.forEach((val) => { + data.forEach((val: any) => { if (val.value == 0) { val.value = 0; } diff --git a/src/views/healthConsultation/HealthConsultationIndex.vue b/src/views/healthConsultation/HealthConsultationIndex.vue index d9389d1..1e52de1 100644 --- a/src/views/healthConsultation/HealthConsultationIndex.vue +++ b/src/views/healthConsultation/HealthConsultationIndex.vue @@ -54,6 +54,7 @@ onMounted(() => { getTime(); rightDate.value = '累计运行时间:' + (dayjs().diff(dayjs(initDate.value), 'days') + 1) + ' 天'; + document.title = '健康咨询平台'; }); watch( @@ -72,7 +73,7 @@ background-size: 100% 100%; .sun-screen-title { - height: 87px; + height: 80px; background: url('/@/assets/indexSun/bg.png') no-repeat; background-size: 100% 100%; display: flex; @@ -100,10 +101,10 @@ .sun-title-center { flex: 1; - font-size: 58px; + font-size: 50px; letter-spacing: 10px; // text-shadow: 2px 2px 5px rgba(118, 141, 219, 0.53); - font-weight: 400; + font-weight: bold; font-family: PangMenZhengDao; } } diff --git a/src/views/healthConsultation/components/healthContentMiddle.vue b/src/views/healthConsultation/components/healthContentMiddle.vue index e73c106..204a8f6 100644 --- a/src/views/healthConsultation/components/healthContentMiddle.vue +++ b/src/views/healthConsultation/components/healthContentMiddle.vue @@ -1,6 +1,13 @@