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
yyq
9 years ago
Commit
558f5b750475bb99ad693290d9c5413f3d4c8d26
1 parent
b95c690e
img cover
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
template/www.yohobuy.com/actions/product/index/shop-index.phtml
yohobuy/www.yohobuy.com/application/models/Product/Shop.php
template/www.yohobuy.com/actions/product/index/shop-index.phtml
View file @
558f5b7
...
...
@@ -7,7 +7,7 @@
<div
class=
"list-left pull-left"
>
<div
class=
"shop-search"
>
<form
action=
"/
/search.yohobuy.com
"
method=
"get"
id=
"shop-search-form"
>
<form
action=
"/
shoplist
"
method=
"get"
id=
"shop-search-form"
>
<span>
<input
type=
"hidden"
name=
"shopId"
value=
"{{shopId}}"
>
<input
id=
"shop-query-key"
type=
"text"
name=
"query"
class=
"shop-query-key"
autocomplete=
"off"
x-webkit-speech=
""
lang=
"zh-CN"
placeholder=
"关键词搜索"
>
...
...
yohobuy/www.yohobuy.com/application/models/Product/Shop.php
View file @
558f5b7
...
...
@@ -77,30 +77,30 @@ class ShopModel
$sknProList
=
SearchData
::
searchAll
(
array
(
'query'
=>
join
(
','
,
array_unique
(
$sknList
))));
if
(
isset
(
$sknProList
[
'data'
][
'product_list'
]))
{
if
(
isset
(
$sknProList
[
'data'
][
'product_list'
])
&&
!
empty
(
$sknProList
[
'data'
][
'product_list'
])
)
{
$coverList
=
array
();
$proList
=
HelperSearch
::
getProductList
(
$sknProList
[
'data'
][
'product_list'
],
array
(
'imgSize'
=>
array
(
250
,
250
),
'defaultCover'
=>
true
));
'imgSize'
=>
array
(
250
,
250
),
'defaultCover'
=>
true
));
foreach
(
$proList
as
$prod
)
{
$coverList
[
$prod
[
'skn'
]]
=
$prod
[
'thumb'
];
}
foreach
(
$data
[
'newArrivel'
][
'list'
]
as
&
$v
)
{
if
(
isset
(
$coverList
[
$v
[
'product_skn'
]]))
{
$v
[
'img'
]
=
$coverList
[
$v
[
'product_skn'
]];
if
(
isset
(
$coverList
[
$v
[
'productSkn'
]]))
{
$v
[
'img'
]
=
$coverList
[
$v
[
'productSkn'
]];
}
}
foreach
(
$data
[
'hotSingle'
][
'list'
]
as
&
$v
)
{
if
(
isset
(
$coverList
[
$v
[
'product_skn'
]]))
{
$v
[
'img'
]
=
$coverList
[
$v
[
'product_skn'
]];
if
(
isset
(
$coverList
[
$v
[
'productSkn'
]]))
{
$v
[
'img'
]
=
$coverList
[
$v
[
'productSkn'
]];
}
}
}
//店铺介绍
$data
[
'brandIntro'
]
=
self
::
getIntro
(
$shopId
,
$parameters
[
'uid'
]);
...
...
Please
register
or
login
to post a comment