[add] 七月爆機娛樂城公司活動
This commit is contained in:
parent
0e95004dfe
commit
cd66ad53e4
Before Width: | Height: | Size: 264 KiB After Width: | Height: | Size: 264 KiB |
Before Width: | Height: | Size: 264 KiB After Width: | Height: | Size: 264 KiB |
File diff suppressed because one or more lines are too long
@ -3,12 +3,12 @@
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" href="./favicon.ico" />
|
||||
<link rel="icon" href="./assets/favicon.69a65d1f.ico" />
|
||||
<link href="./src/assets/ZenMaruGothic-Regular.ttf" rel="stylesheet">
|
||||
<!-- <link href="https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic&display=swap" rel="stylesheet"> -->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>BJ_Casino_Rank</title>
|
||||
<script type="module" crossorigin src="./assets/index.9bfa1c6f.js"></script>
|
||||
<script type="module" crossorigin src="./assets/index.1efeab8a.js"></script>
|
||||
<link rel="stylesheet" href="./assets/index.b312efde.css">
|
||||
</head>
|
||||
|
@ -4,7 +4,6 @@ import { ref } from "vue";
|
||||
import Loading from 'vue-loading-overlay';
|
||||
import 'vue-loading-overlay/dist/vue-loading.css';
|
||||
import BJ_Casino_Magnification from './components/BJ_Casino_Magnification.vue';
|
||||
import BJ_Casino_WinMoney from './components/BJ_Casino_WinMoney.vue';
|
||||
import { BJ_Casino_Data } from './script/BJ_Casino_Data';
|
||||
|
||||
let isLoading = ref(true)
|
||||
@ -24,12 +23,13 @@ const handleClick = (tab: TabsPaneContext, event: Event) => {
|
||||
<loading v-model:active="isLoading" :active.sync="isLoading" :can-cancel="false" :is-full-page="true"></loading>
|
||||
<div>
|
||||
<el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
|
||||
<el-tab-pane label="BJ_Casino_Rank倍率" name="first">
|
||||
<el-tab-pane label="BJ_Casino_Rank 1303 倍率" name="first">
|
||||
這是個參考用的排行榜 啾咪
|
||||
<BJ_Casino_Magnification :BJ_Casino="BJ_Casino" />
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="BJ_Casino_Rank贏分" name="second">
|
||||
<!-- <el-tab-pane label="BJ_Casino_Rank贏分" name="second">
|
||||
<BJ_Casino_WinMoney :BJ_Casino="BJ_Casino" />
|
||||
</el-tab-pane>
|
||||
</el-tab-pane> -->
|
||||
</el-tabs>
|
||||
</div>
|
||||
<!-- <BJ_Casino_Magnification /> -->
|
||||
|
@ -18,11 +18,11 @@ const Script = new BJ_Casino_Magnification(self);
|
||||
|
||||
<template>
|
||||
<h1>
|
||||
<el-button type="primary" @click.native="() => { BJ_Casino.PrevWeek() }" size="large" round><<上一周
|
||||
</el-button>
|
||||
<!-- <el-button type="primary" @click.native="() => { BJ_Casino.PrevWeek() }" size="large" round><<上一周
|
||||
</el-button> -->
|
||||
{{ Title }}
|
||||
<el-button type="success" @click.native="() => { BJ_Casino.NextWeek() }" size="large" round>下一周>>
|
||||
</el-button>
|
||||
<!-- <el-button type="success" @click.native="() => { BJ_Casino.NextWeek() }" size="large" round>下一周>>
|
||||
</el-button> -->
|
||||
</h1>
|
||||
<div class="d-flex justify-content-center">
|
||||
<table class="table table-striped table-info table-hover">
|
||||
@ -30,6 +30,7 @@ const Script = new BJ_Casino_Magnification(self);
|
||||
<tr>
|
||||
<th align="left">排名</th>
|
||||
<th align="left">名稱</th>
|
||||
<th align="left">廳別</th>
|
||||
<th align="left">倍率</th>
|
||||
<th align="left">機台</th>
|
||||
<th align="left">桌號</th>
|
||||
@ -45,6 +46,9 @@ const Script = new BJ_Casino_Magnification(self);
|
||||
<td align="left">
|
||||
<font size="5"><b>{{ item[2][1] }}</b></font>
|
||||
</td>
|
||||
<td align="left">
|
||||
<font size="5"><b>{{ item[5][1] }}</b></font>
|
||||
</td>
|
||||
<td align="left">
|
||||
<font size="5"><b>{{ Math.floor(item[1]) }}</b></font>
|
||||
</td>
|
||||
|
@ -18,11 +18,11 @@ const Script = new BJ_Casino_WinMoney(self);
|
||||
|
||||
<template>
|
||||
<h1>
|
||||
<el-button type="primary" @click.native="() => { BJ_Casino.PrevWeek() }" size="large" round><<上一周
|
||||
</el-button>
|
||||
<!-- <el-button type="primary" @click.native="() => { BJ_Casino.PrevWeek() }" size="large" round><<上一周
|
||||
</el-button> -->
|
||||
{{ Title }}
|
||||
<el-button type="success" @click.native="() => { BJ_Casino.NextWeek() }" size="large" round>下一周>>
|
||||
</el-button>
|
||||
<!-- <el-button type="success" @click.native="() => { BJ_Casino.NextWeek() }" size="large" round>下一周>>
|
||||
</el-button> -->
|
||||
</h1>
|
||||
<div class="d-flex justify-content-center">
|
||||
<table class="table table-striped table-info table-hover">
|
||||
|
@ -12,7 +12,9 @@ export class BJ_Casino_Data {
|
||||
|
||||
//#region public
|
||||
|
||||
public ContestData: string[] = ["4/7~4/13", "4/14~4/20", "4/21~4/27"];
|
||||
public ContestData: string[] = ["7/22~7/28"];
|
||||
|
||||
public ThisUseType: number[] = [1, 2, 3];
|
||||
|
||||
public Title: string = "";
|
||||
|
||||
@ -20,6 +22,8 @@ export class BJ_Casino_Data {
|
||||
|
||||
public Current: any[] = [];
|
||||
|
||||
public RankType: any[] = [[1, "體驗廳"], [2, "一般廳"], [3, "高手廳"], [4, "至尊廳"]];
|
||||
|
||||
//#endregion
|
||||
|
||||
//#region private
|
||||
@ -54,7 +58,7 @@ export class BJ_Casino_Data {
|
||||
* 0 _rankMagnificationData
|
||||
* 1 _rankWinMoneyData
|
||||
*/
|
||||
private _isOK: any[] = [false, false];
|
||||
private _isOK: any[] = [false, true];
|
||||
|
||||
//#endregion
|
||||
|
||||
@ -91,11 +95,15 @@ export class BJ_Casino_Data {
|
||||
|
||||
/** 連線 */
|
||||
public async ConnectServer(): Promise<void> {
|
||||
const URL: string = "https://game.online-bj.com";
|
||||
// const URL: string = "https://game.online-bj.com";
|
||||
const URL: string = "https://submit.online-bj.com";
|
||||
const Port: string = "9005";
|
||||
await this.ConnectAsync(URL, +Port);
|
||||
// 取得帳號資料
|
||||
let req: AccountLoginRequest = new AccountLoginRequest("ct00000691", "4lsAyoalajm7");
|
||||
// 外版
|
||||
// let req: AccountLoginRequest = new AccountLoginRequest("ct00000691", "4lsAyoalajm7");
|
||||
// 送審
|
||||
let req: AccountLoginRequest = new AccountLoginRequest("ct00000482", "tWRVjgwXkS4C");
|
||||
await req.SendAsync(true);
|
||||
let resp: INetResponse<any> = req.Result;
|
||||
if (!resp.IsValid) {
|
||||
@ -147,12 +155,15 @@ export class BJ_Casino_Data {
|
||||
|
||||
public async SendRankData(): Promise<void> {
|
||||
this.SendRankMagnificationData();
|
||||
this.SendRankWinMoneyData();
|
||||
// this.SendRankWinMoneyData();
|
||||
}
|
||||
|
||||
public async SendRankMagnificationData(): Promise<void> {
|
||||
for (let i = 0; i < this.ThisUseType.length; i++) {
|
||||
const thisUseType = this.ThisUseType[i];
|
||||
const rankType = this.RankType[thisUseType][0];
|
||||
let req: any = null;
|
||||
req = new AppRankInfo(12, 2);
|
||||
req = new AppRankInfo(12, rankType);
|
||||
await req.SendAsync(true);
|
||||
let resp: INetResponse<any> = req.Result;
|
||||
if (!resp.IsValid) {
|
||||
@ -166,7 +177,8 @@ export class BJ_Casino_Data {
|
||||
return;
|
||||
}
|
||||
this.SetRankMagnificationSearchData(resp.Data);
|
||||
this.ParseRankMagnificationData(resp.Data);
|
||||
this.ParseRankMagnificationData(rankType, resp.Data);
|
||||
}
|
||||
}
|
||||
|
||||
public async SendRankWinMoneyData(): Promise<void> {
|
||||
@ -212,10 +224,10 @@ export class BJ_Casino_Data {
|
||||
this.Title = `${this._nowContestStart}~${this._nowContestEnd}`;
|
||||
}
|
||||
|
||||
public async ParseRankMagnificationData(data: any = null): Promise<void> {
|
||||
public async ParseRankMagnificationData(rankType: number, data: any = null): Promise<void> {
|
||||
let id: number = this._nowSearchMagnificationID;
|
||||
if (data) {
|
||||
this.RankDataAddDate(id, data["rank"]);
|
||||
this.RankDataAddDate(rankType, id, data["rank"]);
|
||||
this._rankMagnificationData = this._rankMagnificationData.concat(data["rank"]);
|
||||
}
|
||||
let targetIndex: number = this._nowContestStartIndex;
|
||||
@ -228,18 +240,18 @@ export class BJ_Casino_Data {
|
||||
} else {
|
||||
this._nowSearchMagnificationID = id - 1;
|
||||
}
|
||||
let req: any = await this.GetRankData(12, this._nowSearchMagnificationID);
|
||||
let req: any = await this.GetRankData(12, rankType, this._nowSearchMagnificationID);
|
||||
let resp: INetResponse<any> = req.Result;
|
||||
if (!resp.IsValid) {
|
||||
if (resp.Status === 11) {
|
||||
CSMessage.NetError(resp.Method, resp.Status, "Rank 無資料");
|
||||
this.ParseRankMagnificationData(resp.Data);
|
||||
this.ParseRankMagnificationData(rankType, resp.Data);
|
||||
} else {
|
||||
CSMessage.NetError(resp.Method, resp.Status, "Get RankInfo Fail");
|
||||
}
|
||||
return;
|
||||
}
|
||||
this.ParseRankMagnificationData(resp.Data);
|
||||
this.ParseRankMagnificationData(rankType, resp.Data);
|
||||
return;
|
||||
} else {
|
||||
this.OrganizeRankMagnificationData(this._rankMagnificationData);
|
||||
@ -247,11 +259,11 @@ export class BJ_Casino_Data {
|
||||
}
|
||||
}
|
||||
|
||||
public async GetRankData(type: number, dayIdid: number): Promise<any> {
|
||||
public async GetRankData(type: number, rankType: number, dayIdid: number): Promise<any> {
|
||||
let req: any = null;
|
||||
req = new AppRankHistory(type, 2, dayIdid);
|
||||
req = new AppRankHistory(type, rankType, dayIdid);
|
||||
if (dayIdid === this._nowContestID) {
|
||||
req = new AppRankInfo(type, 2);
|
||||
req = new AppRankInfo(type, rankType);
|
||||
}
|
||||
await req.SendAsync(true);
|
||||
return req;
|
||||
@ -264,6 +276,9 @@ export class BJ_Casino_Data {
|
||||
rankdata = rankdata.filter((rankdata: any, index: any, arr: any) => {
|
||||
return arr.findIndex((s: any) => rankdata[2][1] === s[2][1]) === index;
|
||||
});
|
||||
rankdata = rankdata.filter((rankdata: any, index: any, arr: any) => {
|
||||
return +rankdata[3][0] === 1303;
|
||||
});
|
||||
for (let i: number = 0; i < rankdata.length; i++) {
|
||||
rankdata[i][0] = i + 1;
|
||||
}
|
||||
@ -283,7 +298,7 @@ export class BJ_Casino_Data {
|
||||
public async ParseRankWinMoneyData(data: any = null): Promise<void> {
|
||||
let id: number = this._nowSearchWinMoneyID;
|
||||
if (data) {
|
||||
this.RankDataAddDate(id, data["rank"]);
|
||||
this.RankDataAddDate(2, id, data["rank"]);
|
||||
this._rankWinMoneyData = this._rankWinMoneyData.concat(data["rank"]);
|
||||
}
|
||||
let targetIndex: number = this._nowContestStartIndex;
|
||||
@ -296,7 +311,7 @@ export class BJ_Casino_Data {
|
||||
} else {
|
||||
this._nowSearchWinMoneyID = id - 1;
|
||||
}
|
||||
let req: any = await this.GetRankData(11, this._nowSearchWinMoneyID);
|
||||
let req: any = await this.GetRankData(11, 2, this._nowSearchWinMoneyID);
|
||||
let resp: INetResponse<any> = req.Result;
|
||||
if (!resp.IsValid) {
|
||||
if (resp.Status === 11) {
|
||||
@ -333,10 +348,10 @@ export class BJ_Casino_Data {
|
||||
this._checkOK();
|
||||
}
|
||||
|
||||
public RankDataAddDate(id: number, rankdata: any): any {
|
||||
public RankDataAddDate(rankType: number, id: number, rankdata: any): any {
|
||||
let date: string = this._contestDateFormID(id);
|
||||
for (let i: number = 0; i < rankdata.length; i++) {
|
||||
rankdata[i].push(date);
|
||||
rankdata[i].push(date, [rankType, this.RankType[rankType - 1][1]]);
|
||||
}
|
||||
return rankdata;
|
||||
}
|
||||
@ -435,7 +450,7 @@ export class BJ_Casino_Data {
|
||||
|
||||
public async RunRankMagnificationWeek(): Promise<void> {
|
||||
this._rankMagnificationData = [];
|
||||
let req: any = await this.GetRankData(12, this._nowSearchMagnificationID);
|
||||
let req: any = await this.GetRankData(12, 2, this._nowSearchMagnificationID);
|
||||
let resp: INetResponse<any> = req.Result;
|
||||
if (!resp.IsValid) {
|
||||
if (resp.Status === 11) {
|
||||
@ -447,12 +462,12 @@ export class BJ_Casino_Data {
|
||||
}
|
||||
return;
|
||||
}
|
||||
this.ParseRankMagnificationData(resp.Data);
|
||||
this.ParseRankMagnificationData(2, resp.Data);
|
||||
}
|
||||
|
||||
public async RunRankWinMoneyWeek(): Promise<void> {
|
||||
this._rankWinMoneyData = [];
|
||||
let req: any = await this.GetRankData(11, this._nowSearchWinMoneyID);
|
||||
let req: any = await this.GetRankData(11, 2, this._nowSearchWinMoneyID);
|
||||
let resp: INetResponse<any> = req.Result;
|
||||
if (!resp.IsValid) {
|
||||
if (resp.Status === 11) {
|
||||
|
@ -1,8 +1,12 @@
|
||||
import vue from '@vitejs/plugin-vue'
|
||||
import { defineConfig } from 'vite'
|
||||
import vue from "@vitejs/plugin-vue";
|
||||
import { defineConfig } from "vite";
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
base: "./",
|
||||
plugins: [vue()]
|
||||
})
|
||||
plugins: [vue()],
|
||||
build: {
|
||||
// 輸出路徑
|
||||
outDir: "./public",
|
||||
},
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user