From d3a86b29000e5f01e6b49c0d6f55fe215e0e876e Mon Sep 17 00:00:00 2001 From: ZF sun <34314687@qq.com> Date: Mon, 8 Dec 2025 11:05:01 +0800 Subject: [PATCH] =?UTF-8?q?chore(aikefu):=20=E6=9B=B4=E6=96=B0UI=EF=BC=9A?= =?UTF-8?q?=20=E4=BC=9A=E8=AF=9D=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/addon/aikefu/shop/controller/Kefu.php | 11 +- src/addon/aikefu/shop/view/kefu/combined.html | 519 ++++++++++++++++++ src/addon/aikefu/shop/view/kefu/index.html | 8 +- 3 files changed, 531 insertions(+), 7 deletions(-) create mode 100644 src/addon/aikefu/shop/view/kefu/combined.html diff --git a/src/addon/aikefu/shop/controller/Kefu.php b/src/addon/aikefu/shop/controller/Kefu.php index abcda7d2f..c80d4d182 100644 --- a/src/addon/aikefu/shop/controller/Kefu.php +++ b/src/addon/aikefu/shop/controller/Kefu.php @@ -24,10 +24,19 @@ class Kefu extends BaseShop public function index() { $kefu_config_model = new KefuConfigModel(); - $config_info = $kefu_config_model->getConfig($this->site_id, $this->app_module)['data']['value'] ?? []; + $config_info = $kefu_config_model->getConfig($this->site_id, $this->app_module)["data"]["value"] ?? []; $this->assign("config_info", $config_info); return $this->fetch("kefu/index"); } + + /** + * 合并会话和消息页面 + * @return mixed + */ + public function combined() + { + return $this->fetch("kefu/combined"); + } /** * 智能客服配置页 diff --git a/src/addon/aikefu/shop/view/kefu/combined.html b/src/addon/aikefu/shop/view/kefu/combined.html new file mode 100644 index 000000000..f2df6c8bf --- /dev/null +++ b/src/addon/aikefu/shop/view/kefu/combined.html @@ -0,0 +1,519 @@ + + +
+ + + + +
+ +
+
+

会话列表

+
+
+
+
+
+ + +
+
+

消息详情

+
+
+ +
+ 请选择一个会话查看消息详情 +
+ + + + + + + + + +
+
+
+
+ + + + + + \ No newline at end of file diff --git a/src/addon/aikefu/shop/view/kefu/index.html b/src/addon/aikefu/shop/view/kefu/index.html index d1f835fac..76678bfbb 100644 --- a/src/addon/aikefu/shop/view/kefu/index.html +++ b/src/addon/aikefu/shop/view/kefu/index.html @@ -4,18 +4,14 @@
{include file="kefu/config" /}
- {include file="kefu/conversation" /} -
-
- {include file="kefu/message" /} + {include file="kefu/combined" /}