房间奖励滑动

This commit is contained in:
zhx 2026-06-08 19:22:44 +08:00
parent 2d84b43109
commit e8c184641b
3 changed files with 37 additions and 18 deletions

View File

@ -8,7 +8,7 @@
/>
<title>Room Reward Event</title>
<link rel="stylesheet" href="../../common/theme.css?v=20260606c" />
<link rel="stylesheet" href="./style.css?v=20260606c" />
<link rel="stylesheet" href="./style.css?v=20260608a" />
</head>
<body>
<div class="app-viewport" id="appViewport">
@ -83,6 +83,9 @@
<div class="table-row-bg row-light"></div>
<div class="table-row-bg row-dark"></div>
<div class="table-row-bg row-light"></div>
<div class="table-row-bg row-dark"></div>
<div class="table-row-bg row-light"></div>
<div class="table-row-bg row-dark"></div>
</div>
<img
class="table-border table-border-side"
@ -169,6 +172,6 @@
</script>
<script src="../../common/i18n.js?v=20260606c"></script>
<script src="../../common/api.js?v=20260606c"></script>
<script src="./script.js?v=20260606c"></script>
<script src="./script.js?v=20260608a"></script>
</body>
</html>

View File

@ -15,13 +15,16 @@
canClaimWeeklyReward: false,
},
tiers: [
{ turnover: '7M', reward: '350k' },
{ turnover: '7M', reward: '350k' },
{ turnover: '7M', reward: '350k' },
{ turnover: '7M', reward: '350k' },
{ turnover: '7M', reward: '350k' },
{ turnover: '7M', reward: '350k' },
{ turnover: '7M', reward: '350k' },
{ turnover: '1M', reward: '100000' },
{ turnover: '2.5M', reward: '250000' },
{ turnover: '5M', reward: '500000' },
{ turnover: '10M', reward: '1000000' },
{ turnover: '20M', reward: '2000000' },
{ turnover: '30M', reward: '3000000' },
{ turnover: '50M', reward: '5000000' },
{ turnover: '80M', reward: '8000000' },
{ turnover: '120M', reward: '12000000' },
{ turnover: '160M', reward: '16000000' },
],
};
@ -146,6 +149,12 @@
return String(Math.floor(number));
}
function plainWholeNumber(value) {
var number = Number(value || 0);
if (!Number.isFinite(number)) return '0';
return String(Math.floor(number));
}
function trimFixed(value) {
var fixed = value >= 10 ? value.toFixed(0) : value.toFixed(1);
return fixed.replace(/\.0$/, '');
@ -211,7 +220,7 @@
'threshold_coin_spent'
)
),
reward: compactNumber(
reward: plainWholeNumber(
valueFrom(tier, 'rewardCoinAmount', 'reward_coin_amount')
),
};

View File

@ -58,7 +58,7 @@ button {
.stage-wrap {
position: relative;
width: 375px;
height: 830px;
height: 852px;
overflow: visible;
}
@ -67,7 +67,7 @@ button {
left: 0;
top: 0;
width: 1080px;
height: 2388px;
height: 2454px;
overflow: hidden;
transform: scale(var(--design-scale));
transform-origin: top left;
@ -191,7 +191,7 @@ button {
left: 36px;
top: 1241px;
width: 1008px;
height: 811px;
height: 1163px;
}
.table-fill {
@ -199,8 +199,15 @@ button {
left: 20px;
top: 15px;
width: 968px;
height: 824px;
height: 1133px;
overflow: hidden;
background: repeating-linear-gradient(
to bottom,
#190901 0,
#190901 103px,
#290e00 103px,
#290e00 206px
);
}
.table-row-bg {
@ -226,7 +233,7 @@ button {
left: 0;
top: 0;
width: 1008px;
height: 811px;
height: 1163px;
}
.table-border-top {
@ -238,7 +245,7 @@ button {
.table-border-bottom {
left: 0;
top: 736px;
top: 1045px;
width: 1008px;
height: 119px;
}
@ -248,7 +255,7 @@ button {
left: 503px;
top: 15px;
width: 2px;
height: 827px;
height: 1133px;
background: rgba(255, 255, 255, 0.92);
pointer-events: none;
}
@ -258,7 +265,7 @@ button {
left: 20px;
top: 15px;
width: 968px;
height: 824px;
height: 1133px;
}
.tier-row {