diff --git a/contact-center/app/src/main/resources/templates/apps/im/chatbot/index.html b/contact-center/app/src/main/resources/templates/apps/im/chatbot/index.html index 22824d85..f985a02b 100644 --- a/contact-center/app/src/main/resources/templates/apps/im/chatbot/index.html +++ b/contact-center/app/src/main/resources/templates/apps/im/chatbot/index.html @@ -258,7 +258,7 @@ @@ -590,13 +608,21 @@ } function createCard(message,data){ - for (let i = 0; i < data.length; i++) { + let item = data[0]; - } + let html = '

' + item.title + '

' + item.summary + '

' + + var element = $(html); + element.click(function(){ + window.open(item.hyperlink); + }) + + return element; } function showExtmsg(username,createtime,message,json) { var expmsg = JSON.parse(json); + var type = expmsg[0].type; var content; if (type == 'button') {