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'); + }) + })