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
Rock Zhang
9 years ago
Commit
882d33e03cabe459999493afa31595d77bf0801d
1 parent
861a63b0
区别一个大推荐和四个小图推荐的数据中大图是多张图与一张图
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
library/Plugin/DataProcess/FloorProcess.php
library/Plugin/DataProcess/FloorProcess.php
View file @
882d33e
...
...
@@ -298,7 +298,12 @@ class FloorProcess
$one
[
'img'
]
=
Helpers
::
getImageUrl
(
$one
[
'src'
],
640
,
403
);
unset
(
$one
[
'src'
]);
}
$result
[
'big_image'
][
'list'
]
=
$data
[
'big_image'
];
// 区别多张图与一张图
if
(
count
(
$data
[
'big_image'
])
>
1
)
{
$result
[
'big_image'
][
'list'
]
=
$data
[
'big_image'
];
unset
(
$data
[
'big_image'
]);
}
foreach
(
$data
[
'list'
]
as
$kk
=>
&
$one
)
{
if
(
$kk
==
0
)
{
...
...
@@ -318,8 +323,6 @@ class FloorProcess
$data
[
'title'
][
'more_url'
]
=
Helpers
::
getFilterUrl
(
$data
[
'title'
][
'more_url'
]);
}
unset
(
$data
[
'big_image'
]);
$result
[
'goodsCategory'
]
=
$data
;
return
$result
;
...
...
Please
register
or
login
to post a comment