From 2394d817f48ca1886c9258c36e0808730176003d Mon Sep 17 00:00:00 2001 From: handy Date: Mon, 13 Mar 2023 21:17:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A6=82=E6=9E=9C=E6=B2=A1=E6=9C=89=E6=B6=88?= =?UTF-8?q?=E6=81=AF=20=E4=B8=8D=E6=98=BE=E7=A4=BA=E5=B0=8F=E7=BA=A2?= =?UTF-8?q?=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- component/pear/module/message.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/component/pear/module/message.js b/component/pear/module/message.js index 48374cb..54e96bd 100644 --- a/component/pear/module/message.js +++ b/component/pear/module/message.js @@ -98,6 +98,7 @@ layui.define(['table', 'jquery', 'element'], function (exports) { } $.each(item.children, function (i, note) { + count++; noticeContent += '
' ; @@ -116,9 +117,16 @@ layui.define(['table', 'jquery', 'element'], function (exports) { noticeContent += '
'; }) - var notice = '
  • ' + - '' + - '
    '; + var notice; + if (count > 0){ + notice = '
  • ' + + '' + + '
    '; + }else { + notice = '
  • ' + + '' + + '
    '; + } noticeTitle += ''; noticeContent += '
    '; -- Gitee