Authored by hf

do guang list page

1 <?php 1 <?php
  2 +
2 use Action\AbstractAction; 3 use Action\AbstractAction;
  4 +use LibModels\Wap\Guang\ListData;
3 5
4 /** 6 /**
5 * 逛首页、列表页、编辑页 7 * 逛首页、列表页、编辑页
@@ -8,9 +10,32 @@ class ListController extends AbstractAction @@ -8,9 +10,32 @@ class ListController extends AbstractAction
8 { 10 {
9 /** 11 /**
10 * 首页 12 * 首页
  13 + *
  14 + * @param
11 */ 15 */
12 public function indexAction() 16 public function indexAction()
13 { 17 {
  18 + $list = array();
  19 + $category = ListData::category();
  20 +
  21 + $uid = $this->getUid();
  22 + $udid = $this->getUdid(); var_dump($udid);
  23 + $gender = $this->_request->get('gender');
  24 + // 男
  25 + if ($gender === '1,3') {
  26 + $list = ListData::articleGroup($category['data'], '1,3', $uid, $udid);
  27 + }
  28 + // 女
  29 + elseif ($gender === '2,3') {
  30 + $list = ListData::articleGroup($category['data'], '2,3', $uid, $udid);
  31 + }
  32 + // 所有
  33 + else {
  34 + $list = ListData::articleGroup($category['data'], '1,2,3', $uid, $udid);
  35 + }
  36 + var_dump($list); exit;
  37 +
  38 +
14 $data = array( 39 $data = array(
15 'swiper' => array( 40 'swiper' => array(
16 array( 41 array(