118 lines
4.6 KiB
TypeScript
118 lines
4.6 KiB
TypeScript
/**
|
||
* VIP 首页 Mock 数据 - 集中管理
|
||
* 后续可替换为 api.hackrobot.cn 真实接口
|
||
*/
|
||
|
||
import { CURRICULUM_CONFIG } from "@/app/cloudphone/config/course";
|
||
|
||
/** 视频课程总数:从所有课程配置汇总计算 */
|
||
const TOTAL_VIDEOS = CURRICULUM_CONFIG.modules.reduce((s, m) => s + m.lessons.length, 0);
|
||
|
||
export const ASSET_STATS = {
|
||
topics: 4,
|
||
ebooks: 2,
|
||
videos: TOTAL_VIDEOS,
|
||
updateFrequency: "每周",
|
||
} as const;
|
||
|
||
export const TOPICS = [
|
||
{
|
||
id: "ebook",
|
||
icon: "📖",
|
||
title: "电子书",
|
||
desc: "知识沉淀·随时阅读",
|
||
href: "/ebook",
|
||
},
|
||
{
|
||
id: "cloudphone",
|
||
icon: "🎬",
|
||
title: "视频教程",
|
||
desc: "实战演练·即学即用",
|
||
href: "/cloudphone",
|
||
},
|
||
{
|
||
id: "community",
|
||
icon: "👥",
|
||
title: "私密社群",
|
||
desc: "抱团出海",
|
||
href: "https://qun.hackrobot.cn",
|
||
},
|
||
{
|
||
id: "tools",
|
||
icon: "🛒",
|
||
title: "设备自助下单",
|
||
desc: "开箱即用",
|
||
href: "https://store.hackrobot.cn/",
|
||
locked: true,
|
||
},
|
||
] 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 },
|
||
] as const;
|
||
|
||
/** 电子书展示 - 首页展示用 */
|
||
export const EBOOKS_DISPLAY = [
|
||
{ id: "1", title: "数字游民", desc: "地理套利与自动化杠杆", href: "/ebook" },
|
||
{ id: "2", title: "云手机", desc: "低成本工作室搭建指南", href: "/ebook/cloudphone" },
|
||
] 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" },
|
||
] as const;
|
||
|
||
export const COMPARE_ITEMS = [
|
||
{ feature: "电子书", single: "单买", member: "全解锁" },
|
||
{ feature: "视频教程", single: "单买", member: "全解锁" },
|
||
{ feature: "私密社群", single: "—", member: "✓" },
|
||
{ feature: "即时问答", single: "—", member: "✓" },
|
||
{ feature: "持续更新", single: "—", member: "✓" },
|
||
] as const;
|
||
|
||
export const COMMUNITY_PREVIEW = [
|
||
{ icon: "👥", text: "私密社群,抱团出海" },
|
||
{ icon: "💬", text: "即时问答,技术咨询" },
|
||
{ icon: "🎪", text: "线下沙龙,面交对接" },
|
||
] as const;
|
||
|
||
export const FAQ_ITEMS = [
|
||
{
|
||
q: "会员包含哪些内容?",
|
||
a: "电子书、视频教程、私密社群、即时问答、设备自助下单等全部解锁,并享受持续更新。",
|
||
},
|
||
{
|
||
q: "如何加入?",
|
||
a: "点击「立即加入」完成支付即可,支付成功后自动开通,无需人工审核。",
|
||
},
|
||
{
|
||
q: "支持退款吗?",
|
||
a: "本内容为虚拟数字交付,不支持退款。购买前请确认适合您的需求。",
|
||
},
|
||
] as const;
|
||
|
||
/** 已登录控制台用 */
|
||
export const RECENT_UPDATES = [
|
||
{ id: "1", title: "云手机·第3章更新", date: "3月10日", href: "/cloudphone/course/2/0" },
|
||
{ id: "2", title: "电子书·地理套利补充", date: "3月8日", href: "/ebook" },
|
||
{ id: "3", title: "模板库·RPA 脚本新增", date: "3月5日", href: null },
|
||
] as const;
|
||
|
||
export const COMMUNITY_HIGHLIGHTS = [
|
||
{ id: "1", text: "本周社群讨论:出海合规要点", href: "https://qun.hackrobot.cn" },
|
||
{ 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: "2", text: "阅读电子书地理套利篇", href: "/ebook", priority: 2 },
|
||
{ id: "3", text: "加入社群参与讨论", href: "https://qun.hackrobot.cn", priority: 3 },
|
||
] as const;
|