Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
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
ecf67c2394a4ea6bc2013fa3165cb89f0986b840
1 parent
53448a2c
修复品类页面的bug
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
yohobuy/m.yohobuy.com/application/models/Category/Class.php
yohobuy/m.yohobuy.com/application/modules/Category/controllers/Class.php
yohobuy/m.yohobuy.com/application/models/Category/Class.php
View file @
ecf67c2
...
...
@@ -66,7 +66,7 @@ class ClassModel
$subitem
=
array
();
$subitem
[
'name'
]
=
$value
[
'category_name'
];
$subitem
[
'id'
]
=
$value
[
'relation_parameter'
][
'sort'
];
$subitem
[
'url'
]
=
$value
[
'category_id
'
];
$subitem
[
'url'
]
=
'/product/list/class?sort='
.
$value
[
'relation_parameter'
][
'sort
'
];
$item
[
'sub'
][]
=
$subitem
;
}
...
...
yohobuy/m.yohobuy.com/application/modules/Category/controllers/Class.php
View file @
ecf67c2
...
...
@@ -12,11 +12,18 @@ class ClassController extends AbstractAction
$classes
=
ClassModel
::
getClassData
();
$data
=
array
(
"searchUrl"
=>
""
,
"class"
=>
$classes
'categoryPage'
=>
true
,
'pageHeader'
=>
array
(
'navBack'
=>
true
,
'navHome'
=>
'/'
,
'navTitle'
=>
'商品分类'
),
'category'
=>
array
(
"class"
=>
$classes
)
);
$this
->
_view
->
assign
(
'title'
,
'YOHO!有货'
);
$this
->
_view
->
display
(
'index'
,
array
(
'categoryPage'
=>
true
,
'category'
=>
$data
)
);
$this
->
_view
->
display
(
'index'
,
$data
);
}
}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment