Authored by weiqingting

添加接口文档

... ... @@ -70,9 +70,116 @@
...
]
}
},
{
//单品 HOT
singlehot:{
name:'单品 HOT', //楼层标题
imgHot:[//有图片及logo的品牌
{
'href': '',
'img': ''
},
...
]
}
},
{
//广告
adbanner:{
'href':'',
'img':''
}
},
{
//潮人适配等楼层
recommend:{
name:'潮人配饰 ORNAMENT',
navs:[
{
'id':'',
'href':'',
'name':'MORE'
}
],
tplrecommend:{
//左上角两张图片
keyword:[
{
name:'',
img:'',
url:''
},
...
],
//左下角类别文案
category:[
{
name:'',
url:''
},
...
],
//中间两张图片
brands:[
{
name:'',
img:'',
url:''
},
...
],
//右边六张图片
types:[
{
name:'',
img:'',
url:''
},
...
],
//下面五张图片
products:[
{
name:'',
img:'',
url:''
},
...
]
}
}
},
{
//最新上架
newArrivls:{
name:'最新上架 NEW ARRIVALS',
navs:[
{
'id':'',
'href':'',
'name':'MORE'
}
]
}
}
]
}
## 男首新品上架 ajax数据
{
code:200, //返回状态
commodity:[
{
'url':'',
'img':'',
'name':'',
'price':'',
'state':'' //表示商品某种状态,用于显示商品左上角,比如已将售清等
},
...
]
}
## 男首优选品牌,logo品牌,ajax数据
{
... ...
{{> index/floor_header}}
{{> index/floor-header}}
<div class="singlehot clearfix">
<ul>
{{#each imgHot}}
... ...
... ... @@ -327,6 +327,11 @@
}
}
.tpl-products{
width: 100%;
height: 298px;
overflow: hidden;
ul{margin-left:-10px;
li{
float: left;
... ... @@ -390,7 +395,12 @@
}
.singlehot{
width: 100%;
height: 584px;
overflow: hidden;
ul{
margin-left:-8px;
}
li{
float: left;
margin-left:8px;
... ...
... ... @@ -460,9 +460,9 @@ class BoysController extends AbstractAction
)
)
),
array('adbanner'=>array('href' => '','img'=>'' )),
array('adbanner'=>array('href' => '','img'=>'' )),//楼层广告
array(
'recommend'=>$tpldata
'recommend'=>$tpldata//潮人适配
),
array(
'recommend'=>$tpldata
... ...