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
59e097c84d168ddf0e2bf1fe1ddce75deb34623f
1 parent
4f736475
解决尺码处理重复问题
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
apps/product/models/public-handler.js
apps/product/models/public-handler.js
View file @
59e097c
...
...
@@ -67,8 +67,8 @@ const handleSalebreakingYardsSortData = (origin, params) => {
// 判断是否在这组数据里面
if
(
!
_
.
isEmpty
(
_
.
find
(
value
.
sort_id
.
split
(
','
),
o
=>
{
return
o
===
sortParam
;
})))
{
return
o
===
sortParam
;
})))
{
// 如果在某组数据里面,组合数据退出循环
_
.
forEach
(
value
.
sub
,
subValue
=>
{
...
...
@@ -153,8 +153,8 @@ const handleBrandCheckedData = (params, origin) => {
if
(
!
_
.
isEmpty
(
origin
))
{
_
.
forEach
(
origin
,
(
value
)
=>
{
if
(
typeof
_
.
find
(
intBrands
,
o
=>
{
return
_
.
isEqual
(
o
,
value
.
id
);
})
!==
'undefined'
)
{
return
_
.
isEqual
(
o
,
value
.
id
);
})
!==
'undefined'
)
{
let
checked
=
{
name
:
value
.
name
...
...
@@ -511,7 +511,7 @@ exports.handleSaleFilterData = (origin, params) => {
// 处理用户自主填写的价格区间
if
(
!
priceRangechecked
&&
params
.
price
)
{
let
customPrice
=
_
.
split
(
params
.
price
,
','
);
if
(
customPrice
[
1
]
!==
'99999'
)
{
dest
.
customPrice
=
{
min
:
customPrice
[
0
],
...
...
Please
register
or
login
to post a comment