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

@@ -1,6 +1,7 @@
import { View, Text } from '@tarojs/components';
import Taro, { useDidShow } from '@tarojs/taro';
import { useHealthStore } from '../../stores/health';
import Loading from '../../components/Loading';
import './index.scss';
export default function Health() {
@@ -35,6 +36,9 @@ export default function Health() {
</View>
</View>
{loading && !todaySummary ? (
<Loading />
) : (
<View className='health-grid'>
{items.map((item) => (
<View className='health-card' key={item.label} onClick={() => goToTrend(item.indicator)}>
@@ -47,6 +51,7 @@ export default function Health() {
</View>
))}
</View>
)}
<View className='health-actions'>
<View className='action-card' onClick={() => goToTrend('blood_pressure_systolic')}>