fix(miniprogram): 首页/健康页/详情页统一使用 Loading 组件

This commit is contained in:
iven
2026-04-24 12:27:16 +08:00
parent f75bc191e6
commit 54a0e393ac
3 changed files with 22 additions and 13 deletions

View File

@@ -2,6 +2,7 @@ import React, { useState, useEffect } from 'react';
import { View, Text } from '@tarojs/components';
import Taro, { useRouter } from '@tarojs/taro';
import { getReportDetail, LabReport } from '../../../services/report';
import Loading from '../../../components/Loading';
import './index.scss';
interface IndicatorItem {
@@ -51,9 +52,7 @@ export default function ReportDetail() {
if (loading) {
return (
<View className='detail-page'>
<View className='loading-state'>
<Text className='loading-text'>...</Text>
</View>
<Loading />
</View>
);
}