From 03f5fbb41a77c09486005193859d452796d3d870 Mon Sep 17 00:00:00 2001 From: whm <973418690@qq.com> Date: Thu, 2 Apr 2026 15:21:45 +0800 Subject: [PATCH] =?UTF-8?q?feat(admin):=20=E5=BC=80=E6=92=AD=E9=A1=B5?= =?UTF-8?q?=E5=B8=A6=E5=AE=BD=E8=A7=82=E6=B5=8B=EF=BC=9B=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E4=BE=A7=E6=A0=8F=E4=B8=8B=E8=BD=BD=E6=94=AF=E6=8C=81=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Made-with: Cursor --- admin/src/views/sites/HomepageEdit.vue | 24 ++- admin/src/views/sites/LiveBroadcast.vue | 203 +++++++++++++++++++++--- 2 files changed, 203 insertions(+), 24 deletions(-) diff --git a/admin/src/views/sites/HomepageEdit.vue b/admin/src/views/sites/HomepageEdit.vue index a64e371..cf61380 100644 --- a/admin/src/views/sites/HomepageEdit.vue +++ b/admin/src/views/sites/HomepageEdit.vue @@ -55,10 +55,24 @@ 填写同域可下载的静态地址(需将安装包放到站点 promotion/downloads/ 并部署)。前台为「Windows 版下载」「安卓版下载」直连,不跳转整页。

- +
+ + 选择链接 +
- +
+ + 选择链接 +
直播(前台 /live) @@ -157,7 +171,7 @@ const saving = ref(false) const downloading = ref(false) const formRef = ref(null) const linkPickerVisible = ref(false) -/** @type {import('vue').Ref<{ type: 'nav' | 'download' | 'platform'; index?: number }>} */ +/** @type {import('vue').Ref<{ type: 'nav' | 'download' | 'download_windows' | 'download_android' | 'platform'; index?: number }>} */ const linkPickTarget = ref({ type: 'download' }) const defaultForm = () => ({ @@ -285,6 +299,10 @@ function onLinkPicked(url) { form.nav_links[t.index].url = url } else if (t.type === 'download') { form.download_url = url + } else if (t.type === 'download_windows') { + form.download_windows_url = url + } else if (t.type === 'download_android') { + form.download_android_url = url } else if (t.type === 'platform' && typeof t.index === 'number') { form.platforms[t.index].url = url } diff --git a/admin/src/views/sites/LiveBroadcast.vue b/admin/src/views/sites/LiveBroadcast.vue index 712050c..5163722 100644 --- a/admin/src/views/sites/LiveBroadcast.vue +++ b/admin/src/views/sites/LiveBroadcast.vue @@ -70,7 +70,39 @@ 开始直播 结束直播 -
+
+
+ + + + 统计加载中或暂不可用 + +