Authored by 周少峰

daylimit 3

... ... @@ -19,15 +19,6 @@ const serviceApi = global.yoho.ServiceAPI;
const headerModel = require('../../../doraemon/models/header');
// 获取上线时间
const _getShelveTime = duration => {
let today = new Date(),
todayMil = today.getTime().toString().substr(0, 10),
startDayMil = (today.setMonth(today.getMonth() - duration)).toString().substr(0, 10);
return `${startDayMil},${todayMil}`; // `返回时间
};
// 获取可用的标题
const _getText = data => {
let text = data.split(' ')[0];
... ... @@ -809,7 +800,7 @@ const getNewArrival = channel => {
sales: 'Y',
attribute_not: 2,
stocknumber: 3,
shelve_time: _getShelveTime(2)
dayLimit: 3
};
params.gender = channelMap[channel].gender;
... ...