Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-blk
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
1
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
姜枫
9 years ago
Commit
d92242ec23ce4f6455ae325ed940c5ff7e1f36f6
1 parent
15503503
fix bugs
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
apps/product/models/helpers.js
apps/product/models/shop-service.js
apps/product/models/helpers.js
View file @
d92242e
...
...
@@ -247,7 +247,7 @@ const helpers = {
}
sorts
=
sorts
[
0
].
sub
;
}
else
if
(
sorts
&&
sorts
.
length
>
1
){
}
else
if
(
sorts
&&
sorts
.
length
>
1
)
{
_
.
forEach
(
sorts
,
s
=>
{
_
.
forEach
(
s
.
sub
,
ss
=>
{
...
...
apps/product/models/shop-service.js
View file @
d92242e
...
...
@@ -108,7 +108,7 @@ const ShopService = {
});
sortArray
=
sortArray
.
sort
((
s1
,
s2
)
=>
{
return
s2
.
count
-
s1
.
count
;
return
s2
.
count
-
s1
.
count
;
});
}
return
sortArray
;
...
...
Please
register
or
login
to post a comment