Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHO-ACTIVITY-PHP
·
Commits
Go to a project
GitLab
Go to group
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
2015-12-01 18:01:02 +0800
Commit
cb9e44a5898834d0b09f9c385a47f86b54a86861
1 parent
1d09f08a
修复recommend_content_one类型中由于字段名称重复导致的渲染出错的bug
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
library/Plugin/DataProcess/FloorProcess.php
template/m.yohobuy.com/partials/home/goods_category.phtml
library/Plugin/DataProcess/FloorProcess.php
View file @
cb9e44a
...
...
@@ -301,7 +301,7 @@ class FloorProcess
// 区别多张图与一张图
if
(
count
(
$data
[
'big_image'
])
>
1
)
{
$result
[
'big_image'
][
'list'
]
=
$data
[
'big_image'
];
$result
[
'big_image'
][
'
big_
list'
]
=
$data
[
'big_image'
];
unset
(
$data
[
'big_image'
]);
}
...
...
template/m.yohobuy.com/partials/home/goods_category.phtml
View file @
cb9e44a
{
{>
home/floor_header_more
}
}
<div
class=
"goods-category"
>
{
{#
big_image
}
}
{
{#if
list
}
}
{
{#if
big_
list
}
}
<div
class=
"category-swiper"
>
<ul
class=
"swiper-wrapper"
>
{
{#
list
}
}
{
{#
big_
list
}
}
<li
class=
"swiper-slide"
>
<a
href=
"{{url}}"
>
<img
class=
"lazy"
data-original=
"{{img}}"
alt=
"{{title}}"
>
</a>
</li>
{
{/
list
}
}
{
{/
big_
list
}
}
</ul>
<div
class=
"swiper-pagination"
>
<div
class=
"pagination-inner clearfix"
>
...
...
Please
register
or
login
to post a comment