Ví dụ cấu hình đối tượng danh mục trò chơi và môi trường hiển thị nội bộ.
JavaScript
// Cấu hình thông số hiển thị danh mục trò chơi mẫu tại 789BET
const localCatalogConfig = {
brand: "789BET",
domain: "789bet0game.com",
country: "vn",
defaultLanguage: "Tiếng Việt",
featuredGames: [
{ id: "026", name: "Santas Gift Rush", category: "Slot game" },
{ id: "080", name: "Jack Frosts", category: "Slot game" },
{ id: "100", name: "Sprmkt Spree", category: "Slot game" },
{ id: "015", name: "Gem Saviour", category: "Slot game" },
{ id: "091", name: "Candy Superwin", category: "Slot game" }
],
filterCategory(category) {
return this.featuredGames.filter(game => game.category === category);
}
};
console.log("Khởi tạo danh mục:", localCatalogConfig.brand);
JSON
{
"brand": "789BET",
"domain": "789bet0game.com",
"country": "vn",
"defaultLanguage": "Tiếng Việt",
"featuredGames": [
{
"id": "026",
"name": "Santas Gift Rush",
"category": "Slot game"
},
{
"id": "080",
"name": "Jack Frosts",
"category": "Slot game"
},
{
"id": "100",
"name": "Sprmkt Spree",
"category": "Slot game"
},
{
"id": "015",
"name": "Gem Saviour",
"category": "Slot game"
},
{
"id": "091",
"name": "Candy Superwin",
"category": "Slot game"
}
]
}