...
|
...
|
@@ -7,7 +7,8 @@ const _ = require('lodash'); |
|
|
|
|
|
// const moment = require('moment');
|
|
|
const logger = global.yoho.logger;
|
|
|
const helpers = global.yoho.helpers;
|
|
|
|
|
|
// const helpers = global.yoho.helpers;
|
|
|
|
|
|
const _processNavData = (list, type) => {
|
|
|
let formatData = [];
|
...
|
...
|
@@ -33,13 +34,13 @@ const _processListData = (list) => { |
|
|
|
|
|
// let data = moment('2016年06月02日 15:56', 'YYYY年MM月DD日 HH:mm').format('YYYY/MM/DD HH:mm');
|
|
|
|
|
|
let artList = list.list.artList.map(data =>{
|
|
|
let artList = list.list.artList.map(data => {
|
|
|
|
|
|
data.publishTime = data.publishTime.replace(/年|月/g, '/');
|
|
|
data.publishTime = data.publishTime.replace(/日/g, '');
|
|
|
|
|
|
return data;
|
|
|
});
|
|
|
console.log(artList)
|
|
|
|
|
|
return artList;
|
|
|
};
|
...
|
...
|
|