Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
xuqi
10 years ago
Commit
d99782be19b57d23527b21f745fbe3e0c1699845
2 parents
47e64292
640e7d57
Merge branch 'develop' of
http://git.dev.yoho.cn/web/yohobuy
into develop
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 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/modules/Guang/controllers/List.php
yohobuy/m.yohobuy.com/application/models/Category/Class.php
View file @
d99782b
...
...
@@ -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 @
d99782b
...
...
@@ -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
...
...
yohobuy/m.yohobuy.com/application/modules/Guang/controllers/List.php
View file @
d99782b
...
...
@@ -203,6 +203,7 @@ class ListController extends AbstractAction
break
;
}
if
(
!
empty
(
$page
)
&&
!
is_numeric
(
$page
))
{
break
;
}
if
(
!
empty
(
$authorId
)
&&
is_numeric
(
$authorId
))
{
...
...
@@ -212,6 +213,7 @@ class ListController extends AbstractAction
/* 获取资讯文章列表 */
$uid
=
$this
->
getUid
();
$udid
=
$this
->
getUdid
();
$page
=
intval
(
$page
)
+
1
;
$article
=
ListData
::
article
(
$gender
,
$sortId
,
$uid
,
$udid
,
$page
,
$tag
,
$authorId
);
if
(
empty
(
$article
[
'data'
][
'list'
][
'artList'
]))
{
break
;
...
...
Please
register
or
login
to post a comment