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
沈志敏
8 years ago
Commit
f225a62155b5f8dd7a2a6691e84b80a8440adac0
1 parent
9168e460
fix bug
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
5 deletions
static/sass/layout/_footer_tab.css
template/m.yohobuy.com/partials/layout/footer_tab.phtml
yohobuy/m.yohobuy.com/application/modules/Cart/controllers/Index.php
static/sass/layout/_footer_tab.css
View file @
f225a62
...
...
@@ -14,9 +14,19 @@
width
:
20%
;
text-align
:
center
;
color
:
#b0b0b0
;
&.current
{
&.current
.boys
{
color
:
#414141
;
}
&
.current.girls
{
color
:
#FF88AE
;
}
&
.current.kids
{
color
:
#7ad9f9
;
}
&
.current.lifestyle
{
color
:
#4f4138
;
}
}
.tab-icon
{
font-size
:
40px
;
...
...
template/m.yohobuy.com/partials/layout/footer_tab.phtml
View file @
f225a62
...
...
@@ -4,19 +4,19 @@
<p
class=
"iconfont tab-icon"
>
62
a;</p>
<p
class=
"tab-name"
>首页</p>
</a>
<a
class=
"tab-item {{#if categoryPage}}current{{/if}}"
href=
"{{categoryUrl}}"
>
<a
class=
"tab-item {{#if categoryPage}}current{{/if}}
{{#if channelboys}} boys{{/if}}{{#if channelgirls}} girls{{/if}}{{#if channelkids}} kids{{/if}}{{#if channellifeStyle}} lifestyle{{/if}}
"
href=
"{{categoryUrl}}"
>
<p
class=
"iconfont tab-icon"
>
62
d;</p>
<p
class=
"tab-name"
>分类</p>
</a>
<a
class=
"tab-item {{#if guangHome}}current{{/if}}"
href=
"{{guangUrl}}"
>
<a
class=
"tab-item {{#if guangHome}}current{{/if}}
{{#if channelboys}} boys{{/if}}{{#if channelgirls}} girls{{/if}}{{#if channelkids}} kids{{/if}}{{#if channellifeStyle}} lifestyle{{/if}}
"
href=
"{{guangUrl}}"
>
<p
class=
"iconfont tab-icon"
>
627
;</p>
<p
class=
"tab-name"
>逛</p>
</a>
<a
class=
"tab-item {{#if shoppingCartPage}}current{{/if}}"
href=
"{{shoppingCartUrl}}"
>
<a
class=
"tab-item {{#if shoppingCartPage}}current{{/if}}
{{#if channelboys}} boys{{/if}}{{#if channelgirls}} girls{{/if}}{{#if channelkids}} kids{{/if}}{{#if channellifeStyle}} lifestyle{{/if}}
"
href=
"{{shoppingCartUrl}}"
>
<p
class=
"iconfont tab-icon"
>
62
c;</p>
<p
class=
"tab-name"
>购物车</p>
</a>
<a
class=
"tab-item {{#if minePage}}current{{/if}}"
href=
"{{mineUrl}}"
>
<a
class=
"tab-item {{#if minePage}}current{{/if}}
{{#if channelboys}} boys{{/if}}{{#if channelgirls}} girls{{/if}}{{#if channelkids}} kids{{/if}}{{#if channellifeStyle}} lifestyle{{/if}}
"
href=
"{{mineUrl}}"
>
<p
class=
"iconfont tab-icon"
>
62
b;</p>
<p
class=
"tab-name"
>我的</p>
</a>
...
...
yohobuy/m.yohobuy.com/application/modules/Cart/controllers/Index.php
View file @
f225a62
...
...
@@ -65,6 +65,24 @@ class IndexController extends AbstractAction
'shoppingCart'
=>
CartModel
::
getCartData
(
$uid
,
$shoppingKey
,
$cartType
)
);
// 根据COOKIE记录的频道进行导航定位
$channel
=
Helpers
::
getChannelByCookie
();
switch
(
$channel
)
{
default
:
case
1
:
$data
[
'channelboys'
]
=
true
;
break
;
case
2
:
$data
[
'channelgirls'
]
=
true
;
break
;
case
3
:
$data
[
'channelkids'
]
=
true
;
break
;
case
4
:
$data
[
'channellifeStyle'
]
=
true
;
break
;
}
// 渲染模板
$this
->
_view
->
display
(
'index'
,
$data
);
}
...
...
Please
register
or
login
to post a comment