feat: 场景细分为餐厅/咖啡奶茶/甜品 + 附近搜索优先 + 美食多选标签

This commit is contained in:
2026-02-26 23:04:25 +08:00
parent c0662de3dd
commit fbb2c22964
6 changed files with 71 additions and 42 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
import { Star, MapPin, Zap } from "lucide-react";
import { QRCodeSVG } from "qrcode.react";
import type { Restaurant, MatchType, SceneType } from "@/types";
import { getSceneConfig } from "@/lib/sceneConfig";
export interface RestaurantShareData {
type: "restaurant";
@@ -22,7 +23,7 @@ export default function RestaurantShareCard({
}) {
const { restaurant, matchType, matchLikes, userCount, scene } = data;
const isUnanimous = matchType === "unanimous";
const verb = scene === "drink" ? "喝" : "吃";
const verb = getSceneConfig(scene ?? "eat").verb;
const shareUrl =
typeof window !== "undefined" ? window.location.origin : "nowhatever.app";
const accentFrom = isUnanimous ? "#059669" : "#b45309";