fix: adjust host center labels and daily sheet
This commit is contained in:
parent
229af34633
commit
15291c68c0
@ -4,7 +4,7 @@
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover" />
|
||||
<title>Stream Center</title>
|
||||
<link rel="stylesheet" href="./style.css?v=20260428-1610" />
|
||||
<link rel="stylesheet" href="./style.css?v=20260428-2025" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="host-center" aria-label="Stream Center" data-i18n-aria="page_label">
|
||||
@ -54,12 +54,12 @@
|
||||
|
||||
<section class="card metrics-card">
|
||||
<div class="metric">
|
||||
<div class="label" data-i18n-html="streaming_duration">Streaming Duration<br />(Minutes)</div>
|
||||
<div class="label" data-i18n-html="streaming_duration">Work Time (min)</div>
|
||||
<div class="value" id="streamingDuration">0</div>
|
||||
</div>
|
||||
<div class="vertical-line" aria-hidden="true"></div>
|
||||
<div class="metric gift-metric">
|
||||
<div class="label" data-i18n="current">Current</div>
|
||||
<div class="label" data-i18n="target">Target</div>
|
||||
<button class="gift-value" type="button" aria-live="polite" aria-label="Open daily data" data-i18n-aria="open_daily_data">
|
||||
<span class="amount-text" id="currentGiftValue">0</span>
|
||||
<span class="chevron">›</span>
|
||||
@ -110,7 +110,7 @@
|
||||
<button class="daily-close" type="button" aria-label="Close" data-i18n-aria="close" data-close-daily>×</button>
|
||||
</div>
|
||||
<div class="daily-summary">
|
||||
<span data-i18n="current">Current</span>
|
||||
<span data-i18n="target">Target</span>
|
||||
<strong id="dailyCurrentGift">0</strong>
|
||||
</div>
|
||||
<div class="daily-list" id="dailyList"></div>
|
||||
@ -119,6 +119,6 @@
|
||||
|
||||
<div class="home-indicator" aria-hidden="true"></div>
|
||||
</div>
|
||||
<script src="./script.js?v=20260428-1610" defer></script>
|
||||
<script src="./script.js?v=20260428-2025" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@ -6,8 +6,8 @@
|
||||
"language_button_aria": "تغيير اللغة",
|
||||
"uid": "معرّف المستخدم: 1234567890",
|
||||
"agency": "الوكالة: Bilibili(101013)",
|
||||
"streaming_duration": "مدة البث<br />(بالدقائق)",
|
||||
"current": "الحالي",
|
||||
"streaming_duration": "وقت العمل (دقيقة)",
|
||||
"target": "الهدف",
|
||||
"daily_details": "البيانات اليومية",
|
||||
"gift_points": "نقاط الهدايا",
|
||||
"online_minutes": "دقائق الاتصال",
|
||||
|
||||
@ -6,8 +6,8 @@
|
||||
"language_button_aria": "Change language",
|
||||
"uid": "UID: 1234567890",
|
||||
"agency": "Agency: Bilibili(101013)",
|
||||
"streaming_duration": "Streaming Duration<br />(Minutes)",
|
||||
"current": "Current",
|
||||
"streaming_duration": "Work Time (min)",
|
||||
"target": "Target",
|
||||
"daily_details": "Daily data",
|
||||
"gift_points": "Gift points",
|
||||
"online_minutes": "Online minutes",
|
||||
|
||||
@ -6,8 +6,8 @@
|
||||
"language_button_aria": "Ubah bahasa",
|
||||
"uid": "UID: 1234567890",
|
||||
"agency": "Agensi: Bilibili(101013)",
|
||||
"streaming_duration": "Durasi Streaming<br />(Menit)",
|
||||
"current": "Saat ini",
|
||||
"streaming_duration": "Waktu Kerja (mnt)",
|
||||
"target": "Target",
|
||||
"daily_details": "Data harian",
|
||||
"gift_points": "Poin hadiah",
|
||||
"online_minutes": "Menit online",
|
||||
|
||||
@ -6,8 +6,8 @@
|
||||
"language_button_aria": "Dili değiştir",
|
||||
"uid": "UID: 1234567890",
|
||||
"agency": "Ajans: Bilibili(101013)",
|
||||
"streaming_duration": "Yayın Süresi<br />(Dakika)",
|
||||
"current": "Mevcut",
|
||||
"streaming_duration": "Çalışma Süresi (dk)",
|
||||
"target": "Hedef",
|
||||
"daily_details": "Günlük veri",
|
||||
"gift_points": "Hediye puanı",
|
||||
"online_minutes": "Online dakika",
|
||||
|
||||
@ -91,9 +91,9 @@
|
||||
- `/team/member-work` 返回后:
|
||||
- `historySalary` 写入本地变量
|
||||
- 读取 `targets[0]`
|
||||
- 当前 `hyapp/host-center` 的 Streaming Duration 使用 `targets[0].target.onlineTime` 作为总直播时长
|
||||
- 当前 `hyapp/host-center` 的 Current 使用 `targets[0].target.acceptGiftValue` 作为当前礼物积分
|
||||
- Current 点击明细使用 `targets[0].target.dailyTargets[]`,展示每日 `dateNumber`、`acceptGiftValue`、`onlineTime`
|
||||
- 当前 `hyapp/host-center` 的 Work Time 使用 `targets[0].target.onlineTime` 作为总工作时长
|
||||
- 当前 `hyapp/host-center` 的 Target 显示 `targets[0].target.acceptGiftValue` 当前礼物积分
|
||||
- Target 点击明细使用 `targets[0].target.dailyTargets[]`,展示每日 `dateNumber`、`acceptGiftValue`、`onlineTime`
|
||||
- 结算状态映射:
|
||||
- `SETTLED` -> `Completed`
|
||||
- `UNPAID` -> `In Progress`
|
||||
@ -112,7 +112,7 @@
|
||||
- `minutesProgress = min(ownTime + otherTime, minutesTotal)`
|
||||
- `minutesTotal = 120`
|
||||
- `giftTask = acceptGiftValue || 0`
|
||||
- 当前 `hyapp/host-center` 的 Streaming Duration 不再用该接口,也不再限制 120;改用 `/team/member-work?userId=<当前用户 id>` 返回的 `targets[0].target.onlineTime` 总时长。
|
||||
- 当前 `hyapp/host-center` 的 Work Time 不再用该接口,也不再限制 120;改用 `/team/member-work?userId=<当前用户 id>` 返回的 `targets[0].target.onlineTime` 总时长。
|
||||
|
||||
## 银行卡与提现信息逻辑
|
||||
|
||||
@ -239,7 +239,7 @@
|
||||
|
||||
### GET `/team/member/work/statistics-now`
|
||||
|
||||
- 用途:原 Vue 获取成员当天目标/工作统计;当前 `hyapp/host-center` 不再用它展示 Streaming Duration。
|
||||
- 用途:原 Vue 获取成员当天目标/工作统计;当前 `hyapp/host-center` 不再用它展示 Work Time。
|
||||
- 查询参数:
|
||||
- `dataType`: `DAILY | MONTH`
|
||||
- `memberId`: 成员 ID,必传
|
||||
@ -256,8 +256,8 @@
|
||||
- 返回使用:
|
||||
- `historySalary`
|
||||
- `targets`
|
||||
- `targets[0].target.onlineTime`,当前 `hyapp/host-center` 用作 Streaming Duration 总时长
|
||||
- `targets[0].target.acceptGiftValue`,当前 `hyapp/host-center` 用作 Current 礼物积分
|
||||
- `targets[0].target.onlineTime`,当前 `hyapp/host-center` 用作 Work Time 总时长
|
||||
- `targets[0].target.acceptGiftValue`,当前 `hyapp/host-center` 用作 Target 当前礼物积分
|
||||
- `targets[0].target.dailyTargets[]`,当前 `hyapp/host-center` 用作每日明细
|
||||
- `targets[].status`
|
||||
- `targets[].target.settlementResult.level`
|
||||
|
||||
@ -17,8 +17,8 @@
|
||||
language_button_aria: "Change language",
|
||||
uid: "UID: 1234567890",
|
||||
agency: "Agency: Bilibili(101013)",
|
||||
streaming_duration: "Streaming Duration<br />(Minutes)",
|
||||
current: "Current",
|
||||
streaming_duration: "Work Time (min)",
|
||||
target: "Target",
|
||||
daily_details: "Daily data",
|
||||
gift_points: "Gift points",
|
||||
online_minutes: "Online minutes",
|
||||
@ -50,8 +50,8 @@
|
||||
language_button_aria: "تغيير اللغة",
|
||||
uid: "معرّف المستخدم: 1234567890",
|
||||
agency: "الوكالة: Bilibili(101013)",
|
||||
streaming_duration: "مدة البث<br />(بالدقائق)",
|
||||
current: "الحالي",
|
||||
streaming_duration: "وقت العمل (دقيقة)",
|
||||
target: "الهدف",
|
||||
daily_details: "البيانات اليومية",
|
||||
gift_points: "نقاط الهدايا",
|
||||
online_minutes: "دقائق الاتصال",
|
||||
@ -83,8 +83,8 @@
|
||||
language_button_aria: "Dili değiştir",
|
||||
uid: "UID: 1234567890",
|
||||
agency: "Ajans: Bilibili(101013)",
|
||||
streaming_duration: "Yayın Süresi<br />(Dakika)",
|
||||
current: "Mevcut",
|
||||
streaming_duration: "Çalışma Süresi (dk)",
|
||||
target: "Hedef",
|
||||
daily_details: "Günlük veri",
|
||||
gift_points: "Hediye puanı",
|
||||
online_minutes: "Online dakika",
|
||||
@ -116,8 +116,8 @@
|
||||
language_button_aria: "Ubah bahasa",
|
||||
uid: "UID: 1234567890",
|
||||
agency: "Agensi: Bilibili(101013)",
|
||||
streaming_duration: "Durasi Streaming<br />(Menit)",
|
||||
current: "Saat ini",
|
||||
streaming_duration: "Waktu Kerja (mnt)",
|
||||
target: "Target",
|
||||
daily_details: "Data harian",
|
||||
gift_points: "Poin hadiah",
|
||||
online_minutes: "Menit online",
|
||||
@ -202,7 +202,7 @@
|
||||
if (window.location.protocol === "file:") return fallbackMessages[normalizedLang];
|
||||
|
||||
try {
|
||||
const response = await fetch(`./locales/${normalizedLang}.json?v=20260428-1610`, { cache: "no-store" });
|
||||
const response = await fetch(`./locales/${normalizedLang}.json?v=20260428-2025`, { cache: "no-store" });
|
||||
if (response.ok) return await response.json();
|
||||
} catch (error) {
|
||||
return fallbackMessages[normalizedLang];
|
||||
|
||||
@ -719,8 +719,11 @@ a {
|
||||
|
||||
.daily-sheet {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: min(430px, 100%);
|
||||
max-height: 72vh;
|
||||
max-height: 80vh;
|
||||
max-height: 80dvh;
|
||||
overflow: hidden;
|
||||
border-radius: 16px 16px 0 0;
|
||||
background: #fff;
|
||||
@ -780,8 +783,9 @@ a {
|
||||
|
||||
.daily-list {
|
||||
display: grid;
|
||||
flex: 1 1 auto;
|
||||
gap: 10px;
|
||||
max-height: calc(72vh - 116px);
|
||||
min-height: 0;
|
||||
overflow-y: auto;
|
||||
padding: 14px 18px max(18px, env(safe-area-inset-bottom));
|
||||
-webkit-overflow-scrolling: touch;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user