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
yangyang
9 years ago
Commit
c46bb8378cd8a70105772677919e6c97ad2e5405
1 parent
77c58ebc
修改 折
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
7 deletions
library/WebPlugin/HelperSearch.php
yohobuy/www.yohobuy.com/application/models/Product/Sale.php
yohobuy/www.yohobuy.com/application/modules/Product/controllers/Index.php
yohobuy/www.yohobuy.com/application/modules/Product/controllers/Sale.php
library/WebPlugin/HelperSearch.php
View file @
c46bb83
...
...
@@ -56,7 +56,7 @@ class HelperSearch
);
self
::
$listNav
[
1
]
=
array
(
'href'
=>
''
,
'name'
=>
'列表'
'name'
=>
$options
[
'action'
]
==
'new'
?
'新品到着'
:
'列表'
);
}
}
...
...
@@ -1005,10 +1005,12 @@ class HelperSearch
$query['p_d']
=
$k
;
$list[$k]['href']
= self::buildUrl(
$query
);
$list[$k]['active']
= isset(
$params['p_d']
) &&
$params['p_d']
==
$k
? true : false;
$list[$k]['name']
=
$v['name']
. '折';
}
$result
= array(
'list' => array_values(
$list
)
);
//print_r(
$result
);
return
$result
;
}
...
...
@@ -1208,8 +1210,8 @@ class HelperSearch
{
// 根据品牌Id获取品牌banner图
$bannerImg
= Helpers::getImageUrl(
$brandBanner
, '', 150);
$brandHome
= Helpers::url('/product/index/brand', '',
$brand['brand_domain']
);
$brandIntro
= Helpers::url('/product/index/brandIntro', '',
$brand['brand_domain']
);
$brandHome
= Helpers::url('', '',
$brand['brand_domain']
);
$brandIntro
= Helpers::url('/about', '',
$brand['brand_domain']
);
$is_favorite
= false;
if(isset(
$brand['is_favorite']
)){
// 获取是否收藏
...
...
yohobuy/www.yohobuy.com/application/models/Product/Sale.php
View file @
c46bb83
...
...
@@ -41,13 +41,15 @@ class SaleModel
$specialInfo
[
'data'
][
'banner'
][]
=
$v
;
}
$special
=
$specialInfo
[
'data'
];
}
//Sale首页 banner数据
$data
[
'saleBanner'
][
'bannerHeight'
]
=
$special
[
'banner'
][
0
][
'height'
];
$data
[
'saleBanner'
][
'img'
]
=
$special
[
'banner'
][
0
][
'img'
];
$data
[
'saleTitle'
][
'name'
]
=
'全部商品'
;
$data
[
'saleTitle'
][
'count'
]
=
$data
[
'totalCount'
];
}
//获取广告位数据
if
(
isset
(
$special
[
'left_ad_code'
]))
{
...
...
yohobuy/www.yohobuy.com/application/modules/Product/controllers/Index.php
View file @
c46bb83
...
...
@@ -62,7 +62,7 @@ class IndexController extends WebAction
}
//品牌介绍页
public
function
brandA
boutAction
()
public
function
a
boutAction
()
{
//品牌域名
$domain
=
$this
->
param
(
'named'
);
...
...
yohobuy/www.yohobuy.com/application/modules/Product/controllers/Sale.php
View file @
c46bb83
...
...
@@ -15,7 +15,7 @@ class SaleController extends WebAction
{
//获取专区ID
$specialsaleId
=
$this
->
get
(
'specialsale_id'
);
//获取促销ID
$promotion
=
$this
->
get
(
'promotion'
);
//专区ID和促销ID都为空时,跳转到主页
...
...
Please
register
or
login
to post a comment