"use client"; import { useEffect, useState } from "react"; import { formatRestoreDateShort } from "@vip/config/promo.config"; import { readPortalRemoteCopy } from "@vip/app/lib/remoteConfigBridge"; import styles from "../vip.module.css"; type LandingCTAProps = { onJoin: () => void; onLogin: () => void; payTestMode?: boolean; wechatAvatar?: string | null; wechatNick?: string | null; }; /** 设为 true 可重新展示「适合你 / 请止步」区块(下方 JSX 与 vip.module.css 内样式均保留) */ const SHOW_CTA_AUDIENCE_BOUNDARY = false; export function LandingCTA({ onJoin, onLogin, payTestMode, wechatAvatar, wechatNick, }: LandingCTAProps) { const [restoreDate] = useState(() => formatRestoreDateShort()); const [ctaLabel, setCtaLabel] = useState("立即加入"); const hasAvatar = !!(wechatAvatar || "").trim(); const badgeName = (wechatNick || "微信用户").trim(); useEffect(() => { const apply = () => { const cta = readPortalRemoteCopy().vipCta?.trim(); if (cta) setCtaLabel(cta); }; apply(); // 门户 ModuleGate 会先拉 /api/config 写缓存;稍后再读一次 const t = window.setTimeout(apply, 800); return () => window.clearTimeout(t); }, []); return (

限时特惠 · {restoreDate || "—"} 恢复原价

阶梯定价 数字交付 持续更新 不支持退款

✦ 适合你: 愿意投入行动、认真做增长与出海的同行者

· 请止步: 指望躺赚,或当下现金流极度紧张的朋友

); }