From 98b6ac7b056c9ae75757a35f9504ed22b15aeb70 Mon Sep 17 00:00:00 2001 From: Ny <744840146@qq.com> Date: Fri, 26 Aug 2022 02:06:38 +0000 Subject: [PATCH] =?UTF-8?q?update=20component/pear/module/message.js.=20?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E5=AF=B9=E8=B1=A1=E4=B8=AD=E6=97=A0avatar?= =?UTF-8?q?=E5=B1=9E=E6=80=A7=E6=97=B6=EF=BC=8C=E4=B8=8D=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E5=9B=BE=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ny <744840146@qq.com> --- component/pear/module/message.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/component/pear/module/message.js b/component/pear/module/message.js index 9a7e204..87c2fd2 100644 --- a/component/pear/module/message.js +++ b/component/pear/module/message.js @@ -99,9 +99,12 @@ layui.define(['table', 'jquery', 'element'], function (exports) { $.each(item.children, function (i, note) { noticeContent += '
' + - '' + - '
' + note.title + '
' + + '" notice-title="' + note.title + '" notice-id="' + note.id + '">' ; + + if (note.avatar) + noticeContent +=''; + + noticeContent +='
' + note.title + '
' + '
' + note.time + '
' + '
'; }) -- Gitee