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