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
c092a5fb1315df59b4158ac79c7930fa9b1bd70d
1 parent
0e6f236f
解决品牌筛选错误
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
apps/product/models/sale-handler.js
apps/product/models/sale-handler.js
View file @
c092a5f
...
...
@@ -2,7 +2,7 @@
* @Author: Targaryen
* @Date: 2016-05-25 18:16:59
* @Last Modified by: Targaryen
* @Last Modified time: 2016-05-
27 18:58:00
* @Last Modified time: 2016-05-
30 10:38:17
*/
'use strict'
;
...
...
@@ -164,10 +164,12 @@ exports.handleSaleFilterData = (origin, params) => {
brand
.
name
=
value
.
brand_name
;
brand
.
key
=
value
.
brand_domain
;
if
(
!
_
.
isNaN
(
parseInt
(
value
.
brand_alif
,
10
)))
{
brand
.
index
=
'0-9'
;
}
else
{
brand
.
index
=
value
.
brand_alif
.
toLowerCase
();
if
(
!
_
.
isEmpty
(
value
.
brand_alif
))
{
if
(
!
_
.
isNaN
(
parseInt
(
value
.
brand_alif
,
10
)))
{
brand
.
index
=
'0-9'
;
}
else
{
brand
.
index
=
value
.
brand_alif
.
toLowerCase
();
}
}
if
(
count
<
10
)
{
...
...
Please
register
or
login
to post a comment