...
|
...
|
@@ -212,6 +212,44 @@ class KidsController extends AbstractAction |
|
|
)
|
|
|
)
|
|
|
);
|
|
|
//数据变量
|
|
|
$imgsrc='http://img11.static.yhbimg.com/goodsimg/2015/10/19/10/01b312c3b7a7efebcd671e73495ff3e306.jpg';
|
|
|
$name_href=array('name'=>'衣服','url'=>'');
|
|
|
$name_href_img=array(
|
|
|
'href' => '',
|
|
|
'img' => $imgsrc,
|
|
|
'name'=>'优显led触控台灯'
|
|
|
);
|
|
|
$name_href_img_price=array(
|
|
|
'href' => '',
|
|
|
'img' => $imgsrc,
|
|
|
'name'=>'优显led触控台灯',
|
|
|
'price'=>'100'
|
|
|
);
|
|
|
$name_href_name_price_tip=array(
|
|
|
'href' => '',
|
|
|
'img' => $imgsrc,
|
|
|
'name'=>'优显led触控台灯',
|
|
|
'price'=>'100',
|
|
|
'tip'=>'TOP1'
|
|
|
);
|
|
|
|
|
|
$tpldata = array(
|
|
|
'name'=>'热门分类',
|
|
|
'navs' => array(
|
|
|
array(
|
|
|
'id' => '',
|
|
|
'href' => '',
|
|
|
'name' => 'MORE'
|
|
|
)
|
|
|
),
|
|
|
'tplrecommend'=>array(
|
|
|
'keyword'=>array($name_href_img,$name_href_img,$name_href_img),
|
|
|
'category'=>array($name_href,$name_href,$name_href,$name_href,$name_href,$name_href,$name_href,$name_href,$name_href,$name_href,$name_href,$name_href),
|
|
|
'brands'=>array($name_href_img),
|
|
|
'types'=>array($name_href_img,$name_href_img,$name_href_img,$name_href_img,$name_href_img,$name_href_img)
|
|
|
)
|
|
|
);
|
|
|
$data = array(
|
|
|
'headerdata' => $headerdata,
|
|
|
'boysHomePage' => true,
|
...
|
...
|
@@ -334,6 +372,34 @@ class KidsController extends AbstractAction |
|
|
)
|
|
|
)
|
|
|
)
|
|
|
),
|
|
|
array(
|
|
|
'recommend'=>$tpldata//热门分类
|
|
|
),
|
|
|
array(
|
|
|
'singlehot'=>array(
|
|
|
'name' => 'BOY KIDS',
|
|
|
'imgHot' => array( $name_href_name_price_tip,$name_href_name_price_tip,$name_href_name_price_tip,$name_href_img_price,$name_href_img_price,$name_href_img_price,$name_href_img_price,$name_href_img_price,$name_href_img_price,$name_href_img_price,$name_href_img_price,$name_href_img_price),
|
|
|
'bands'=>array( $name_href_img,$name_href_img,$name_href_img,$name_href_img,$name_href_img,$name_href_img)
|
|
|
)
|
|
|
),
|
|
|
array(
|
|
|
'girlkids'=>array(
|
|
|
'name' => 'GIRL KIDS',
|
|
|
'imgHot' => array( $name_href_name_price_tip,$name_href_name_price_tip,$name_href_name_price_tip,$name_href_img_price,$name_href_img_price,$name_href_img_price,$name_href_img_price,$name_href_img_price,$name_href_img_price,$name_href_img_price,$name_href_img_price,$name_href_img_price)
|
|
|
)
|
|
|
),
|
|
|
array(
|
|
|
'newArrivls' => array(
|
|
|
'name' => '最新上架 NEW ARRIVALS',
|
|
|
'navs' => array(
|
|
|
array(
|
|
|
'id' => '',
|
|
|
'href' => '',
|
|
|
'name' => 'MORE'
|
|
|
)
|
|
|
)
|
|
|
)
|
|
|
)
|
|
|
)
|
|
|
);
|
...
|
...
|
@@ -364,45 +430,16 @@ class KidsController extends AbstractAction |
|
|
break;
|
|
|
}
|
|
|
$imgsrc='http://img11.static.yhbimg.com/goodsimg/2015/10/19/10/01b312c3b7a7efebcd671e73495ff3e306.jpg';
|
|
|
$result=array(
|
|
|
'code'=>200,
|
|
|
'commodity'=>array(
|
|
|
array(
|
|
|
'url' =>'http://www.muji.com.cn/cn/store/goods/4547315967308' ,
|
|
|
'img'=> $imgsrc,
|
|
|
'name'=> '优显led触控台灯',
|
|
|
'price'=> 168,
|
|
|
'state'=> 1 //状态
|
|
|
),
|
|
|
array(
|
|
|
'url' =>'http://www.muji.com.cn/cn/store/goods/4547315967308' ,
|
|
|
'img'=> $imgsrc,
|
|
|
'name'=> '优显led触控台灯',
|
|
|
'price'=> 168,
|
|
|
'state'=> 1 //状态
|
|
|
),
|
|
|
array(
|
|
|
'url' =>'http://www.muji.com.cn/cn/store/goods/4547315967308' ,
|
|
|
'img'=> $imgsrc,
|
|
|
'name'=> '优显led触控台灯',
|
|
|
'price'=> 168,
|
|
|
'state'=> 1 //状态
|
|
|
),
|
|
|
array(
|
|
|
$data=array(
|
|
|
'url' =>'http://www.muji.com.cn/cn/store/goods/4547315967308' ,
|
|
|
'img'=> $imgsrc,
|
|
|
'name'=> '优显led触控台灯',
|
|
|
'price'=> 168,
|
|
|
'state'=> 1 //状态
|
|
|
),
|
|
|
array(
|
|
|
'url' =>'http://www.muji.com.cn/cn/store/goods/4547315967308' ,
|
|
|
'img'=> $imgsrc,
|
|
|
'name'=> '优显led触控台灯',
|
|
|
'price'=> 168,
|
|
|
'state'=> 1 //状态
|
|
|
)
|
|
|
)
|
|
|
'tip'=> "即将售罄" //提示
|
|
|
);
|
|
|
$result=array(
|
|
|
'code'=>200,
|
|
|
'commodity'=>array($data,$data,$data,$data)
|
|
|
);
|
|
|
} while (false);
|
|
|
|
...
|
...
|
|