diff --git a/component/pear/module/message.js b/component/pear/module/message.js index 48374cb4131a72da40c225207977d13000c37e8c..54e96bd38aeb423693e3d7555a855f4927cc3716 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 += '
    ';