Toggle navigation
Toggle navigation
This project
Loading...
Sign in
chenchao
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
weiqingting
9 years ago
Commit
a12995ece3952f13e80b14de904567d3a872a63f
1 parent
66b88604
添加接口文档
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
121 additions
and
4 deletions
docs/web-data-structure.md
template/www.yohobuy.com/partials/index/singlehot.phtml
web-static/sass/home/_index.scss
yohobuy/www.yohobuy.com/application/controllers/Boys.php
docs/web-data-structure.md
View file @
a12995e
...
...
@@ -70,10 +70,117 @@
...
]
}
},
{
//单品 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数据
{
logoBrand:
[
...
...
template/www.yohobuy.com/partials/index/singlehot.phtml
View file @
a12995e
{
{>
index/floor
_
header
}
}
{
{>
index/floor
-
header
}
}
<div
class=
"singlehot clearfix"
>
<ul>
{
{#each
imgHot
}
}
...
...
web-static/sass/home/_index.scss
View file @
a12995e
...
...
@@ -327,6 +327,11 @@
}
}
.tpl-products
{
width
:
100%
;
height
:
298px
;
overflow
:
hidden
;
ul
{
margin-left
:
-10px
;
li
{
float
:
left
;
...
...
@@ -390,7 +395,12 @@
}
.singlehot
{
margin-left
:
-8px
;
width
:
100%
;
height
:
584px
;
overflow
:
hidden
;
ul
{
margin-left
:
-8px
;
}
li
{
float
:
left
;
margin-left
:
8px
;
...
...
yohobuy/www.yohobuy.com/application/controllers/Boys.php
View file @
a12995e
...
...
@@ -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
...
...
Please
register
or
login
to post a comment