diff --git a/components/DecisionChecks.tsx b/components/DecisionChecks.tsx index 9bc36f4..e4e93f5 100644 --- a/components/DecisionChecks.tsx +++ b/components/DecisionChecks.tsx @@ -2,11 +2,9 @@ import React from 'react'; import { AlertTriangle, Clock, Brain } from 'lucide-react'; import { getCooldownChecks, - getRationalChecklist, getScoreBasedReminders, getRecommendedWaitTime, - CooldownCheckItem, - RationalCheckItem + CooldownCheckItem } from '../utils/decisionChecks'; interface DecisionChecksProps { @@ -21,7 +19,6 @@ const DecisionChecks: React.FC = ({ score }) => { const cooldownChecks = getCooldownChecks(productPrice, adjustments, score); - const rationalChecklist = getRationalChecklist(); const scoreReminders = getScoreBasedReminders(score); const waitTime = getRecommendedWaitTime(parseInt(productPrice) || 0, score); @@ -52,15 +49,7 @@ const DecisionChecks: React.FC = ({ } }; - const getCategoryIcon = (category: RationalCheckItem['category']) => { - switch (category) { - case 'financial': return '💰'; - case 'necessity': return '🎯'; - case 'social': return '👥'; - case 'risk': return '⚡'; - default: return '❓'; - } - }; + const shouldShowCooldownChecks = productPrice && (cooldownChecks.length > 0 || scoreReminders.length > 0); @@ -107,27 +96,9 @@ const DecisionChecks: React.FC = ({ )} - {/* 理性检查清单 */} -
-

- - 理性检查清单 -

-
- {rationalChecklist.map((item, index) => ( -
- {getCategoryIcon(item.category)} - □ {item.question} -
- ))} -
- -
- 💡 建议逐一思考上述问题,每个问题花费1-2分钟 -
-
+ ); }; -export default DecisionChecks; \ No newline at end of file +export default DecisionChecks; diff --git a/utils/decisionChecks.ts b/utils/decisionChecks.ts index 8bf5fbc..6f258dd 100644 --- a/utils/decisionChecks.ts +++ b/utils/decisionChecks.ts @@ -26,14 +26,7 @@ export function getCooldownChecks( return checks; } - // 大额支出检查 - if (price > 5000) { - checks.push({ - condition: true, - message: "大额支出 → 建议等待24小时", - type: 'warning' - }); - } + // 移除重复的大额支出等待时间提示(已在上方显示等待时间) // 限时促销检查 if (adjustments.discount) {