Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
周少峰
9 years ago
Commit
d01d74d5bc0751f1447baef63b33ec16d253def1
1 parent
abd708cf
daylimit 3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
10 deletions
apps/channel/models/index.js
apps/channel/models/index.js
View file @
d01d74d
...
...
@@ -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
;
...
...
Please
register
or
login
to post a comment