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
Plain Diff
Browse Files
Authored by
周少峰
9 years ago
Commit
0abf0c5105b887a312dd223c955040bb2a092f11
2 parents
4ac35c66
7d72c78c
Merge branch 'hotfix/shopSide'
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
8 deletions
template/www.yohobuy.com/partials/product/shop-sidebar.phtml
web-static/img/product/banner-mark.png
yohobuy/www.yohobuy.com/application/models/Product/Shop.php
template/www.yohobuy.com/partials/product/shop-sidebar.phtml
View file @
0abf0c5
{
{#brandBrowse
}
}
<div
class=
"brand-collect left-modular"
>
<h
2
class=
"title"
>
{
{title
}
}</h
2
>
{
{#if
title
}
}
<h
2
class=
"title"
>
{
{title
}
}</h
2
>
{
{/if
}
}
<ul
class=
"left-list"
>
{
{#each
list
}
}
<li
class=
"{{#if cur}} on {{/if}}"
><a
href=
"{{url}}"
>
{
{brandName
}
}</a></li>
...
...
@@ -11,7 +13,9 @@
{
{#recommend
}
}
<div
class=
"classic-recommend left-modular"
>
<h
2
class=
"title"
>
{
{title
}
}</h
2
>
{
{#if
title
}
}
<h
2
class=
"title"
>
{
{title
}
}</h
2
>
{
{/if
}
}
<ul
class=
"left-list"
>
{
{#each
list
}
}
<li>
...
...
@@ -34,7 +38,9 @@
{
{#hotRecommend
}
}
<div
class=
"sell-recommend left-modular"
>
<h
2
class=
"title"
>
{
{title
}
}</h
2
>
{
{#if
title
}
}
<h
2
class=
"title"
>
{
{title
}
}</h
2
>
{
{/if
}
}
<ul
class=
"left-list"
>
{
{#each
list
}
}
<li>
...
...
web-static/img/product/banner-mark.png
View file @
0abf0c5
426 Bytes
|
W:
|
H:
275 Bytes
|
W:
|
H:
2-up
Swipe
Onion skin
yohobuy/www.yohobuy.com/application/models/Product/Shop.php
View file @
0abf0c5
...
...
@@ -302,11 +302,11 @@ class ShopModel
$result
=
array
(
'banner'
=>
''
,
'isShowShopName'
=>
false
,
'bannerHeight'
=>
15
0
'bannerHeight'
=>
20
0
);
if
(
!
empty
(
$data
[
'resource_data'
][
0
][
'shopSrc'
]))
{
$result
[
'banner'
]
=
self
::
imageView2
(
$data
[
'resource_data'
][
0
][
'shopSrc'
],
1150
,
15
0
);
$result
[
'banner'
]
=
self
::
imageView2
(
$data
[
'resource_data'
][
0
][
'shopSrc'
],
1150
,
20
0
);
}
if
(
!
empty
(
$data
[
'resource_data'
][
0
][
'detailSrc'
]))
{
...
...
@@ -479,7 +479,7 @@ class ShopModel
}
return
array
(
'title'
=>
isset
(
$result
[
0
][
'title'
])
?
$result
[
0
][
'title'
]
:
'
经典推荐
'
,
'title'
=>
isset
(
$result
[
0
][
'title'
])
?
$result
[
0
][
'title'
]
:
''
,
'list'
=>
$result
);
}
...
...
@@ -505,7 +505,7 @@ class ShopModel
}
return
array
(
'title'
=>
isset
(
$result
[
0
][
'title'
])
?
$result
[
0
][
'title'
]
:
'
热销推荐
'
,
'title'
=>
isset
(
$result
[
0
][
'title'
])
?
$result
[
0
][
'title'
]
:
''
,
'list'
=>
$result
);
}
...
...
@@ -561,12 +561,16 @@ class ShopModel
),
''
),
'title'
=>
$resource
[
'title'
],
'brandName'
=>
$resource
[
'brandName'
],
'cur'
=>
(
$brand
===
strval
(
$resource
[
'id'
]))
);
}
return
array
(
'title'
=>
'品牌集合'
,
'list'
=>
$result
);
return
array
(
'title'
=>
isset
(
$result
[
0
][
'title'
])
?
$result
[
0
][
'title'
]
:
''
,
'list'
=>
$result
);
}
/**
...
...
Please
register
or
login
to post a comment