From 685065689d5fd41c000bb5c77cf68058a674b87f Mon Sep 17 00:00:00 2001 From: yiqiu Date: Wed, 18 Mar 2026 22:20:55 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=90=8E=E5=8F=B0=E6=B5=AE=E7=AA=97?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E9=9D=A2=E6=9D=BF=20=E2=80=94=20=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E9=80=89=E6=8B=A9=E5=BC=8F=20UI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 侧边浮窗改为 4 种模块类型: QQ客服/在线客服/群聊/公众号 - QQ客服: 支持新增多个QQ号 + 在线时间 - 在线客服: 填写客服链接 - 群聊/公众号: 上传二维码图片 - 新增 addSideQQ 方法 - 数据结构: type/label/items/url/qrcode --- .../template/admin/index_new.html | 100 +++++++++++++----- 1 file changed, 73 insertions(+), 27 deletions(-) diff --git a/plugins/addon/theme_configurator/template/admin/index_new.html b/plugins/addon/theme_configurator/template/admin/index_new.html index c422ee7..5fb7e88 100644 --- a/plugins/addon/theme_configurator/template/admin/index_new.html +++ b/plugins/addon/theme_configurator/template/admin/index_new.html @@ -95,45 +95,83 @@

- 对应前台右侧悬浮工具条(电话咨询/在线客服/提交工单等),结构与模板中的 - side_floating_window 一致。 + 配置前台右下角悬浮工具条。支持 4 种模块类型:QQ客服、在线客服、群聊、公众号。

- 还没有侧边浮窗,点击下方按钮添加。 + 还没有浮窗模块,点击下方按钮添加。
-

浮窗 {{ index + 1 }}

+

{{ {qq:'QQ客服', service:'在线客服', group:'群聊', wechat:'公众号'}[item.type] || '浮窗' }} {{ index + 1 }}

删除
- - + + + + + + +
-
- -
- - - - 上传 - - +
+ + +
+ + + + + + + + +
- 新增浮窗 + 新增浮窗模块
@@ -789,14 +827,22 @@ this.fullConfig.side = []; } this.fullConfig.side.push({ - name: "", - icon: "", - content: "", + type: "qq", + label: "", + items: [{ qq: "", time: "" }], + url: "", + qrcode: "", }); }, removeSide(index) { this.fullConfig.side.splice(index, 1); }, + addSideQQ(item) { + if (!Array.isArray(item.items)) { + this.$set(item, 'items', []); + } + item.items.push({ qq: "", time: "" }); + }, getHeaderChildren(item) { if (!item) return []; if (!Array.isArray(item.children)) {