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
b9fb53452f316142c2759262315df122dc48f4f0
1 parent
ab27f3c0
修复男首进入侧边导航栏,点击sale专区,没有进入全部的sale页面的bug
Code Review By Rock Zhang
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
yohobuy/m.yohobuy.com/application/models/Product/Newsale.php
yohobuy/m.yohobuy.com/application/modules/Product/controllers/Newsale.php
yohobuy/m.yohobuy.com/application/models/Product/Newsale.php
View file @
b9fb534
...
...
@@ -36,7 +36,8 @@ class NewsaleModel
/**
* 获取新品到着的焦点图资源数据
*
*
* @param int $channel
* @return array
*/
public
static
function
getNewFocus
(
$channel
)
...
...
@@ -64,7 +65,8 @@ class NewsaleModel
/**
* 获取折扣专区的焦点图资源数据
*
*
* @param int $channel
* @return array
*/
public
static
function
getSaleFocus
(
$channel
)
...
...
@@ -164,8 +166,8 @@ class NewsaleModel
/**
* 顶部焦点图缓存控制
* @param const $cacheKey 缓存常量值
* @param const $codeKey 顶部焦点图位置码
* @param string $cacheKey 缓存常量值
* @param string $codeKey 顶部焦点图位置码
* @return array 焦点图数据
*/
private
static
function
cacheControl
(
$cacheKey
,
$codeKey
)
...
...
yohobuy/m.yohobuy.com/application/modules/Product/controllers/Newsale.php
View file @
b9fb534
...
...
@@ -51,6 +51,7 @@ class NewsaleController extends AbstractAction
$this
->
setNavHeader
(
'Sale'
);
$channel
=
Helpers
::
getChannelByCookie
();
$gender
=
$this
->
get
(
'gender'
,
'1,2,3'
);
// 设置一些默认参数
$data
=
array
(
'discountPage'
=>
true
,
...
...
@@ -59,7 +60,7 @@ class NewsaleController extends AbstractAction
'pageFooter'
=>
true
,
'brand'
=>
'0'
,
'sort'
=>
'0'
,
'gender'
=>
Helpers
::
getGenderByCookie
()
,
'gender'
=>
$gender
,
'price'
=>
'0'
,
'size'
=>
'0'
,
'discount'
=>
'0.1,0.9'
,
...
...
Please
register
or
login
to post a comment