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
Email Patches
Plain Diff
Browse Files
Authored by
yangyang
9 years ago
Commit
0a91e383447fe8588bbd7988522cdfb1f9a7d942
1 parent
10c35ed3
修改sale页没有分类的bug
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
38 deletions
library/Plugin/HelperSearch.php
template/www.yohobuy.com/actions/product/new/new-sale.phtml → template/www.yohobuy.com/actions/product/list/new-sale.phtml
yohobuy/www.yohobuy.com/application/modules/Product/controllers/List.php
yohobuy/www.yohobuy.com/application/modules/Product/controllers/New.php
library/Plugin/HelperSearch.php
View file @
0a91e38
...
...
@@ -273,9 +273,8 @@ class HelperSearch
public
static
function
groupSort
(
$sort
)
{
$options
=
self
::
$options
;
if
(
isset
(
$options
[
'controller'
])
&&
$options
[
'controller'
]
!
=
'Search'
)
{
if
(
isset
(
$options
[
'controller'
])
&&
$options
[
'controller'
]
=
=
'Search'
)
{
return
array
();
}
//设置导航
...
...
@@ -319,7 +318,7 @@ class HelperSearch
}
}
$result
[
'list'
]
=
$sortList
;
return
$result
;
}
...
...
@@ -327,7 +326,7 @@ class HelperSearch
{
$result
=
array
();
$options
=
self
::
$options
;
if
(
!
isset
(
$options
[
'controller'
])
||
$options
[
'controller'
]
!
=
'Search'
)
{
if
(
!
isset
(
$options
[
'controller'
])
||
$options
[
'controller'
]
=
=
'Search'
)
{
return
$result
;
}
$params
=
self
::
$params
;
...
...
template/www.yohobuy.com/actions/product/
new
/new-sale.phtml → template/www.yohobuy.com/actions/product/
list
/new-sale.phtml
View file @
0a91e38
yohobuy/www.yohobuy.com/application/modules/Product/controllers/List.php
View file @
0a91e38
...
...
@@ -5,11 +5,29 @@ class ListController extends WebAction
{
public
function
indexAction
()
{
}
/**
* list列表new(模板new-sale)
*/
public
function
newAction
(){
$condition
=
array
(
'order'
=>
's_t_desc'
);
$options
=
array
(
'specialsale_id'
=>
'Y'
,
'needDay'
=>
'Y'
);
$newData
=
Product\NewModel
::
getNewSearchData
(
$condition
,
$options
);
$data
=
array
(
'productListPage'
=>
true
,
'newSale'
=>
$newData
);
$this
->
setWebNavHeader
();
//渲染模板
$this
->
_view
->
display
(
'new-sale'
,
$data
);
}
/**
...
...
yohobuy/www.yohobuy.com/application/modules/Product/controllers/New.php
deleted
100644 → 0
View file @
10c35ed
<?php
use
Action\WebAction
;
/**
* new页
*
*/
class
NewController
extends
WebAction
{
public
function
indexAction
()
{
$condition
=
array
(
'order'
=>
's_t_desc'
);
$options
=
array
(
'specialsale_id'
=>
'Y'
,
'needDay'
=>
'Y'
);
$newData
=
Product\NewModel
::
getNewSearchData
(
$condition
,
$options
);
$data
=
array
(
'productListPage'
=>
true
,
'newSale'
=>
$newData
);
$this
->
setWebNavHeader
();
//渲染模板
$this
->
_view
->
display
(
'new-sale'
,
$data
);
}
}
Please
register
or
login
to post a comment