Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHO-ACTIVITY-PHP
·
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
Rock Zhang
9 years ago
Commit
763fcc84e6a7f90ac7a84fb135555daf1215060c
1 parent
64248892
master
...
beta
develop
添加获取品类商品列表时的性别区分功能
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
yohobuy/m.yohobuy.com/application/models/Category/Class.php
yohobuy/m.yohobuy.com/application/models/Category/Class.php
View file @
763fcc8
...
...
@@ -43,6 +43,7 @@ class ClassModel
break
;
}
$genderArr
=
array
(
'boy'
=>
'1,3'
,
'girl'
=>
'2,3'
,
'kids'
=>
'1,2,3'
,
'lifestyle'
=>
'1,2,3'
);
$oneClass
=
array
();
$item
=
array
();
foreach
(
$data
[
'data'
]
as
$k
=>
$v
)
{
...
...
@@ -59,7 +60,8 @@ class ClassModel
'id'
=>
$item
[
'id'
],
'url'
=>
Helpers
::
url
(
'/'
,
array
(
'sort'
=>
$item
[
'id'
],
'sort_name'
=>
$item
[
'name'
]),
'list'
)
'sort_name'
=>
$item
[
'name'
],
'gender'
=>
$genderArr
[
$k
]),
'list'
)
);
$subitem
=
array
();
...
...
@@ -69,7 +71,8 @@ class ClassModel
$subitem
[
'id'
]
=
$value
[
'relation_parameter'
][
'sort'
];
$subitem
[
'url'
]
=
Helpers
::
url
(
'/'
,
array
(
'sort'
=>
$value
[
'relation_parameter'
][
'sort'
],
'sort_name'
=>
$value
[
'category_name'
]
'sort_name'
=>
$value
[
'category_name'
],
'gender'
=>
$genderArr
[
$k
]
),
'list'
);
$item
[
'sub'
][]
=
$subitem
;
}
...
...
Please
register
or
login
to post a comment