Authored by Rock Zhang

添加楼层处理类

<?php
namespace Plugin;
/**
* 楼层数据处理类
*/
class FloorProcess
{
/**
* 焦点图数据处理方法
* @param array $data 焦点图数据
* @return array 处理之后的焦点图数据
*/
public static function focus($data)
{
$result = array();
foreach ($data as &$one) {
$one['img'] = Helpers::getImageUrl($one['src'], 750, 364, 1);
unset($one['src']);
}
$result['list'] = $data;
return $result;
}
/**
* 图标列表数据处理方法
* @param array $data 图标列表数据
* @return array 处理之后的图标列表数据
*/
public static function app_icon_list($data)
{
$result = array();
foreach ($data as &$one) {
$one['img'] = Helpers::getImageUrl($one['src'], 186, 203, 1);
unset($one['src']);
}
$result['list'] = $data;
return $result;
}
/**
* 单图片数据处理方法
* @param array $data 单图片数据
* @return array 处理之后的单图片数据
*/
public static function single_image($data)
{
$result = array();
foreach ($data as &$one) {
$one['img'] = Helpers::getImageUrl($one['src'], 750, 364, 1);
}
$result['list'] = $data;
return $result;
}
/**
* 带标题的12个小图推荐数据处理方法
* @param array $data 带标题的12个小图推荐数据
* @return array 处理之后的带标题的12个小图推荐数据
*/
public static function recommend_content_five($data)
{
$result = array();
foreach ($data['list'] as &$one) {
$one['img'] = Helpers::getImageUrl($one['src'], 186, 203, 1);
unset($one['src']);
}
$result = $data;
return $result;
}
/**
* 推荐品牌数据处理方法
* @param array $data 推荐品牌数据
* @return array 处理之后的推荐品牌数据
*/
public static function app_hot_brands($data)
{
$result = array();
$data['name'] = $data['title']['title'];
unset($data['title']);
foreach ($data['list'] as &$one) {
$one['img'] = Helpers::getImageUrl($one['src'], 186, 203, 1);
unset($one['src']);
}
$result = $data;
return $result;
}
/**
* 潮人·搭配数据处理方法
* @param array $data 潮人·搭配数据
* @return array 处理之后的潮人·搭配数据
*/
public static function trendsetter_collocation($data)
{
$result = array();
foreach ($data['article'] as &$one) {
$one['img'] = Helpers::getImageUrl($one['src'], 186, 203, 1);
unset($one['src']);
}
foreach ($data['recommend_collocation'] as &$one) {
$one['img'] = Helpers::getImageUrl($one['src'], 186, 203, 1);
unset($one['src']);
}
$result = $data;
return $result;
}
/**
* 潮品·话题数据处理方法
* @param array $data 潮品·话题数据
* @return array 处理之后的潮品·话题数据
*/
public static function trendgoods_topic($data)
{
$result = array();
foreach ($data['list'] as &$one) {
$one['img'] = Helpers::getImageUrl($one['src'], 186, 203, 1);
unset($one['src']);
}
$result = $data;
return $result;
}
/**
* 一张大图一个大的推荐和4个小图推荐数据处理方法
* @param array $data 一张大图一个大的推荐和4个小图推荐数据
* @return array 处理之后的一张大图一个大的推荐和4个小图推荐数据
*/
public static function recommend_content_one($data)
{
$result = array();
foreach ($data['big_image'] as &$one) {
$one['img'] = Helpers::getImageUrl($one['src'], 186, 203, 1);
unset($one['src']);
}
foreach ($data['list'] as &$one) {
$one['img'] = Helpers::getImageUrl($one['src'], 186, 203, 1);
unset($one['src']);
}
$result = $data;
return $result;
}
/**
* 一张大图和6个小图推荐数据处理方法
* @param array $data 一张大图和6个小图推荐数据
* @return array 处理之后的一张大图和6个小图推荐数据
*/
public static function recommend_content_two($data)
{
$result = array();
foreach ($data['big_image'] as &$one) {
$one['img'] = Helpers::getImageUrl($one['src'], 186, 203, 1);
unset($one['src']);
}
foreach ($data['list'] as &$one) {
$one['img'] = Helpers::getImageUrl($one['src'], 186, 203, 1);
unset($one['src']);
}
$result = $data;
return $result;
}
/**
* 小图片数据处理方法
* @param array $data 小图片数据
* @return array 处理之后的小图片数据
*/
public static function small_pic($data)
{
$result = array();
foreach ($data as &$one) {
$one['img'] = Helpers::getImageUrl($one['src'], 186, 203, 1);
unset($one['src']);
}
$result = $data;
return $result;
}
}
... ...
... ... @@ -3,529 +3,116 @@
use Action\AbstractAction;
use LibModels\Wap\Home\IndexData;
use Plugin\Helpers;
use Plugin\FloorProcess;
/**
* 女生首页
*/
class GirlsController extends AbstractAction
{
public function indexAction()
{
$data = array(
'headerDownload' => $this->getHeaderDownload(),
'homeHeader' => array(
'bgColor' => '#FF88AE',
'searchUrl' => ''
),
'searchUrl' => '',
'sideNav' => array(),
'content' => array()
);
public function indexAction()
{
$data = array(
'headerDownload' => $this->getHeaderDownload(),
'homeHeader' => array(
'bgColor' => '#FF88AE',
'searchUrl' => ''
),
'searchUrl' => '',
'sideNav' => array(),
'content' => array()
);
$sideDatas = IndexData::getHomeChannels();
if($sideDatas['code'] == 200)
{
$data['sideNav'] = $sideDatas['data'];
}
$sideDatas = IndexData::getHomeChannels();
if($sideDatas['code'] == 200)
{
$data['sideNav'] = $sideDatas['data'];
}
// 频道数据
$channelData = IndexData::getUserChannelData(0, '2,3', '201504091403002');
$channels = array();
if($channelData['code'] == 200)
{
$content = array();
$bannerTop = array();
$iconsEnter = array();
$singleImage = array();
$hotCategory = array();
$hotBrandsScroll = array();
$trendColloaction = array();
$trendTopics = array();
$goodsCategory = array();
$recommend_content_two = array();
$small_pic = array();
// 频道数据
$channelData = IndexData::getUserChannelData(0, '2,3', '201504091403002');
$channels = array();
if($channelData['code'] == 200)
{
$content = array();
$bannerTop = array();
$iconsEnter = array();
$singleImage = array();
$hotCategory = array();
$hotBrandsScroll = array();
$trendColloaction = array();
$trendTopics = array();
$goodsCategory = array();
$recommend_content_two = array();
$small_pic = array();
foreach ($channelData['data']['list'] as $key => $val) {
switch ($val['template_name']) {
case 'focus': // 焦点图
$oneFocus = array();
foreach ($val['data'] as &$one) {
$one['img'] = Helpers::getImageUrl($one['src'], 750, 364, 1);
}
$oneFocus['list'] = $val['data'];
$bannerTop[] = $oneFocus;
break;
case 'app_icon_list': // 图标列表
$oneIcon = array();
foreach ($val['data'] as &$one) {
$one['img'] = Helpers::getImageUrl($one['src'], 186, 203, 1);
}
$oneIcon['list'] = $val['data'];
$iconsEnter[] = $oneIcon;
break;
case 'single_image': // 单图片
$oneImage = array();
foreach ($val['data'] as &$one) {
$one['img'] = Helpers::getImageUrl($one['src'], 750, 364, 1);
}
$oneImage['list'] = $val['data'];
$singleImage[] = $oneImage;
break;
case 'recommend_content_five': // 带标题的12个小图推荐
$oneHot = array();
foreach ($val['data']['list'] as &$one) {
$one['img'] = Helpers::getImageUrl($one['src'], 186, 203, 1);
}
$oneHot = $val['data'];
$hotCategory[] = $oneHot;
break;
case 'app_hot_brands': // 推荐品牌
$oneHotBrand = array();
foreach ($val['data']['list'] as &$one) {
$one['img'] = Helpers::getImageUrl($one['src'], 186, 203, 1);
}
$oneHotBrand = $val['data'];
$hotBrandsScroll[] = $oneHotBrand;
break;
case 'trendsetter_collocation': // 潮人·搭配
$oneTrendSetter = array();
foreach ($val['data']['article'] as &$one) {
$one['img'] = Helpers::getImageUrl($one['src'], 186, 203, 1);
}
foreach ($val['data']['recommend_collocation'] as &$one) {
$one['img'] = Helpers::getImageUrl($one['src'], 186, 203, 1);
}
$oneTrendSetter = $val['data'];
$trendColloaction[] = $oneTrendSetter;
break;
case 'trendgoods_topic': // 潮品·话题
$oneTopic = array();
foreach ($val['data']['list'] as &$one) {
$one['img'] = Helpers::getImageUrl($one['src'], 186, 203, 1);
}
$oneTopic = $val['data'];
$trendTopics[] = $oneTopic;
break;
case 'recommend_content_one': // 一张大图一个大的推荐和4个小图推荐
$oneGoodCategory = array();
foreach ($val['data']['big_image'] as &$one) {
$one['img'] = Helpers::getImageUrl($one['src'], 186, 203, 1);
}
foreach ($val['data']['list'] as &$one) {
$one['img'] = Helpers::getImageUrl($one['src'], 186, 203, 1);
}
$oneGoodCategory = $val['data'];
$goodsCategory[] = $oneGoodCategory;
break;
case 'recommend_content_two': // 一张大图和6个小图推荐
$oneRecoContTwo = array();
foreach ($val['data']['big_image'] as &$one) {
$one['img'] = Helpers::getImageUrl($one['src'], 186, 203, 1);
}
foreach ($val['data']['list'] as &$one) {
$one['img'] = Helpers::getImageUrl($one['src'], 186, 203, 1);
}
$oneRecoContTwo = $val['data'];
$recommend_content_two[] = $oneRecoContTwo;
break;
case 'small_pic': // 小图片
$oneSmallPic = array();
foreach ($val['data'] as &$one) {
$one['img'] = Helpers::getImageUrl($one['src'], 186, 203, 1);
}
$oneSmallPic = $val['data'];
$small_pic[] = $oneSmallPic;
break;
default:
break;
}
foreach ($channelData['data']['list'] as $val) {
$template = $val['template_name'];
$floorData = $val['data'];
$content[$key] = array(
'bannerTop' => $bannerTop,
'iconsEnter' => $iconsEnter,
'hotCategory' => $hotCategory,
'hotBrandsScroll' => $hotBrandsScroll,
'trendColloaction' => $trendColloaction,
'trendTopics' => $trendTopics,
'goodsCategory' => $goodsCategory
);
}
switch ($template) {
case 'focus': // 焦点图
$oneFocus = FloorProcess::$template($floorData);
$bannerTop[] = $oneFocus;
break;
case 'app_icon_list': // 图标列表
$oneIcon = FloorProcess::$template($floorData);
$iconsEnter[] = $oneIcon;
break;
case 'single_image': // 单图片
$oneImage = FloorProcess::$template($floorData);
$singleImage[] = $oneImage;
break;
case 'recommend_content_five': // 带标题的12个小图推荐
$oneHot = FloorProcess::$template($floorData);
$hotCategory[] = $oneHot;
break;
case 'app_hot_brands': // 推荐品牌
$oneHotBrand = FloorProcess::$template($floorData);
$hotBrandsScroll[] = $oneHotBrand;
break;
case 'trendsetter_collocation': // 潮人·搭配
$oneTrendSetter = FloorProcess::$template($floorData);
$trendColloaction[] = $oneTrendSetter;
break;
case 'trendgoods_topic': // 潮品·话题
$oneTopic = FloorProcess::$template($floorData);
$trendTopics[] = $oneTopic;
break;
case 'recommend_content_one': // 一张大图一个大的推荐和4个小图推荐
$oneGoodCategory = FloorProcess::$template($floorData);
$goodsCategory[] = $oneGoodCategory;
break;
case 'recommend_content_two': // 一张大图和6个小图推荐
$oneRecoContTwo = FloorProcess::$template($floorData);
$recommend_content_two[] = $oneRecoContTwo;
break;
case 'small_pic': // 小图片
$oneSmallPic = FloorProcess::$template($floorData);
$small_pic[] = $oneSmallPic;
break;
default:
break;
}
}
$data['content'] = $content;
}
$content = array(
'bannerTop' => $bannerTop,
'iconsEnter' => $iconsEnter,
'hotCategory' => $hotCategory,
'hotBrandsScroll' => $hotBrandsScroll,
'trendColloaction' => $trendColloaction,
'trendTopics' => $trendTopics,
'goodsCategory' => $goodsCategory
);
$this->_view->assign('title', 'YOHO!有货');
$this->_view->display('index', $data);
$data['content'] = $content;
}
echo '<pre>';
print_r($data);exit;
// 显示侧边栏
$this->setNavSide();
$data = array(
'headerDownload' => array(
'img' => 'http://img11.static.yhbimg.com/adpic/2015/02/28/18/01d83bfad41c8fca8fd1ad334216d7d733.jpg?imageView/2/w/640/h/480',
'url' => 'http://www.baidu.com'
),
'homeHeader' => array(
'bgColor' => '#FF88AE',
'searchUrl' => ''
),
'sideNav' => array(
array(
'textCn' => '男生',
'textEn' => 'Boys',
'styleClass' => 'boys',
'url' => ''
),
array(
'textCn' => '女生',
'textEn' => 'GIRLS',
'styleClass' => 'girls',
'url' => ''
),
array(
'textCn' => '潮童',
'textEn' => 'KIDS',
'styleClass' => 'kids',
'url' => ''
),
array(
'textCn' => '创意生活',
'textEn' => 'LIFE STYLE',
'styleClass' => 'life',
'url' => ''
),
array(
'textCn' => '逛',
'textEn' => 'TRENDFINDER',
'styleClass' => 'guang',
'subNav' => array(
'list' => array(
array(
'textCn' => '逛',
'textEn' => 'TrendFinder',
'back' => true,
'bgColor' => '#fd307f'
),
array(
'textCn' => '查看全部',
'url' => ''
),
array(
'textCn' => '只看男生',
'textEn' => 'Boys',
'url' => ''
),
array(
'textCn' => '只看女生',
'textEn' => 'Girls',
'url' => '',
'isSelect' => true
)
)
)
)
),
'content' => array(
'bannerTop' => array(
'list' => array(
array(
'url' => '',
'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg'
),
array(
'url' => '',
'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg'
),
array(
'url' => '',
'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg'
)
)
),
'iconsEnter' => array(
'list' => array(
array(
'url' => '',
'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg',
'text' => '新品到着'
),
array(
'url' => '',
'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg',
'text' => '全球优选'
),
array(
'url' => '',
'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg',
'text' => '明星潮牌'
),
array(
'url' => '',
'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg',
'text' => '全部品类'
),
array(
'url' => '',
'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg',
'text' => '逛'
),
array(
'url' => '',
'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg',
'text' => '搭配指南'
),
array(
'url' => '',
'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg',
'text' => '潮品推荐'
),
array(
'url' => '',
'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg',
'text' => '折扣精选'
)
)
),
'hotCategory' => array(
'img' => 'http://img11.static.yhbimg.com/adpic/2015/02/28/18/01d83bfad41c8fca8fd1ad334216d7d733.jpg?imageView/2/w/640/h/480',
'url' => 'http://www.baidu.com',
'list' => array(
array(
'textCn' => '打底衫',
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => ''
),
array(
'textCn' => '打底衫',
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => ''
),
array(
'textCn' => '打底衫',
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => ''
),
array(
'textCn' => '打底衫',
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => ''
),
array(
'textCn' => '打底衫',
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => ''
),
array(
'textCn' => '打底衫',
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => ''
),
array(
'textCn' => '打底衫',
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => ''
),
array(
'textCn' => '打底衫',
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => ''
),
array(
'textCn' => '打底衫',
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => ''
)
)
),
'hotBrandsScroll' => array(
'name' => '热门品牌',
'list' => array(
array(
'textCn' => 'Moussy',
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => ''
),
array(
'textCn' => 'Moussy',
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => ''
),
array(
'textCn' => 'Moussy',
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => ''
),
array(
'textCn' => 'Moussy',
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => ''
),
array(
'textCn' => 'Moussy',
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => ''
),
array(
'textCn' => 'Moussy',
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => ''
),
array(
'textCn' => 'Moussy',
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => ''
),
array(
'textCn' => 'Moussy',
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => ''
),
array(
'textCn' => 'Moussy',
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => ''
)
)
),
'hotBrands' => array(
'name' => '热门品牌',
'more' => 'www.baidu.com',
'brands' => array(
array(
'name' => 'Front Row Shop',
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => ''
),
array(
'name' => 'dress lab',
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => ''
),
array(
'name' => 'DEVIL NUT',
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => ''
),
array(
'name' => 'casselini',
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => ''
),
array(
'name' => 'haso',
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => ''
),
array(
'name' => 'EVISU',
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => ''
)
)
),
'trendColloaction' => array(
'name' => '潮人 ▪ 搭配',
'more' => '',
'leftspan' => array(
'url' => '',
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
),
'rightspan' => array(
'url' => '',
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg'
),
'recommendlist' => array(
array(
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => ''
),
array(
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => ''
),
array(
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => ''
),
array(
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => ''
),
array(
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => ''
)
)
),
'trendTopics' => array(
'name' => '潮品 ▪ 话题',
'more' => '',
'list' => array(
array(
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => '',
'title' => '现代裁剪',
'time' => '2月13日 12:34'
),
array(
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => '',
'title' => '现代裁剪',
'time' => '2月13日 12:34'
),
array(
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => '',
'title' => '现代裁剪',
'time' => '2月13日 12:34'
)
)
),
'goodsCategory' => array(
'name' => '经典裤装',
'more' => '',
'banner' => array(
'list' => array(
array(
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => ''
)
)
),
'list' => array(
array(
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => '',
'textCn' => '手表'
),
array(
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => '',
'textCn' => '烛台'
),
array(
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => '',
'textCn' => '围巾'
),
array(
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => '',
'textCn' => '盘子'
),
array(
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => '',
'textCn' => '耳机'
)
)
)
));
$this->_view->assign('title', 'YOHO!有货');
$this->_view->display('index', $data);
}
$this->_view->assign('title', 'YOHO!有货');
$this->_view->display('index', $data);
}
}
... ...