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
Plain Diff
Browse Files
Authored by
郭成尧
7 years ago
Commit
8829f938b81968d21b4c0c48ebd13717ea4c359d
2 parents
1e3586e5
06cd1b45
Merge branch 'feature/activity' into release/6.2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
apps/activity/models/feature.js
apps/activity/models/feature.js
View file @
8829f93
...
...
@@ -36,11 +36,11 @@ const _getProductBySkns = function(productObj) {
/**
* 获取店铺组店铺数据
*/
const
_getShopGroup
=
(
shopRawData
,
order
)
=>
{
const
_getShopGroup
=
(
shopRawData
)
=>
{
return
api
.
get
(
''
,
{
method
:
'app.shops.batchGetShops'
,
shop_ids
:
shopRawData
.
defaultShopIds
,
order
:
order
===
1
?
'pools_id_asc'
:
'pool_id_desc'
// pools_id_desc
order
:
_
.
get
(
shopRawData
,
'linkParams.order'
)
||
'pool_id_desc'
}).
then
(
result
=>
{
let
renderData
=
_
.
get
(
result
,
'data'
,
[]);
...
...
@@ -104,10 +104,7 @@ module.exports = {
// 新增店铺组
if
(
_
.
get
(
f
,
'component[0].type'
)
===
'shopGroup'
)
{
let
tableComp
=
_
.
get
(
f
,
'tableComp'
);
let
tableCompObj
=
JSON
.
parse
(
tableComp
);
shopGroups
.
push
(
_getShopGroup
(
f
.
component
[
0
],
tableCompObj
.
orderBy
));
shopGroups
.
push
(
_getShopGroup
(
f
.
component
[
0
]));
}
if
(
_
.
get
(
f
,
'type'
)
===
'bottombar'
)
{
...
...
Please
register
or
login
to post a comment