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
Rock Zhang
9 years ago
Commit
02ce398d65024921859c1ad780510070163f0b78
1 parent
fc840865
添加意见反馈图片大小选项,添加我的收藏随便逛逛链接地址
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
library/Plugin/Images.php
yohobuy/m.yohobuy.com/application/controllers/Home.php
library/Plugin/Images.php
View file @
02ce398
...
...
@@ -182,17 +182,19 @@ class Images
$result
=
json_decode
(
file_get_contents
(
'http://upload.static.yohobuy.com'
,
false
,
$context
),
true
);
if
(
!
empty
(
$result
[
'data'
][
'imagesList'
]))
{
$imgExtra
=
'?imageMogr2/thumbnail/130x130/extent/130x130/background/d2hpdGU=/position/center/quality/90'
;
$imgList
=
array
(
'imgList'
=>
array
());
if
(
count
(
$file
)
==
1
||
!
is_array
(
$file
))
{
$imgList
[
'imgList'
][]
=
array
(
'imgUrl'
=>
self
::
getSourceUrl
(
current
(
$result
[
'data'
][
'imagesList'
]),
'suggest'
));
$imgList
[
'imgList'
][]
=
array
(
'imgUrl'
=>
self
::
getSourceUrl
(
current
(
$result
[
'data'
][
'imagesList'
]),
'suggest'
)
.
$imgExtra
);
}
else
{
$img
=
array
();
foreach
(
$result
[
'data'
][
'imagesList'
]
as
$val
)
{
$img
=
array
();
$img
[
'imgUrl'
]
=
self
::
getSourceUrl
(
$val
,
'suggest'
);
$img
[
'imgUrl'
]
=
self
::
getSourceUrl
(
$val
,
'suggest'
)
.
$imgExtra
;
$imgList
[
'imgList'
][]
=
$img
;
}
}
...
...
yohobuy/m.yohobuy.com/application/controllers/Home.php
View file @
02ce398
...
...
@@ -83,7 +83,9 @@ class HomeController extends AbstractAction
'pageFooter'
=>
true
,
'favorite'
=>
true
,
'hasFavProduct'
=>
$favProducts
,
'hasFavBrand'
=>
$favBrands
'productUrl'
=>
'/product/new'
,
'hasFavBrand'
=>
$favBrands
,
'brandUrl'
=>
'/product/new'
);
// 判断是否为品牌收藏页
if
(
$tab
===
'brand'
)
{
...
...
Please
register
or
login
to post a comment