feat: 베팅시 유산포인트 로그에 추가

This commit is contained in:
2022-02-05 07:43:28 +00:00
committed by Gitea
parent f6fbb94ecc
commit 6650cd2e41
2 changed files with 32 additions and 27 deletions
+6 -2
View File
@@ -78,8 +78,10 @@
<div class="col-2 text-end">{{ amount.toLocaleString() }}</div>
<div
class="col-3 text-center"
>{{ myBettings.has(betType) ? `(${myBettings.get(betType)?.toLocaleString()} -> ${((myBettings.get(betType)??0) * bettingAmount / amount).toLocaleString()})` : '' }}</div>
<div class="col-2 text-end">{{ (bettingAmount / amount).toFixed(1) }}</div>
>{{ myBettings.has(betType) ? `(${myBettings.get(betType)?.toLocaleString()} -> ${((myBettings.get(betType) ?? 0) * bettingAmount / amount / ((info.isExclusive && info.selectCnt > 1) ? 1 : 2)).toLocaleString()})` : '' }}</div>
<div
class="col-2 text-end"
>{{ (bettingAmount / amount / ((info.isExclusive && info.selectCnt > 1) ? 1 : 2)).toFixed(1) }}</div>
</div>
</div>
</template>
@@ -130,10 +132,12 @@ type BettingInfo = {
name: string;
finished: boolean;
selectCnt: number;
isExclusive?: boolean;
reqInheritancePoint: boolean;
openYearMonth: number;
closeYearMonth: number;
candidates: SelectItem[];
winner?: number[];
}
type BettingListResponse = ValidResponse & {