{latestSection.title}
{latestSection.part}
我的阅读
{purchasedCount}/{totalSections}章{purchasedCount}
已读
{totalSections - purchasedCount}
待读
5
篇章
11
章节
精选推荐
{section.title}
{section.part}
内容概览
{part.title}
{part.subtitle}
序言
为什么我每天早上6点在Soul开播?
"use client" import { useState, useEffect } from "react" import { useRouter } from "next/navigation" import { Search, ChevronRight, BookOpen, Home, List, User } from "lucide-react" import { useStore } from "@/lib/store" import { bookData, getTotalSectionCount } from "@/lib/book-data" export default function HomePage() { const router = useRouter() const { user } = useStore() const [mounted, setMounted] = useState(false) const [searchQuery, setSearchQuery] = useState("") const totalSections = getTotalSectionCount() const hasFullBook = user?.hasFullBook || false const purchasedCount = hasFullBook ? totalSections : user?.purchasedSections?.length || 0 useEffect(() => { setMounted(true) }, []) // 推荐章节 const featuredSections = [ { id: "1.1", title: "荷包:电动车出租的被动收入模式", tag: "免费", part: "真实的人" }, { id: "3.1", title: "3000万流水如何跑出来", tag: "热门", part: "真实的行业" }, { id: "8.1", title: "流量杠杆:抖音、Soul、飞书", tag: "推荐", part: "真实的赚钱" }, ] // 最新更新 const latestSection = { id: "9.14", title: "大健康私域:一个月150万的70后", part: "真实的赚钱", } if (!mounted) { return (
真实的商业世界
{latestSection.part}
{purchasedCount}
已读
{totalSections - purchasedCount}
待读
5
篇章
11
章节
{section.part}
{part.subtitle}
为什么我每天早上6点在Soul开播?