This commit is contained in:
eric
2026-03-15 04:25:45 -05:00
parent df12c7af4a
commit bbaa38b3b3
32 changed files with 4312 additions and 152 deletions

View File

@@ -1,12 +1,10 @@
/**
* VIP 首页 Mock 数据 - 集中管理
* 后续可替换为 api.hackrobot.cn 真实接口
* VIP 首页展示数据
*/
import { CURRICULUM_CONFIG } from "@/app/cloudphone/config/course";
/** 视频课程总数:从所有课程配置汇总计算 */
const TOTAL_VIDEOS = CURRICULUM_CONFIG.modules.reduce((s, m) => s + m.lessons.length, 0);
const TOTAL_VIDEOS = CURRICULUM_CONFIG.modules.reduce((sum, module) => sum + module.lessons.length, 0);
export const ASSET_STATS = {
topics: 4,
@@ -18,28 +16,28 @@ export const ASSET_STATS = {
export const TOPICS = [
{
id: "ebook",
icon: "📖",
icon: "📙",
title: "电子书",
desc: "知识沉淀·随时阅读",
desc: "知识沉淀随时阅读",
href: "/ebook",
},
{
id: "cloudphone",
icon: "🎬",
icon: "🎞️",
title: "视频教程",
desc: "实战演练·即学即用",
desc: "实战演练即学即用",
href: "/cloudphone",
},
{
id: "community",
icon: "👥",
title: "私密社群",
desc: "抱团出海",
href: "https://qun.hackrobot.cn",
desc: "抱团出海,实时交流",
href: "/community",
},
{
id: "tools",
icon: "🛒",
icon: "🧰",
title: "设备自助下单",
desc: "开箱即用",
href: "https://store.hackrobot.cn/",
@@ -47,31 +45,28 @@ export const TOPICS = [
},
] as const;
/** 模块展示 - 首页展示用,电子书/视频教程点击滚动到同页对应区块 */
export const TOPICS_DISPLAY = [
{ id: "ebook", icon: "📖", title: "电子书", desc: "知识沉淀·随时阅读", href: "#ebooks" },
{ id: "cloudphone", icon: "🎬", title: "视频教程", desc: "实战演练·即学即用", href: "#video-courses" },
{ id: "community", icon: "👥", title: "私密社群", desc: "抱团出海", href: "https://qun.hackrobot.cn", locked: true },
{ id: "tools", icon: "🛒", title: "设备自助下单", desc: "开箱即用", href: "https://store.hackrobot.cn/", locked: true },
{ id: "ebook", icon: "📙", title: "电子书", desc: "知识沉淀随时阅读", href: "#ebooks" },
{ id: "cloudphone", icon: "🎞️", title: "视频教程", desc: "实战演练即学即用", href: "#video-courses" },
{ id: "community", icon: "👥", title: "私密社群", desc: "像知识星球一样沉淀内容与问答", href: "/community" },
{ id: "tools", icon: "🧰", title: "设备自助下单", desc: "开箱即用", href: "https://store.hackrobot.cn/", locked: true },
] as const;
/** 电子书展示 - 首页展示用 */
export const EBOOKS_DISPLAY = [
{ id: "1", title: "数字游民", desc: "地理套利与自动化杠杆", href: "/ebook", free: true },
{ id: "2", title: "云手机", desc: "低成本工作室搭建指南", href: "/ebook/cloudphone", locked: true },
] as const;
/** 视频教程展示 - 参考 digital.hackrobot.cn 资源导航专题,至少 4 个 */
export const VIDEO_COURSES_DISPLAY = [
{ id: "cloudphone", icon: "☁️", title: "云手机", desc: "低成本自建云手机TikTok/YouTube 运营搭建指南", href: "/cloudphone" },
{ id: "livestream", icon: "📺", title: "无人直播", desc: "TikTok/YouTube 无人直播24 小时自动化", href: "/topic/livestream" },
{ id: "indie", icon: "🛠️", title: "独立开发", desc: "从想法到产品,独立开发者全流程指南", href: "/topic/indie" },
{ id: "aiagent", icon: "🤖", title: "AI Agent", desc: "AIGC 与智能体Vibe Coding 跨界创造", href: "/topic/aiagent" },
{ id: "cloudphone", icon: "☁️", title: "云手机", desc: "低成本自建云手机与矩阵运营", href: "/cloudphone" },
{ id: "livestream", icon: "📵", title: "无人直播", desc: "TikTok / YouTube 无人直播实战", href: "/topic/livestream" },
{ id: "indie", icon: "🧭", title: "独立开发", desc: "从想法到产品的完整路径", href: "/topic/indie" },
{ id: "aiagent", icon: "🤖", title: "AI Agent", desc: "AIGC 与智能体工作流", href: "/topic/aiagent" },
] as const;
export const COMPARE_ITEMS = [
{ feature: "电子书", single: "按需开通", member: "全解锁" },
{ feature: "视频教程", single: "按需开通", member: "全解锁" },
{ feature: "电子书", single: "按需开通", member: "全解锁" },
{ feature: "视频教程", single: "按需开通", member: "全解锁" },
{ feature: "私密社群", single: "—", member: "✓" },
{ feature: "即时问答", single: "—", member: "✓" },
{ feature: "持续更新", single: "—", member: "✓" },
@@ -80,38 +75,37 @@ export const COMPARE_ITEMS = [
export const COMMUNITY_PREVIEW = [
{ icon: "👥", text: "私密社群,抱团出海" },
{ icon: "💬", text: "即时问答,技术咨询" },
{ icon: "🎪", text: "线下沙龙,面交对接" },
{ icon: "🗂️", text: "精选复盘、工具与附件沉淀" },
] as const;
export const FAQ_ITEMS = [
{
q: "会员包含哪些内容?",
a: "电子书、视频教程、私密社群、即时问答、设备自助下单等全部解锁,并享受持续更新。",
a: "电子书、视频教程、私密社群、即时问答、设备自助下单等内容会统一解锁,并持续更新。",
},
{
q: "如何加入?",
a: "点击立即加入完成支付即可,支付成功后自动开通,无需人工审核。",
a: "点击立即加入完成支付即可自动开通,无需人工审核。",
},
{
q: "支持退款吗?",
a: "本内容为虚拟数字交付,不支持退款购买前确认适合您的需求。",
a: "本内容为虚拟数字交付,不支持退款,请在购买前确认符合你的预期。",
},
] as const;
/** 已登录控制台用 */
export const RECENT_UPDATES = [
{ id: "1", title: "云手机·第3章更新", date: "310日", href: "/cloudphone/course/2/0" },
{ id: "2", title: "电子书·地理套利补充", date: "3月8日", href: "/ebook" },
{ id: "3", title: "模板库·RPA 脚本新增", date: "3月5日", href: null },
{ id: "1", title: "云手机第 3 章更新", date: "310 日", href: "/cloudphone/course/2/0" },
{ id: "2", title: "电子书补充:地理套利", date: "3 月 8 日", href: "/ebook" },
{ id: "3", title: "模板库新增:RPA 脚本", date: "3 月 6 日", href: null },
] as const;
export const COMMUNITY_HIGHLIGHTS = [
{ id: "1", text: "本周社群讨论:出海合规要点", href: "https://qun.hackrobot.cn" },
{ id: "1", text: "本周社群讨论:出海合规要点", href: "/community/explore" },
{ id: "2", text: "问答精选:云手机多开方案", href: "https://chatwoot.hackrobot.cn/livechat?user_id=hackrobot" },
] as const;
export const WEEKLY_ACTIONS = [
{ id: "1", text: "完成云手机第2章", href: "/cloudphone/course/1/0", priority: 1 },
{ id: "1", text: "完成云手机第 2 章", href: "/cloudphone/course/1/0", priority: 1 },
{ id: "2", text: "阅读电子书地理套利篇", href: "/ebook", priority: 2 },
{ id: "3", text: "加入社群参与讨论", href: "https://qun.hackrobot.cn", priority: 3 },
{ id: "3", text: "加入社群参与讨论", href: "/community", priority: 3 },
] as const;