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 @@