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
Plain Diff
Browse Files
Authored by
Rock Zhang
9 years ago
Commit
6e2439790d45c25f41b3e6d7c903c8b5f6a4bd08
2 parents
d9ff2706
d746c402
Merge branch 'hotfix/apichange-bug' into develop
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
template/m.yohobuy.com/actions/product/newsale/new.phtml
yohobuy/m.yohobuy.com/application/models/Product/Newsale.php
template/m.yohobuy.com/actions/product/newsale/new.phtml
View file @
6e24397
{
{>
layout/header
}
}
<div
class=
"newarrival-page yoho-page"
>
{
{#
headerBanner
}
}
{
{>
product/banner
_swipe_and_
single
}
}
{
{>
product/banner
-swipe-and-
single
}
}
{
{/
headerBanner
}
}
<ul
id=
"list-nav"
class=
"list-nav clearfix"
>
...
...
yohobuy/m.yohobuy.com/application/models/Product/Newsale.php
View file @
6e24397
...
...
@@ -184,12 +184,12 @@ class NewsaleModel
$newsale
=
NewsaleData
::
getNewsaleFocus
(
$codeKey
);
// 调用接口获取数据并封装
if
(
isset
(
$newsale
[
'code'
])
&&
isset
(
$newsale
[
'data'
][
0
][
'data'
]))
{
if
(
count
(
$newsale
[
'data'
][
0
][
'data'
])
===
1
)
{
$result
=
Helpers
::
formatBanner
(
$newsale
[
'data'
][
0
][
'data'
][
0
],
640
,
240
);
if
(
isset
(
$newsale
[
'code'
])
&&
isset
(
$newsale
[
'data'
][
'list'
]))
{
if
(
count
(
$newsale
[
'data'
][
'list'
])
===
1
)
{
$result
=
Helpers
::
formatBanner
(
$newsale
[
'data'
][
'list'
][
0
][
'data'
][
0
],
640
,
240
);
}
else
{
foreach
(
$newsale
[
'data'
][
0
][
'data'
]
as
$one
)
{
$result
[
'list'
][]
=
Helpers
::
formatBanner
(
$one
,
640
,
240
);
foreach
(
$newsale
[
'data'
][
'list'
]
as
$one
)
{
$result
[
'list'
][]
=
Helpers
::
formatBanner
(
$one
[
'data'
],
640
,
240
);
}
}
}
...
...
Please
register
or
login
to post a comment