diff --git a/docs/progress/current.md b/docs/progress/current.md index 7ecf611..bf8019f 100644 --- a/docs/progress/current.md +++ b/docs/progress/current.md @@ -41,6 +41,8 @@ | 技能广场 | `marketplace/page.tsx` | 所有 Skill 免费开放,下架付费购买与 PaymentModal | | 用量包 | `practices/packages/page.tsx` | 下架付费用量包,仅展示免费配额 + 赞助入口 | | 沙箱 | `sandbox/page.tsx` | 用量耗尽提示改为引导至 /donate 赞助 | +| 课程详情 | `courses/[id]/client.tsx` | 下架付费购买按钮与微信扫码支付弹窗,全部免费开放 | +| 首页/能力导览 | `page.tsx` / `models.*` | 文案由"购买即用"改为"免费使用" | | 导航/页脚 | `header.tsx` / `footer.tsx` | 新增「赞助」「联盟返佣」入口 | | i18n | `zh.ts` / `en.ts` | 新增 `donate.*`、导航 `affiliate`/`donate`、说明文案 | diff --git a/frontend/src/app/courses/[id]/client.tsx b/frontend/src/app/courses/[id]/client.tsx index 6a46312..40f85d8 100755 --- a/frontend/src/app/courses/[id]/client.tsx +++ b/frontend/src/app/courses/[id]/client.tsx @@ -5,7 +5,7 @@ import { useParams } from 'next/navigation'; import Link from 'next/link'; import { Skeleton } from '@/components/ui/skeleton'; import { API_BASE } from '@/lib/config'; -import { BookOpen, AlertTriangle, Menu, ChevronLeft, X } from 'lucide-react'; +import { BookOpen, AlertTriangle, Menu, ChevronLeft } from 'lucide-react'; interface Lesson { id: number; title: string; content?: string; sortOrder: number; status: string; @@ -33,39 +33,6 @@ function LoadingSkeleton() { ); } -function PayModal({ paying, qrCodeUrl, onClose }: { paying: boolean; qrCodeUrl: string; onClose: () => void }) { - if (!paying) return null; - return ( -
请使用微信扫描二维码完成支付
- > - ) : ( -正在生成支付二维码...
-