Showing
1 changed file
with
1 additions
and
10 deletions
@@ -19,15 +19,6 @@ const serviceApi = global.yoho.ServiceAPI; | @@ -19,15 +19,6 @@ const serviceApi = global.yoho.ServiceAPI; | ||
19 | 19 | ||
20 | const headerModel = require('../../../doraemon/models/header'); | 20 | const headerModel = require('../../../doraemon/models/header'); |
21 | 21 | ||
22 | -// 获取上线时间 | ||
23 | -const _getShelveTime = duration => { | ||
24 | - let today = new Date(), | ||
25 | - todayMil = today.getTime().toString().substr(0, 10), | ||
26 | - startDayMil = (today.setMonth(today.getMonth() - duration)).toString().substr(0, 10); | ||
27 | - | ||
28 | - return `${startDayMil},${todayMil}`; // `返回时间 | ||
29 | -}; | ||
30 | - | ||
31 | // 获取可用的标题 | 22 | // 获取可用的标题 |
32 | const _getText = data => { | 23 | const _getText = data => { |
33 | let text = data.split(' ')[0]; | 24 | let text = data.split(' ')[0]; |
@@ -809,7 +800,7 @@ const getNewArrival = channel => { | @@ -809,7 +800,7 @@ const getNewArrival = channel => { | ||
809 | sales: 'Y', | 800 | sales: 'Y', |
810 | attribute_not: 2, | 801 | attribute_not: 2, |
811 | stocknumber: 3, | 802 | stocknumber: 3, |
812 | - shelve_time: _getShelveTime(2) | 803 | + dayLimit: 3 |
813 | }; | 804 | }; |
814 | 805 | ||
815 | params.gender = channelMap[channel].gender; | 806 | params.gender = channelMap[channel].gender; |
-
Please register or login to post a comment