|
|
<?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(
|
...
|
...
|
|