Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
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
hf
10 years ago
Commit
ec2a69dae7a942f4e931cfdf31220e48d1f5822f
1 parent
6b6e9efa
do guang list page
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
yohobuy/m.yohobuy.com/application/modules/Guang/controllers/List.php
yohobuy/m.yohobuy.com/application/modules/Guang/controllers/List.php
View file @
ec2a69d
<?php
use
Action\AbstractAction
;
use
LibModels\Wap\Guang\ListData
;
/**
* 逛首页、列表页、编辑页
...
...
@@ -8,9 +10,32 @@ class ListController extends AbstractAction
{
/**
* 首页
*
* @param
*/
public
function
indexAction
()
{
$list
=
array
();
$category
=
ListData
::
category
();
$uid
=
$this
->
getUid
();
$udid
=
$this
->
getUdid
();
var_dump
(
$udid
);
$gender
=
$this
->
_request
->
get
(
'gender'
);
// 男
if
(
$gender
===
'1,3'
)
{
$list
=
ListData
::
articleGroup
(
$category
[
'data'
],
'1,3'
,
$uid
,
$udid
);
}
// 女
elseif
(
$gender
===
'2,3'
)
{
$list
=
ListData
::
articleGroup
(
$category
[
'data'
],
'2,3'
,
$uid
,
$udid
);
}
// 所有
else
{
$list
=
ListData
::
articleGroup
(
$category
[
'data'
],
'1,2,3'
,
$uid
,
$udid
);
}
var_dump
(
$list
);
exit
;
$data
=
array
(
'swiper'
=>
array
(
array
(
...
...
Please
register
or
login
to post a comment