diff --git a/ROADMAP.md b/ROADMAP.md index 4e19d46..7b8d538 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -23,10 +23,9 @@ ## P1 — 体验提升 -### 单人也能用(Solo 模式) -- 只有一人创建房间时,等待页面体验空白 -- 加入 Solo 模式:一人时自动随机推荐 / 转盘选择 -- 降低使用门槛,不依赖必须拉人 +### 单人等待体验修复 +- `userCount === 1` 时跳过"等待其他人完成选择"spinner,直接出结果 +- 匹配文案适配单人场景("就去这了"→"帮你选好了","X/X 人想去"→"你的首选") ### 盲盒想法互动 - 对想法点赞 / 加权(增加被抽中概率) diff --git a/src/components/MatchResult.tsx b/src/components/MatchResult.tsx index e677175..2d84eb3 100644 --- a/src/components/MatchResult.tsx +++ b/src/components/MatchResult.tsx @@ -189,6 +189,7 @@ export default function MatchResult({ const [toast, setToast] = useState(""); const celebratedRef = useRef(false); const historySavedRef = useRef(false); + const isSolo = userCount <= 1; const isUnanimous = matchType === "unanimous"; const [favorited, setFavorited] = useState(false); const [favLoading, setFavLoading] = useState(false); @@ -300,7 +301,7 @@ export default function MatchResult({ animate={{ y: 0, opacity: 1 }} transition={{ delay: 0.35 }} > - 就去这了! + {isSolo ? "帮你选好了!" : "就去这了!"} - {isUnanimous - ? "大家一拍即合!" - : `${matchLikes}/${userCount} 人想去这家`} + {isSolo + ? "你的首选,别犹豫了" + : isUnanimous + ? "大家一拍即合!" + : `${matchLikes}/${userCount} 人想去这家`} - {isUnanimous && ( + {isUnanimous && !isSolo && ( r.id === resolvedMatchId) ?? null : null; - const showWaiting = allSwiped && !resolvedMatchId; + const showWaiting = allSwiped && !resolvedMatchId && userCount > 1; return ( <>