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
郝肖肖
9 years ago
Commit
2555849391c34cda023055caa9d27955a1a62a64
1 parent
e98a12f6
基础模板 多品牌无banner
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletions
yohobuy/www.yohobuy.com/application/modules/Product/controllers/Index.php
yohobuy/www.yohobuy.com/application/modules/Product/controllers/Index.php
View file @
2555849
...
...
@@ -44,6 +44,7 @@ class IndexController extends WebAction
if
(
!
empty
(
$shopIntro
[
'shopTemplateType'
])
&&
$shopIntro
[
'shopTemplateType'
]
===
1
)
{
//基础模板多个品牌
$result
[
'shopTemplateType'
]
=
$shopIntro
[
'shopTemplateType'
];
$result
[
'multBrandShopType'
]
=
$shopIntro
[
'multBrandShopType'
];
$result
[
'shopId'
]
=
$shopIntro
[
'shopId'
];
break
;
}
...
...
@@ -74,7 +75,13 @@ class IndexController extends WebAction
//传品牌ID参数
$condition
=
array
();
$condition
[
'brand'
]
=
isset
(
$result
[
'brandId'
])
?
$result
[
'brandId'
]
:
''
;
if
(
!
empty
(
$result
[
'multBrandShopType'
])
&&
!
empty
(
$result
[
'shopId'
])
&&
$result
[
'multBrandShopType'
]
===
2
)
{
//多品牌按shop搜索
$condition
[
'shop'
]
=
$result
[
'shopId'
];
}
else
{
$condition
[
'brand'
]
=
isset
(
$result
[
'brandId'
])
?
$result
[
'brandId'
]
:
''
;
}
$order
=
$this
->
get
(
'order'
);
if
(
empty
(
$order
))
{
$condition
[
'order'
]
=
'brand_desc'
;
...
...
@@ -113,6 +120,11 @@ class IndexController extends WebAction
}
else
{
$arr
=
array
(
'skn'
=>
array
());
}
if
(
!
empty
(
$result
[
'multBrandShopType'
])
&&
!
empty
(
$result
[
'shopId'
])
&&
$result
[
'multBrandShopType'
]
===
2
)
{
//多品牌无banner
$data
[
'brandBanner'
]
=
array
();
}
$seo
=
$data
[
'seo'
];
$data
=
array
(
...
...
Please
register
or
login
to post a comment