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
xuqi
9 years ago
Commit
eb977e7b2d8156e28dc0b0f10caf320c67504f88
1 parent
d6f7a7d0
small image
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
yohobuy/m.yohobuy.com/application/modules/Guang/controllers/Detail.php
yohobuy/m.yohobuy.com/application/modules/Guang/controllers/Detail.php
View file @
eb977e7
...
...
@@ -55,6 +55,7 @@ class DetailController extends AbstractAction
$good
=
array
();
$skns
=
array
();
$product
=
array
();
foreach
(
$detail
[
'getArticleContent'
]
as
$value
)
{
$build
=
array
();
// 文字
...
...
@@ -65,6 +66,17 @@ class DetailController extends AbstractAction
elseif
(
isset
(
$value
[
'singleImage'
]))
{
$build
[
'bigImage'
]
=
Helpers
::
getImageUrl
(
$value
[
'singleImage'
][
'data'
][
0
][
'src'
],
640
,
640
);
}
elseif
(
isset
(
$value
[
'smallPic'
]))
{
$imgs
=
$value
[
'smallPic'
][
'data'
];
$build
[
'smallImage'
]
=
array
(
array
(
'src'
=>
Helpers
::
getImageUrl
(
$imgs
[
0
][
'src'
],
315
,
420
)
),
array
(
'src'
=>
Helpers
::
getImageUrl
(
$imgs
[
1
][
'src'
],
315
,
420
)
)
);
}
// 相关推荐
elseif
(
isset
(
$value
[
'goods'
][
'data'
]))
{
$good
=
array
();
...
...
Please
register
or
login
to post a comment