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
9 years ago
Commit
5323e058c306171e8280411418eff45b464f0a84
1 parent
6b10bd0a
修改频道选择页传递的数据格式“
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
24 deletions
yohobuy/m.yohobuy.com/application/controllers/Index.php
yohobuy/m.yohobuy.com/application/controllers/Index.php
View file @
5323e05
...
...
@@ -2,6 +2,7 @@
use
Action\AbstractAction
;
use
LibModels\Wap\Home\IndexData
;
use
Plugin\Helpers
;
/**
* 频道选择
...
...
@@ -14,31 +15,21 @@ class IndexController extends AbstractAction
*/
public
function
indexAction
()
{
$data
=
array
();
$data
=
array
(
'channels'
=>
array
(
array
(
'name'
=>
'男生'
,
'name_en'
=>
'BOYS'
,
'url'
=>
'/boys'
),
array
(
'name'
=>
'男生'
,
'name_en'
=>
'BOYS'
,
'url'
=>
'/boys'
),
array
(
'name'
=>
'男生'
,
'name_en'
=>
'BOYS'
,
'url'
=>
'/boys'
),
array
(
'name'
=>
'男生'
,
'name_en'
=>
'BOYS'
,
'url'
=>
'/boys'
),
)
);
// 背景图获取
$banner
=
IndexData
::
getBannerStart
();
if
(
$banner
[
'code'
]
==
200
)
{
foreach
(
$banner
[
'data'
]
as
$item
)
{
foreach
(
$item
[
'data'
][
'list'
]
as
$val
)
{
$data
[
'background'
]
=
Helpers
::
getImageUrl
(
$val
[
'src'
],
640
,
800
,
1
);
}
}
}
echo
'<pre>'
;
print_r
(
$data
);
exit
;
$this
->
_view
->
assign
(
'title'
,
'YOHO!有货'
);
$this
->
_view
->
display
(
'index'
,
$data
);
...
...
Please
register
or
login
to post a comment