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
Plain Diff
Browse Files
Authored by
xiaowei
9 years ago
Commit
c69a5446e74ebb65efd61d5fa43c63e4db390c88
2 parents
0f93cbdf
bb070375
重新编译js css color-bug合并
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
11 deletions
static/dist/myohobuy/1.3.17/index.css
yohobuy/m.yohobuy.com/application/models/Index/Side.php
static/dist/myohobuy/1.3.17/index.css
View file @
c69a544
This diff could not be displayed because it is too large.
yohobuy/m.yohobuy.com/application/models/Index/Side.php
View file @
c69a544
...
...
@@ -29,7 +29,7 @@ class SideModel
if
(
USE_CACHE
)
{
// 先尝试获取一级缓存(master), 有数据则直接返回.
$result
=
Cache
::
get
(
CacheConfig
::
KEY_COMMON_SIDE_NAV
,
'master'
);
$result
=
Cache
::
get
(
CacheConfig
::
KEY_COMMON_SIDE_NAV
.
'_'
.
$guangChoosed
,
'master'
);
if
(
!
empty
(
$result
))
{
// $result[] = self::genLeftNavGuang($guangChoosed);
return
$result
;
...
...
@@ -88,11 +88,11 @@ class SideModel
if
(
USE_CACHE
)
{
// 接口调用异常时, 不害怕,从我们的二级缓存(slave)里再取数据.
if
(
empty
(
$result
))
{
$result
=
Cache
::
get
(
CacheConfig
::
KEY_COMMON_SIDE_NAV
,
'slave'
);
$result
=
Cache
::
get
(
CacheConfig
::
KEY_COMMON_SIDE_NAV
.
'_'
.
$guangChoosed
,
'slave'
);
}
// 接口调用正常,数据封装完成, 则设置一级(master)和二级(slave)数据缓存
else
{
Cache
::
set
(
CacheConfig
::
KEY_COMMON_SIDE_NAV
,
$result
);
Cache
::
set
(
CacheConfig
::
KEY_COMMON_SIDE_NAV
.
'_'
.
$guangChoosed
,
$result
);
}
}
...
...
@@ -163,15 +163,24 @@ class SideModel
private
static
function
getSideTopColor
(
$guangChoosed
)
{
// 判断逛的背景色
$color
=
false
;
if
(
$guangChoosed
===
'girls'
)
{
$color
=
'#FF88AE'
;
}
else
if
(
$guangChoosed
===
'kids'
)
{
$color
=
'#7ad9f9'
;
}
else
if
(
$guangChoosed
===
'lifestyle'
)
{
$color
=
'#4f4138'
;
$color
=
''
;
switch
(
$guangChoosed
)
{
case
'boys'
:
$color
=
'#3e3e3e'
;
break
;
case
'girls'
:
$color
=
'#FF88AE'
;
break
;
case
'kids'
:
$color
=
'#7ad9f9'
;
break
;
case
'lifestyle'
:
$color
=
'#4f4138'
;
break
;
default
:
$color
=
'#3e3e3e'
;
break
;
}
return
$color
;
}
...
...
Please
register
or
login
to post a comment