Toggle navigation
Toggle navigation
This project
Loading...
Sign in
wangshusheng
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
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
f40e863cb0b8787a7e295f53d62f3352062a0c68
1 parent
dcf118cd
修复左边栏逛的颜色不跟随的bug,修复品类列表页二级分类中缺少全部一级分类的bug
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
3 deletions
yohobuy/m.yohobuy.com/application/controllers/Kids.php
yohobuy/m.yohobuy.com/application/controllers/Lifestyle.php
yohobuy/m.yohobuy.com/application/models/Category/Class.php
yohobuy/m.yohobuy.com/application/models/Index/Side.php
yohobuy/m.yohobuy.com/application/controllers/Kids.php
View file @
f40e863
...
...
@@ -20,7 +20,7 @@ class KidsController extends AbstractAction
// 设置网站标题
$this
->
setTitle
(
'潮童首页'
);
// 显示侧边栏
$this
->
setNavSide
();
$this
->
setNavSide
(
'kids'
);
// 渲染模板并输出
$this
->
_view
->
display
(
'index'
,
array
(
...
...
yohobuy/m.yohobuy.com/application/controllers/Lifestyle.php
View file @
f40e863
...
...
@@ -20,7 +20,7 @@ class LifestyleController extends AbstractAction
// 设置网站标题
$this
->
setTitle
(
'创意生活首页'
);
// 显示侧边栏
$this
->
setNavSide
();
$this
->
setNavSide
(
'lifestyle'
);
// 渲染模板并输出
$this
->
_view
->
display
(
'index'
,
array
(
...
...
yohobuy/m.yohobuy.com/application/models/Category/Class.php
View file @
f40e863
...
...
@@ -52,6 +52,17 @@ class ClassModel
$item
=
array
();
$item
[
'name'
]
=
$val
[
'category_name'
];
$item
[
'id'
]
=
$val
[
'relation_parameter'
][
'sort'
];
// 首先添加一级分类
$item
[
'sub'
][]
=
array
(
'name'
=>
'全部'
.
$item
[
'name'
],
'id'
=>
$item
[
'id'
],
'url'
=>
Helpers
::
url
(
'/'
,
array
(
'sort'
=>
$item
[
'id'
],
'sort_name'
=>
$item
[
'name'
],
'list'
))
);
$subitem
=
array
();
foreach
(
$val
[
'sub'
]
as
$value
)
{
$subitem
=
array
();
$subitem
[
'name'
]
=
$value
[
'category_name'
];
...
...
yohobuy/m.yohobuy.com/application/models/Index/Side.php
View file @
f40e863
...
...
@@ -77,6 +77,16 @@ class SideModel
*/
private
static
function
genLeftNavGuang
(
$guangChoosed
=
'all'
)
{
// 判断逛的背景色
$color
=
false
;
if
(
$guangChoosed
===
'girls'
)
{
$color
=
'#FF88AE'
;
}
else
if
(
$guangChoosed
===
'kids'
)
{
$color
=
'#7ad9f9'
;
}
else
if
(
$guangChoosed
===
'lifestyle'
)
{
$color
=
'#4f4138'
;
}
return
array
(
'textCn'
=>
'逛'
,
'textEn'
=>
'TRENDFINDER'
,
...
...
@@ -88,7 +98,7 @@ class SideModel
'textEn'
=>
'TrendFinder'
,
'back'
=>
true
,
'isSelect'
=>
false
,
'bgColor'
=>
(
$guangChoosed
===
'girls'
)
?
'#FF88AE'
:
false
,
'bgColor'
=>
$color
,
),
1
=>
array
(
'textCn'
=>
'查看全部'
,
...
...
Please
register
or
login
to post a comment