Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
QC-L
6 years ago
Commit
e8738f0ede499f9726c1fd6bebcc3fb56c6977b1
1 parent
2a331c67
fix error
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
apps/activity/models/group-service.js
apps/activity/models/group-service.js
View file @
e8738f0
...
...
@@ -26,7 +26,7 @@ const newContentCodes = {
detail
:
'cea0efae77f4e04c935beb1e87181247'
},
production
:
{
home
:
'
d9101626ba774147080596e482e5f69
7'
,
home
:
'
4b24541678c9fe0ca12c8fd205a6d42
7'
,
ready
:
'89141506b9926010f28915a82b3db61d'
,
result
:
'3c3a94fd6c6e19508b6921acd7f6cbad'
,
detail
:
'cea0efae77f4e04c935beb1e87181247'
...
...
@@ -198,7 +198,7 @@ class GroupService extends global.yoho.BaseModel {
let
result
=
{};
let
tabCurrentIndex
=
tabIndex
||
0
;
result
.
index
=
await
this
.
newIndex
();
result
.
index
=
await
this
.
newIndex
()
||
[]
;
let
filters
=
[];
result
.
index
.
forEach
(
item
=>
{
...
...
@@ -211,11 +211,9 @@ class GroupService extends global.yoho.BaseModel {
item
.
queryString
=
JSON
.
stringify
(
item
.
query
);
});
let
indexFilter
=
filters
[
tabCurrentIndex
]
||
{};
let
indexFilter
=
filters
[
tabCurrentIndex
]
||
{
query
:
[]
};
let
query
=
{};
console
.
log
(
filters
);
console
.
log
(
indexFilter
);
indexFilter
.
query
.
forEach
(
item
=>
{
query
=
Object
.
assign
(
query
,
item
);
});
...
...
@@ -228,10 +226,16 @@ class GroupService extends global.yoho.BaseModel {
}
async
goodsTab
(
query
,
result
=
{})
{
result
.
filterGroupList
=
await
this
.
filterGroupList
({
...
query
,
});
return
result
;
try
{
result
.
filterGroupList
=
await
this
.
filterGroupList
({
...
query
,
});
return
result
;
}
catch
(
e
)
{
return
{
error
:
e
};
}
}
async
groupListIndex
(
params
,
uid
)
{
...
...
Please
register
or
login
to post a comment