1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
| import { basePicUrl, baseUrl, baseFileUrl, baseIconUrl } from '../config/index';
|
| /**
| * 动态新闻
| */
| export function getNew(info) {
| info.lrPicurl = basePicUrl + info.lrPicurl;
| info.lrBodyurl = baseFileUrl + info.lrBodyurl;
| return {
| title: info.lrResourcetitle,
| desc: info.lrResourcedesc,
| time: info.lrPublishdate.substring(0, 10),
| browse: parseInt(Math.random() * 1000 + 10),
| imgSrc: info.lrPicurl,
| url: info.lrBodyurl,
| fileType: info.lrResourcefiletype,
| };
| }
|
| export function getNewList(infoList) {
| return infoList.map(item => {
| return getNew(item);
| });
| }
|
|