'城市详情'

This commit is contained in:
eric
2026-03-08 23:20:16 -05:00
parent e36d533a31
commit 41487dc22e
53 changed files with 3417 additions and 1206 deletions

View File

@@ -16,6 +16,21 @@ export interface City {
gradientTo: string;
icon: string;
tags: string[];
/** 城市详情弹窗 */
coverImage?: string;
reviewsCount?: number;
likedCount?: number;
dislikedCount?: number;
qualityOfLife?: "Great" | "Good" | "Okay" | "Bad";
familyScore?: "Great" | "Good" | "Okay" | "Bad";
communityScore?: "Great" | "Good" | "Okay" | "Bad";
nomadPercent?: number;
funLabel?: "Great" | "Good" | "Okay" | "Bad";
feelsLikeTemp?: number;
acPercent?: number;
lat?: number;
lng?: number;
region?: string;
}
export const cities: City[] = [
@@ -37,6 +52,20 @@ export const cities: City[] = [
gradientTo: "#0891b2",
icon: "🏯",
tags: ["热门", "便宜", "宜居", "山城", "文化", "友好社区"],
coverImage: "https://images.unsplash.com/photo-1590856029826-c7a73142bbf1?w=1200",
reviewsCount: 2842,
likedCount: 198,
dislikedCount: 32,
qualityOfLife: "Good",
familyScore: "Okay",
communityScore: "Great",
nomadPercent: 2,
funLabel: "Great",
feelsLikeTemp: 18,
acPercent: 65,
lat: 25.7,
lng: 100.2,
region: "亚洲",
},
{
id: 2,
@@ -56,6 +85,20 @@ export const cities: City[] = [
gradientTo: "#65a30d",
icon: "🐼",
tags: ["热门", "美食", "都市", "新一线", "文化", "友好社区"],
coverImage: "https://images.unsplash.com/photo-1547981609-4b6bfe67ca0b?w=1200",
reviewsCount: 3654,
likedCount: 312,
dislikedCount: 28,
qualityOfLife: "Great",
familyScore: "Good",
communityScore: "Great",
nomadPercent: 3,
funLabel: "Great",
feelsLikeTemp: 20,
acPercent: 85,
lat: 30.6,
lng: 104.1,
region: "亚洲",
},
{
id: 3,
@@ -75,6 +118,20 @@ export const cities: City[] = [
gradientTo: "#0284c7",
icon: "🌃",
tags: ["热门", "高速网络", "都市", "一线城市", "安全"],
coverImage: "https://images.unsplash.com/photo-1518837695005-2083093ee35b?w=1200",
reviewsCount: 4242,
likedCount: 355,
dislikedCount: 24,
qualityOfLife: "Good",
familyScore: "Good",
communityScore: "Great",
nomadPercent: 4,
funLabel: "Good",
feelsLikeTemp: 28,
acPercent: 95,
lat: 22.5,
lng: 114.1,
region: "亚洲",
},
{
id: 4,