diff --git a/apps/miniprogram/src/pages/health/index.tsx b/apps/miniprogram/src/pages/health/index.tsx index 460719f..166c7c2 100644 --- a/apps/miniprogram/src/pages/health/index.tsx +++ b/apps/miniprogram/src/pages/health/index.tsx @@ -176,7 +176,16 @@ export default function Health() { {/* AI 建议卡片 */} {aiSuggestions.length > 0 && ( - Taro.navigateTo({ url: '/pages/pkg-profile/settings/index' })}> + { + const first = aiSuggestions[0]; + if (first?.suggestion_type === 'appointment') { + Taro.navigateTo({ url: `/pages/pkg-appointment/create/index?patientId=${first.patient_id}` }); + } else if (first?.suggestion_type === 'followup') { + Taro.navigateTo({ url: '/pages/pkg-profile/followups/index' }); + } else { + Taro.navigateTo({ url: '/pages/health/index' }); + } + }}> AI 健康建议 {aiSuggestions.length} 条待查看