bug fixed
This commit is contained in:
parent
2820d90a85
commit
d73acc544c
|
@ -84,7 +84,7 @@ export class HomeComponent implements OnInit {
|
||||||
private _router: Router,
|
private _router: Router,
|
||||||
private _matDialog: MatDialog,
|
private _matDialog: MatDialog,
|
||||||
private _vendorService: VendorService,
|
private _vendorService: VendorService,
|
||||||
private _gameService: GameService
|
private __gameService: GameService
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
|
@ -173,7 +173,7 @@ export class HomeComponent implements OnInit {
|
||||||
private async getGameByParentId(
|
private async getGameByParentId(
|
||||||
parenId: number
|
parenId: number
|
||||||
): Promise<ListGamesResponse.Result> {
|
): Promise<ListGamesResponse.Result> {
|
||||||
return await this._gameService.listGames(parenId);
|
return await this.__gameService.listGames(parenId);
|
||||||
}
|
}
|
||||||
|
|
||||||
onClickGame(vendor: Vendor): void {
|
onClickGame(vendor: Vendor): void {
|
||||||
|
@ -185,12 +185,21 @@ export class HomeComponent implements OnInit {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const game = gameList[0];
|
const game = gameList[0];
|
||||||
const url = `/game/?vendor_key=${vendor.getKey()}&game_key=${game.getKey()}`;
|
|
||||||
window.open(
|
let r = this.__gameService
|
||||||
url,
|
.getGameUrl(vendor.getKey(), game.getKey())
|
||||||
'gamepopup',
|
.then((r) => {
|
||||||
'width=1400, height=900, toolbar=no, menubar=no, scrollbars=no, resizable=yes'
|
console.log('success', r.getUrl());
|
||||||
);
|
|
||||||
|
window.open(
|
||||||
|
r.getUrl(),
|
||||||
|
'gamepopup',
|
||||||
|
'width=1400, height=900, toolbar=no, menubar=no, scrollbars=no, resizable=yes'
|
||||||
|
);
|
||||||
|
})
|
||||||
|
.catch((e) => {
|
||||||
|
console.log('fail', e);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
// window.open(
|
// window.open(
|
||||||
// '/game/?vendor_key=pragmatic_casino&game_key=101',
|
// '/game/?vendor_key=pragmatic_casino&game_key=101',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user