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
yangyang
9 years ago
Commit
ec1ed9c223d83359eeab9cd497997a3b444d9df0
1 parent
7007a4cb
修改小bug
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
3 deletions
library/WebPlugin/HelperSearch.php
yohobuy/www.yohobuy.com/application/modules/Product/controllers/Index.php
yohobuy/www.yohobuy.com/application/modules/Product/controllers/List.php
yohobuy/www.yohobuy.com/application/modules/Product/controllers/Sale.php
library/WebPlugin/HelperSearch.php
View file @
ec1ed9c
...
...
@@ -33,7 +33,7 @@ class HelperSearch
$options
=
self
::
$options
;
$cookieChannel
=
isset
(
$_COOKIE
[
'_Channel'
])
?
$_COOKIE
[
'_Channel'
]
:
'boys'
;
if
(
isset
(
$options
[
'brandName'
])
&&
!
empty
(
$options
[
'brandName'
]))
{
$initNav
=
$options
[
'brandName'
];
$initNav
=
$options
[
'brandName
En'
]
.
$options
[
'brandNameCn
'
];
}
else
{
$initNav
=
'列表'
;
}
...
...
yohobuy/www.yohobuy.com/application/modules/Product/controllers/Index.php
View file @
ec1ed9c
...
...
@@ -28,6 +28,8 @@ class IndexController extends WebAction
$brandId
=
$brandInfo
[
'data'
][
'id'
];
$node
=
isset
(
$brandInfo
[
'data'
][
'static_content_code'
])
?
$brandInfo
[
'data'
][
'static_content_code'
]
:
false
;
$brandBanner
=
$brandInfo
[
'data'
][
'brand_banner'
];
$brandNameEn
=
$brandInfo
[
'data'
][
'brand_name_en'
];
$brandNameCn
=
$brandInfo
[
'data'
][
'brand_name_cn'
];
}
else
{
$this
->
go
(
SITE_MAIN
);
}
...
...
@@ -47,6 +49,8 @@ class IndexController extends WebAction
$options
[
'brandId'
]
=
$brandId
;
$options
[
'node'
]
=
$node
;
$options
[
'brandBanner'
]
=
$brandBanner
;
$options
[
'brandNameEn'
]
=
$brandNameEn
;
$options
[
'brandNameCn'
]
=
$brandNameCn
;
$options
[
'reviewNum'
]
=
6
;
//调用模型获得数据
...
...
yohobuy/www.yohobuy.com/application/modules/Product/controllers/List.php
View file @
ec1ed9c
...
...
@@ -29,7 +29,8 @@ class ListController extends WebAction
/**
* list列表new(模板new-sale)
*/
public
function
newAction
(){
public
function
newAction
()
{
$condition
=
array
(
'order'
=>
's_t_desc'
);
...
...
@@ -113,7 +114,7 @@ class ListController extends WebAction
* @author
* @return json
*/
public
static
function
changeFavoriteAction
()
public
function
changeFavoriteAction
()
{
if
(
!
$this
->
isAjax
())
{
return
;
...
...
yohobuy/www.yohobuy.com/application/modules/Product/controllers/Sale.php
View file @
ec1ed9c
...
...
@@ -46,6 +46,7 @@ class SaleController extends WebAction
);
$saleData
=
Product\SaleModel
::
getSaleSearchData
(
$condition
,
$options
,
$specialInfo
);
$data
=
array
(
//初始化js
'productListPage'
=>
true
,
...
...
Please
register
or
login
to post a comment