历史记录详情修改
This commit is contained in:
parent
fa50168802
commit
d715351fc0
@ -173,6 +173,7 @@ export class UpLayer extends Component {
|
||||
|
||||
|
||||
playScatterWaitSpine(bol: boolean) {
|
||||
console.log('播放scatter等待动画2', this.scatterLayer);
|
||||
this.scatterLayer.children.forEach(child => child.getComponent(Icon).playScatterWaitSpine(bol));
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -51,6 +51,7 @@ export class HistoryDetail extends Component {
|
||||
lang = "th"
|
||||
|
||||
data: any = null
|
||||
currTotalMulti = 0
|
||||
|
||||
protected onLoad(): void {
|
||||
|
||||
@ -237,9 +238,9 @@ export class HistoryDetail extends Component {
|
||||
let currentRoundBefore = 0;
|
||||
|
||||
data.panDetails.forEach((pan, index) => {
|
||||
let isRoundEnd = pan.IsEnd
|
||||
let isRoundMore = index > 0;
|
||||
let roundWin = pan.Score || 0;
|
||||
let isRoundEnd = pan.RoundInfo && pan.RoundInfo.Current === pan.RoundInfo.Total
|
||||
let isRoundMore = pan.RoundInfo && pan.RoundInfo.Total > 1;
|
||||
let roundWin = pan.RoundInfo && pan.RoundInfo.AllScoreMul || 0;
|
||||
|
||||
let obj = {
|
||||
bet: index === 0 ? data.bet : 0,
|
||||
@ -257,7 +258,7 @@ export class HistoryDetail extends Component {
|
||||
before = pan.Balance - roundWin;
|
||||
after = pan.Balance;
|
||||
isFirstRound = false;
|
||||
} else if (pan.Index == 0) {
|
||||
} else if (pan.RoundInfo && pan.RoundInfo.Current == 1) {
|
||||
profit = -data.bet;
|
||||
before = pan.Balance + data.bet - roundWin;
|
||||
after = pan.Balance - roundWin;
|
||||
@ -267,7 +268,7 @@ export class HistoryDetail extends Component {
|
||||
after = pan.Balance - roundWin;
|
||||
}
|
||||
} else {
|
||||
profit = roundWin - data.bet;
|
||||
profit = pan.AllScore - data.bet;
|
||||
before = pan.Balance - profit;
|
||||
after = pan.Balance;
|
||||
isFirstRound = false;
|
||||
@ -395,11 +396,15 @@ export class HistoryDetail extends Component {
|
||||
let roller_gray = content.getChildByName('Roller').getChildByName('gray');
|
||||
let roller_wins = content.getChildByName('Roller').getChildByName('icon_wins');
|
||||
let roller_scatter = content.getChildByName('Roller').getChildByName('icon_scatter');
|
||||
let totalMulti = content.getChildByName('Roller').getChildByName('totalMulti');
|
||||
roller_normal.removeAllChildren();
|
||||
roller_gray.active = false;
|
||||
roller_wins.removeAllChildren();
|
||||
roller_scatter.removeAllChildren();
|
||||
|
||||
// let showMulti = pan.WinMultiPlier - pan.WinMultiPlierReal
|
||||
totalMulti.getComponent(Label).string = this.currTotalMulti <= 0 ? " " : ('x' + this.currTotalMulti)
|
||||
|
||||
let upIconIndexs = [];
|
||||
if (winInfo[0] != null) {
|
||||
// 对{}进行遍历
|
||||
@ -477,9 +482,6 @@ export class HistoryDetail extends Component {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
console.log(roller_gray.active, 'roller_gray.active')
|
||||
|
||||
// No Winning Combination
|
||||
let node_no_winning = content.getChildByName("node_no_winning")
|
||||
node_no_winning.active = winInfo[0] == null;
|
||||
@ -496,7 +498,7 @@ export class HistoryDetail extends Component {
|
||||
let node_win_multiplier_1 = content.getChildByName("node_win_multiplier_1")
|
||||
node_win_multiplier_1.active = false;
|
||||
|
||||
if (winInfo[0] != null) {
|
||||
if (pan.RoundInfo != null) {
|
||||
if (pan.RoundInfo && pan.RoundInfo.Mul > 1) {
|
||||
// let mulDesc = winInfo.MulDesc;
|
||||
let txt_win_multiplier = node_win_multiplier.getChildByName("txt_win_multiplier")
|
||||
@ -507,12 +509,14 @@ export class HistoryDetail extends Component {
|
||||
txt_win_multiplier_1.getComponent(Label).string = getTranslate(this.dict, "Win Multiplier");
|
||||
|
||||
let mulited = node_win_multiplier_1.getChildByName("mulited");
|
||||
mulited.getComponent(Label).string = `${currencySymbol} ${fixNum(pan.RoundInfo.Score)}` + '';
|
||||
mulited.getComponent(Label).string = `${currencySymbol} ${fixNum(pan.RoundInfo.AllScoreMul)}` + '';
|
||||
|
||||
let unmulited = node_win_multiplier_1.getChildByName("unmulited");
|
||||
unmulited.getComponent(Label).string = `${currencySymbol} ${fixNum(pan.RoundInfo.AllScoreMul)} x ${pan.RoundInfo.Mul}`;
|
||||
unmulited.getComponent(Label).string = `${currencySymbol} ${fixNum(pan.RoundInfo.AllScore)} x ${pan.RoundInfo.Mul}`;
|
||||
|
||||
node_win_multiplier_1.active = true;
|
||||
|
||||
this.currTotalMulti = pan.RoundInfo.Mul
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -109,7 +109,7 @@ export class Loading extends Component {
|
||||
private async initializeSystem() {
|
||||
this.rb7Logo.active = getIsRB7();
|
||||
if (DEBUG) {
|
||||
await getTestToken("yysky", "faketrans");
|
||||
await getTestToken("xingxi", "faketrans");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user