Spaces:
Running

sdex / src /types.ts
vip
Upload Shengda frontend
25b8647
Raw History Blame Contribute Delete
6.82 kB
export enum ScreenId {
HOME = "HOME", // 1. 盛大娱乐城 - 首页 — Initial Screen
WITHDRAWAL = "WITHDRAWAL", // 2. 盛大娱乐城 - 提现中心
GAME_DETAILS = "GAME_DETAILS", // 3. 盛大娱乐城 - 游戏详情
BET_HISTORY = "BET_HISTORY", // 4. 盛大娱乐城 - 投注记录列表
REGISTER = "REGISTER", // 5. 盛大娱乐城 - 注册
GAME_CENTER = "GAME_CENTER", // 6. 盛大娱乐城 - 游戏中心
PROMOTIONS = "PROMOTIONS", // 7. 盛大娱乐城 - 优惠活动
FINANCE = "FINANCE", // 8. 盛大娱乐城 - 财务中心
PROFILE = "PROFILE", // 9. 盛大娱乐城 - 个人中心
CUSTOMER_SUPPORT = "CUSTOMER_SUPPORT", // 10. 盛大娱乐城 - 在线客服
TRANSACTION_DETAILS = "TRANSACTION_DETAILS", // 11. 盛大娱乐城 - 交易详情
PROVIDERS = "PROVIDERS", // 12. 盛大娱乐城 - 游戏供应商
DEPOSIT_FAILED = "DEPOSIT_FAILED", // 13. 盛大娱乐城 - 充值失败详情
GAME_CATEGORIES = "GAME_CATEGORIES", // 14. 盛大娱乐城 - 游戏分类
DEPOSIT = "DEPOSIT", // 15. 盛大娱乐城 - 充值中心
VIP_WEEKLY_REBATE = "VIP_WEEKLY_REBATE", // 16. 盛大娱乐城 - VIP 4-6 周返水详情
CONFIRM_WITHDRAWAL = "CONFIRM_WITHDRAWAL", // 17. 盛大娱乐城 - 确认提现详情
REVENUE_DASHBOARD = "REVENUE_DASHBOARD", // 18. 盛大娱乐城 - 营收看板
PG_SOFT_GAMES = "PG_SOFT_GAMES", // 19. 盛大娱乐城 - PG Soft 游戏列表
TRANSACTION_FILTER = "TRANSACTION_FILTER", // 20. 盛大娱乐城 - 交易记录筛选
ANNOUNCEMENTS = "ANNOUNCEMENTS", // 21. 盛大娱乐城 - 游戏公告
ADD_WITHDRAWAL_ADDRESS = "ADD_WITHDRAWAL_ADDRESS",// 22. 盛大娱乐城 - 添加提现地址
DEPOSIT_SUCCESS = "DEPOSIT_SUCCESS", // 23. 盛大娱乐城 - 充值成功详情
LOGIN = "LOGIN", // 24. 盛大娱乐城 - 登录/注册
GAME_RECOMMENDATIONS = "GAME_RECOMMENDATIONS", // 25. 盛大娱乐城 - 游戏推荐
VIP_LEVEL_CENTER = "VIP_LEVEL_CENTER", // 26. 盛大娱乐城 - VIP 等级中心
DEPOSIT_RECORDS_OVERVIEW = "DEPOSIT_RECORDS_OVERVIEW", // 27. 盛大娱乐城 - 充值记录概览
VIP_PROMOTION_BONUS = "VIP_PROMOTION_BONUS", // 28. 盛大娱乐城 - VIP 4-6 晋级礼金详情
PROMO_CLAIM_HISTORY = "PROMO_CLAIM_HISTORY" // 29. 盛大娱乐城 - 优惠领取记录
}
export interface Transaction {
id: string;
type: string;
amount: number;
currency: string;
status: "Success" | "Pending" | "Failed";
date: string;
paymentMethod: string;
remarks?: string;
}
export interface BetRecord {
id: string;
gameName: string;
category: "casino" | "sports_esports" | "style";
betAmount: number;
resultAmount?: number;
status: "Settled" | "Pending" | "Won" | "Lost";
time: string;
date: string;
}
export interface PromoItem {
id: string;
title: string;
tag: string;
statusText: string;
desc: string;
badgeType: "newbie" | "daily" | "vip";
duration: string;
image: string;
}
export interface ClaimedReward {
id: string;
title: string;
amount: number;
date: string;
vipLevel: string;
}
export interface AppState {
balance: number;
rewardPoints: number;
username: string;
isLoggedIn: boolean;
vipLevel: number;
transactions: Transaction[];
bets: BetRecord[];
withdrawalAddresses: { address: string; nickname: string; network: string }[];
language: "zh" | "en";
avatarUrl?: string;
}
export const INITIAL_STATE: AppState = {
balance: 14250.00,
rewardPoints: 12500,
username: "玩家_7894",
isLoggedIn: false, // Default is logged out as seen on screen copies, can log in via login view
vipLevel: 4,
language: "zh",
avatarUrl: "https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?auto=format&fit=crop&w=150&h=150&q=80",
transactions: [
{
id: "SDYL-TX-98274-XYZ",
type: "银行卡提现",
amount: -1200.00,
currency: "$",
status: "Success",
date: "2024-05-20 14:30:45",
paymentMethod: "招商银行 (**** 1234)",
remarks: "Normal Processing. No additional fees applied."
},
{
id: "SDYL-DEP-7892-AAA",
type: "USDT 充值",
amount: 500.00,
currency: "$",
status: "Success",
date: "2024-05-20 14:30:00",
paymentMethod: "USDT (TRC20)",
remarks: "Automatic conversion."
},
{
id: "SDYL-TX-98274-PND",
type: "银行卡提现",
amount: -1200.00,
currency: "$",
status: "Pending",
date: "2024-05-19 09:15:00",
paymentMethod: "招商银行 (尾号 8899)"
},
{
id: "SDYL-DEP-5221-ALIP",
type: "支付宝扫码",
amount: 2000.00,
currency: "$",
status: "Success",
date: "2024-05-15 22:45:00",
paymentMethod: "Alipay QR Sweep"
},
{
id: "SDYL-5501-A89F",
type: "信用卡支付",
amount: -550.00,
currency: "¥",
status: "Failed",
date: "2024-05-10 11:20:45",
paymentMethod: "信用卡 (尾号 4242)",
remarks: "支付超时或余额不足。请检查您的账户或尝试其他支付方式。"
}
],
bets: [
{
id: "9876543210",
gameName: "财神到",
category: "casino",
betAmount: 100.00,
resultAmount: 250.00,
status: "Won",
time: "15:30:45",
date: "今天"
},
{
id: "9876543211",
gameName: "龙虎斗",
category: "sports_esports",
betAmount: 50.00,
status: "Pending",
time: "14:15:00",
date: "今天"
},
{
id: "9876543199",
gameName: "百家乐",
category: "style",
betAmount: 200.00,
resultAmount: -200.00,
status: "Lost",
time: "21:40:12",
date: "昨天"
}
],
withdrawalAddresses: [
{
address: "TWeq9h2aY9sTj6fE1VOp6qN...zXYJD7ny",
nickname: "币安主要钱包",
network: "USDT (TRC20)"
}
]
};
export const ClaimedHistoryData: ClaimedReward[] = [
{ id: "1", title: "Level Up Bonus", amount: 588.00, date: "2024-05-20", vipLevel: "VIP 4" },
{ id: "2", title: "Weekly Rebate", amount: 120.50, date: "2024-05-18", vipLevel: "VIP 4" },
{ id: "3", title: "Weekend Deposit Match", amount: 1000.00, date: "2024-05-15", vipLevel: "VIP 3" },
{ id: "4", title: "Daily Login Bonus", amount: 10.00, date: "2024-05-14", vipLevel: "VIP 3" },
{ id: "5", title: "Referral Reward", amount: 50.00, date: "2024-05-10", vipLevel: "VIP 3" }
];