fix(miniprogram): 首页/健康页/详情页统一使用 Loading 组件
This commit is contained in:
@@ -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')}>
|
||||
|
||||
Reference in New Issue
Block a user