|
|
@@ -101,8 +101,24 @@ define(['jquery', "template", "Tools", "newApi", 'swiper'], function ($, templat |
|
|
|
$("#newTime").html(content.newsTime); |
|
|
|
$("#newCome").html(content.createBy); |
|
|
|
$("#newContent").html(content.content); |
|
|
|
|
|
|
|
if(content.attachment){ |
|
|
|
var content = content.attachment.split(','); |
|
|
|
let list = []; |
|
|
|
content.map(rr=>{ |
|
|
|
list.push({ |
|
|
|
fileUrl:rr, |
|
|
|
fileName:rr.substr(27,rr.length) |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
module.data.attachmentList = list; |
|
|
|
var attachmentListData = template('attachmentListData', module.data); |
|
|
|
$("#attachmentListContent").html(attachmentListData); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
return module; |
|
|
|
}); |
|
|
|
}); |