From b66c0773b34beefd03a8f18e1c88e9612ad9836e Mon Sep 17 00:00:00 2001 From: zjpzjp Date: Thu, 23 Nov 2023 16:29:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=82=B9=E5=87=BB=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E6=96=B0=E6=A0=87=E7=AD=BE=E6=89=93=E5=BC=80=E6=94=BE?= =?UTF-8?q?=E5=A4=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zjpzjp --- .../app/src/main/resources/templates/apps/agent/index.pug | 5 +++++ .../app/src/main/resources/templates/apps/im/index.pug | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/contact-center/app/src/main/resources/templates/apps/agent/index.pug b/contact-center/app/src/main/resources/templates/apps/agent/index.pug index f34751af..c99f4f67 100644 --- a/contact-center/app/src/main/resources/templates/apps/agent/index.pug +++ b/contact-center/app/src/main/resources/templates/apps/agent/index.pug @@ -53,6 +53,11 @@ block content sendMessage(); return false; }) + // 增加点击图片新标签打开放大 + $("#chat_msg_list").on("click", ".chat-content img", function () { + let originalUrl = $(this).attr("src") + '&original=true'; + window.open(originalUrl, '_blank'); + }) }); function otherTopicSearch() { console.log("otherTopicSearch") diff --git a/contact-center/app/src/main/resources/templates/apps/im/index.pug b/contact-center/app/src/main/resources/templates/apps/im/index.pug index a9f7d66e..db99884f 100644 --- a/contact-center/app/src/main/resources/templates/apps/im/index.pug +++ b/contact-center/app/src/main/resources/templates/apps/im/index.pug @@ -704,4 +704,11 @@ html window.onresize = function () { R3Helper.resize(); }; + // 增加点击图片新窗口打开 + $(function(){ + $("#above").on("click", ".chat-content img", function () { + let originalUrl = $(this).attr("src") + '&original=true'; + window.open(originalUrl, '_blank'); + }) + })