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)) {