diff --git a/h5/hyapp/host-center/index.html b/h5/hyapp/host-center/index.html index 0b4a8d3..6d48663 100644 --- a/h5/hyapp/host-center/index.html +++ b/h5/hyapp/host-center/index.html @@ -4,7 +4,7 @@ Stream Center - +
@@ -54,12 +54,12 @@
-
Streaming Duration
(Minutes)
+
Work Time (min)
0
-
Current
+
Target
- Current + Target 0
@@ -119,6 +119,6 @@
- + diff --git a/h5/hyapp/host-center/locales/ar.json b/h5/hyapp/host-center/locales/ar.json index 9a5e86d..f04e06a 100644 --- a/h5/hyapp/host-center/locales/ar.json +++ b/h5/hyapp/host-center/locales/ar.json @@ -6,8 +6,8 @@ "language_button_aria": "تغيير اللغة", "uid": "معرّف المستخدم: 1234567890", "agency": "الوكالة: Bilibili(101013)", - "streaming_duration": "مدة البث
(بالدقائق)", - "current": "الحالي", + "streaming_duration": "وقت العمل (دقيقة)", + "target": "الهدف", "daily_details": "البيانات اليومية", "gift_points": "نقاط الهدايا", "online_minutes": "دقائق الاتصال", diff --git a/h5/hyapp/host-center/locales/en.json b/h5/hyapp/host-center/locales/en.json index 391f58d..0510635 100644 --- a/h5/hyapp/host-center/locales/en.json +++ b/h5/hyapp/host-center/locales/en.json @@ -6,8 +6,8 @@ "language_button_aria": "Change language", "uid": "UID: 1234567890", "agency": "Agency: Bilibili(101013)", - "streaming_duration": "Streaming Duration
(Minutes)", - "current": "Current", + "streaming_duration": "Work Time (min)", + "target": "Target", "daily_details": "Daily data", "gift_points": "Gift points", "online_minutes": "Online minutes", diff --git a/h5/hyapp/host-center/locales/id.json b/h5/hyapp/host-center/locales/id.json index ede4e41..26f1a76 100644 --- a/h5/hyapp/host-center/locales/id.json +++ b/h5/hyapp/host-center/locales/id.json @@ -6,8 +6,8 @@ "language_button_aria": "Ubah bahasa", "uid": "UID: 1234567890", "agency": "Agensi: Bilibili(101013)", - "streaming_duration": "Durasi Streaming
(Menit)", - "current": "Saat ini", + "streaming_duration": "Waktu Kerja (mnt)", + "target": "Target", "daily_details": "Data harian", "gift_points": "Poin hadiah", "online_minutes": "Menit online", diff --git a/h5/hyapp/host-center/locales/tr.json b/h5/hyapp/host-center/locales/tr.json index df78452..fe01197 100644 --- a/h5/hyapp/host-center/locales/tr.json +++ b/h5/hyapp/host-center/locales/tr.json @@ -6,8 +6,8 @@ "language_button_aria": "Dili değiştir", "uid": "UID: 1234567890", "agency": "Ajans: Bilibili(101013)", - "streaming_duration": "Yayın Süresi
(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", diff --git a/h5/hyapp/host-center/original-vue-logic.md b/h5/hyapp/host-center/original-vue-logic.md index b300110..f7f7d0d 100644 --- a/h5/hyapp/host-center/original-vue-logic.md +++ b/h5/hyapp/host-center/original-vue-logic.md @@ -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` diff --git a/h5/hyapp/host-center/script.js b/h5/hyapp/host-center/script.js index bdbe9c8..09b4867 100644 --- a/h5/hyapp/host-center/script.js +++ b/h5/hyapp/host-center/script.js @@ -17,8 +17,8 @@ language_button_aria: "Change language", uid: "UID: 1234567890", agency: "Agency: Bilibili(101013)", - streaming_duration: "Streaming Duration
(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: "مدة البث
(بالدقائق)", - 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
(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
(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]; diff --git a/h5/hyapp/host-center/style.css b/h5/hyapp/host-center/style.css index d7a1ebb..ad78ca0 100644 --- a/h5/hyapp/host-center/style.css +++ b/h5/hyapp/host-center/style.css @@ -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;