This commit is contained in:
root
2026-06-07 18:06:52 +08:00
parent 9de2465793
commit a1daa040ef
33 changed files with 1917 additions and 439 deletions

View File

@@ -3,9 +3,9 @@
* 与 join 报名支付分离,课程解锁用 VIP 状态
*/
/** 前 2 章试看(暂时关闭,全部需 VIP 解锁 */
export function isFreeTrial(_moduleIndex: number, _lessonIndex: number): boolean {
return false;
/** 第一模块前 2 节可试看,其余章节需 VIP 解锁 */
export function isFreeTrial(moduleIndex: number, lessonIndex: number): boolean {
return moduleIndex === 0 && lessonIndex < 2;
}
/** 章节是否可观看(需传入 vip 状态,来自 useAuthAndVip 或 /api/digital/vip/check */