From fad53c90afbca5c735e24d8ebbdfdb4c4c4a51dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=9E=E4=B8=9C=E6=97=AD?= <850374051@qq.com> Date: Wed, 24 Sep 2025 16:40:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=A1=E6=81=AF=E6=B8=AF=E6=96=B0=E9=97=BB?= =?UTF-8?q?=E9=99=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- infoport/newDetail.html | 3 +++ infoport/static/js/project/new.js | 18 ++++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/infoport/newDetail.html b/infoport/newDetail.html index d426d06..39e7f9c 100644 --- a/infoport/newDetail.html +++ b/infoport/newDetail.html @@ -29,6 +29,9 @@
+
+
+
diff --git a/infoport/static/js/project/new.js b/infoport/static/js/project/new.js index 91a949b..722cd5f 100644 --- a/infoport/static/js/project/new.js +++ b/infoport/static/js/project/new.js @@ -52,6 +52,24 @@ define(['jquery', "template", "Tools"], function ($, template, Tools) { $('#name')[0].innerHTML = content.infoName $('#creatBy')[0].innerHTML = content.infoDept+' 的报道' $('#creatTime')[0].innerHTML = ' · '+content.infoTime + + $('#infoImg')[0].innerHTML = '附件:
'; + + if (content.infoImg){ + let arr = content.infoImg.split(','); + for (let i = 0;i < arr.length; i++){ + $('#infoImg')[0].innerHTML += ''+arr[i].substr(27,arr[i].length)+''; + } + } + + // $('#infoFile')[0].innerHTML = '附件:
'; + // + if (content.infoFile){ + let arr2 = content.infoFile.split(','); + for (let i = 0;i < arr2.length; i++){ + $('#infoImg')[0].innerHTML += ''+arr2[i].substr(27,arr2[i].length)+''; + } + } } }