import React, { useState } from "react"; import { ScreenId, AppState } from "../types"; import { ArrowLeft, Headphones, Send, ChevronDown, ChevronUp, BellRing } from "lucide-react"; interface CustomerSupportViewProps { state: AppState; onNavigate: (screen: ScreenId) => void; } export const CustomerSupportView: React.FC = ({ state, onNavigate }) => { const [openFaq, setOpenFaq] = useState(null); const [typedMessage, setTypedMessage] = useState(""); const [chatLog, setChatLog] = useState<{ sender: "user" | "bot"; text: string; time: string }[]>([ { sender: "bot", text: "您好!我是盛大 24 小时智能金牌客服。请问有什么可以帮您?", time: "刚刚" } ]); const toggleFaq = (idx: number) => { setOpenFaq(openFaq === idx ? null : idx); }; const handleSendMessage = (e: React.FormEvent) => { e.preventDefault(); if (!typedMessage.trim()) return; const userText = typedMessage.trim(); const nowStr = new Date().toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' }); setChatLog(prev => [...prev, { sender: "user", text: userText, time: nowStr }]); setTypedMessage(""); // Simulate smart support auto response base on keyword setTimeout(() => { let reply = "收到您的咨询。由于当前人工客服咨询量较大,为您推荐自助提速服务。如属于充值未到账,请在充值中心重新提交一遍订单重试;提现请耐心期待,一般 3-15 分钟极速到账。"; if (userText.includes("充值") || userText.includes("充钱")) { reply = "【充值充能提速】如您充值未到账,请确认支付扣款成功。由于区块链或银行接口或有延迟,请耐心期待 3 分钟;或者将【订单编号、支付截图、您的会员ID】发送在这里,我们将在 1 分钟内为您手工录入。"; } else if (userText.includes("提现") || userText.includes("提款") || userText.includes("出金")) { reply = "【提现到账说明】盛大娱乐城支持 24 小时无上限直提。正常提现预计 3-15 分钟内自动汇出。如超过 1 小时未到账,请联系对接专员帮您查看通道。"; } else if (userText.includes("活动") || userText.includes("红利") || userText.includes("返水")) { reply = "【活动红利领取】每周返水、晋级礼金可在“优惠活动中心”一键领取。点击对应活动,即可看到自动匹配的流水要求和一键申领按钮。"; } setChatLog(prev => [...prev, { sender: "bot", text: reply, time: nowStr }]); }, 1000); }; const FAQS = [ { q: "💰 如何进行快速充值入金?", a: "您可以在“充值中心”选择 USDT (TRC25)、微信扫码、支付宝或银行卡进行充值。对于数字货币充值,系统在检测到链上1个确认后即在 30 秒内自动充值到您的账户余额中,无需人工核实。" }, { q: "🏦 提现需要多长时间到账?有手续费吗?", a: "提现中心全面支持 7x24 小时极速打款。单笔提现在 1-3 分钟内即可直接汇入您的绑定银行卡或 TRC20 钱包地址。盛大承诺:提现一律 0 手续费、0 扣税,绝对安全可靠。" }, { q: "🔒 为什么显示“未登录”可以进行游戏吗?", a: "未登录用户默认只能浏览极速分类。如需享受极速试玩和真实赢利直提,可以点击任意界面的“登录/注册”或者“一键游客试玩”获取 10,000 美金测试额度,即刻畅快下注。" }, { q: "⭐️ VIP 周返水和晋级礼金如何计算?", a: "作为 VIP 4-6 会员,您尊享每周高达 0.8% - 1.0% 的无上限投注返水,晋级礼金最高可达 ¥1,888.00。每周一中午 12:00 返水将自动发放到账,直接享受提款特权。" } ]; return (
{/* Header Container */}
盛大极速在线客服
{/* Hero Welcome Unit */}

24/7 专属金牌尊享客服

您好!港资直营实体背书。全天候 24 小时为您提供充提、金流加速、特权晋升与红利审核答疑服务,无惧任何风控,大额无忧。

{/* Action button triggers for official channels */}
{ e.preventDefault(); alert("正在为您跳转至 Telegram 盛大特权客服专员..."); }} className="bg-[#229ED9]/20 hover:bg-[#229ED9]/30 text-white rounded-xl py-2 flex items-center justify-center gap-1.5 text-xs font-semibold border border-[#229ED9]/30 transition-all cursor-pointer" > Telegram 专道 { e.preventDefault(); alert("正在为您跳转至 WhatsApp 在线技术支持..."); }} className="bg-[#25D366]/20 hover:bg-[#25D366]/30 text-white rounded-xl py-2 flex items-center justify-center gap-1.5 text-xs font-semibold border border-[#25D366]/30 transition-all cursor-pointer" > WhatsApp 专线
{/* Live Interactive Chat Area */}
智能互动聊天室 (Type below to interact)
{chatLog.map((chat, idx) => (
{chat.text}
{chat.time}
))}
{/* Input box */}
setTypedMessage(e.target.value)} placeholder="打字输入充提未到账或活动咨询..." className="flex-1 bg-[#001428] border border-[#414755]/50 rounded-xl px-4 py-2 text-xs text-white placeholder-slate-500 focus:outline-none focus:border-[#528dff]" />
{/* Accordion List FAQ */}

常见热点问题指南 (Click to view)

{FAQS.map((faq, idx) => (
{openFaq === idx && (
{faq.a}
)}
))}
{/* Safety Policy Claims */}
); };