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
a2bc630f16caa5588021e89cfed5fcb744d6febf
1 parent
cdba9b88
最新降价折扣信息
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
3 deletions
apps/product/models/sale-handler.js
apps/product/models/sale.js
apps/product/models/sale-handler.js
View file @
a2bc630
...
...
@@ -2,7 +2,7 @@
* @Author: Targaryen
* @Date: 2016-05-25 18:16:59
* @Last Modified by: Targaryen
* @Last Modified time: 2016-05-26 1
4:40:27
* @Last Modified time: 2016-05-26 1
6:09:49
*/
'use strict'
;
...
...
@@ -31,7 +31,7 @@ const processTime = (time) => {
if
(
time
<
anHour
)
{
data
.
warnColor
=
true
;
data
.
time
=
'
低于1小时
'
;
data
.
time
=
'
即将结束
'
;
}
else
{
if
(
time
>
aDay
)
{
type
=
'dh'
;
...
...
@@ -263,6 +263,30 @@ exports.handleSalebreakingYardsSortData = (origin, params) => {
};
/**
* 处理最新降价折扣信息
* @return {[type]} [description]
*/
exports
.
handleSaleNewSaleSortData
=
(
params
)
=>
{
var
dest
;
dest
=
[{
name
:
'1~3折'
,
href
:
handleFilterUrl
(
params
,
{
p_d
:
'1,2,3'
}),
checked
:
false
},
{
name
:
'4~6折'
,
href
:
handleFilterUrl
(
params
,
{
p_d
:
'4,5,6'
}),
checked
:
false
},
{
name
:
'7折以上'
,
href
:
handleFilterUrl
(
params
,
{
p_d
:
'7,8,9,10'
}),
checked
:
false
}];
return
dest
;
};
/**
* 处理折扣专区活动数据
* @param {[type]} origin [description]
* @return {[type]} [description]
...
...
apps/product/models/sale.js
View file @
a2bc630
...
...
@@ -2,7 +2,7 @@
* @Author: Targaryen
* @Date: 2016-05-19 10:20:08
* @Last Modified by: Targaryen
* @Last Modified time: 2016-05-26 1
4:30:23
* @Last Modified time: 2016-05-26 1
6:07:54
*/
'use strict'
;
...
...
@@ -65,6 +65,8 @@ exports.getSaleOthersData = (params) => {
finalResult
.
leftContent
=
saleHandler
.
handleSaleSortData
(
result
[
0
].
data
.
filter
.
group_sort
,
params
);
}
finalResult
.
filters
.
discount
=
saleHandler
.
handleSaleNewSaleSortData
(
params
);
finalResult
.
opts
=
saleHandler
.
handleSaleOptsData
(
params
);
return
finalResult
;
...
...
Please
register
or
login
to post a comment