Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
xuqi
9 years ago
Commit
d6106d4727ca4899da2e63265d3aaacb957fc03b
1 parent
84af27e2
guang data docs
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
135 additions
and
21 deletions
docs/web-data-structure.md
template/www.yohobuy.com/actions/index/guang/index.phtml
template/www.yohobuy.com/partials/guang/msg.phtml
template/www.yohobuy.com/partials/guang/right-side.phtml
yohobuy/www.yohobuy.com/application/controllers/Guang.php
docs/web-data-structure.md
View file @
d6106d4
...
...
@@ -490,6 +490,120 @@
}
}
## 逛
### 【公用】资讯
{
id: '',
classification: '最新',
isReco: true, //是否推荐
url: '',
isSquareImg: true, //是否是正方形图
img: '',
title: '',
editorUrl: '',
author: '',
pTime: '',
pView: '',
content: '',
tags: [
{
url: '',
tag: ''
},
...
],
liked: true,
like: 10,
comment: 10
}
### 【共用】右侧栏
{
exRecos: [
{
url: '',
img: '',
title: ''
},
..
],
hotTags: [
{
url: '',
tagName: ''
},
...
],
ads: [
{
url: '',
img: ''
},
...
]
}
### 首页
{
guang: {
slider:
[
{
url: '',
img: ''
},
...
],
msgTypes:
[
{
typeId: '',
isActive: true,
navUrl: '',
type: '最新'
},
...
],
msgs:
[
{
...//资讯
}
],
msgPager: ''//HTML
}
}
### 列表页
{
guang: {
tag: '户外', //XX关联的文章
msgs: [
{
..//资讯
},
...
],
msgPager: ''
}
}
### 编辑页
{
guang: {
editor: {
avatar: '',
name: '',
intro: ''
},
msgs:
[
],
msgPager: ''
}
}
## 站点头部
{
gobuytype: 'gobuyboys',//购物车样式
...
...
template/www.yohobuy.com/actions/index/guang/index.phtml
View file @
d6106d4
...
...
@@ -6,7 +6,7 @@
<ul
class=
"slide-wrapper"
>
{
{#each
slider
}
}
<li>
<a
href=
"{{
href
}}"
>
<a
href=
"{{
url
}}"
>
{
{#if
@first
}
}
<img
src=
"{{img}}"
>
{
{^
}
}
...
...
template/www.yohobuy.com/partials/guang/msg.phtml
View file @
d6106d4
...
...
@@ -6,14 +6,14 @@
{{#if isReco}}
<div class="reco"></div>
{{/if}}
<a href="{{
href
}}">
<a href="{{
url
}}">
<img class="lazy{{#if isSquareImg}} square{{/if}}" data-original="{{img}}">
</a>
</div>
<div class="msg-info">
<a class="msg-title" href="{{
href
}}">{{title}}</a>
<a class="msg-title" href="{{
url
}}">{{title}}</a>
<p class="msg-app">
<a href="{{editor
Href
}}">
<a href="{{editor
Url
}}">
<span class="author">{{author}}</span>
</a>
<span class="publish-time">
...
...
@@ -29,7 +29,7 @@
<div class="footer">
<div class="tags">
{{# tags}}
<a class="msg-tag" href="{{
href
}}" target="_blank">{{tag}}</a>
<a class="msg-tag" href="{{
url
}}" target="_blank">{{tag}}</a>
{{/ tags}}
</div>
<div class="like-comment">
...
...
template/www.yohobuy.com/partials/guang/right-side.phtml
View file @
d6106d4
...
...
@@ -19,7 +19,7 @@
<div class="hot-tag-list">
{{#hotTags}}
<a class="hot-tag" href="{{url}}">
{{tag
n
ame}}
{{tag
N
ame}}
</a>
{{/hotTags}}
</div>
...
...
yohobuy/www.yohobuy.com/application/controllers/Guang.php
View file @
d6106d4
...
...
@@ -16,11 +16,11 @@ class GuangController extends AbstractAction
'guang'
=>
array
(
'slider'
=>
array
(
array
(
'
href
'
=>
''
,
'
url
'
=>
''
,
'img'
=>
'http://img13.static.yhbimg.com/taobaocms/2015/06/17/07/0240f288725106b408d8c524b4d0fba4b9.jpg'
),
array
(
'
href
'
=>
''
,
'
url
'
=>
''
,
'img'
=>
'http://img13.static.yhbimg.com/taobaocms/2015/06/17/07/02934d7696b187d260341d31c084eb93cc.jpg'
)
),
...
...
@@ -62,18 +62,18 @@ class GuangController extends AbstractAction
'id'
=>
1
,
'classification'
=>
'话题'
,
'isReco'
=>
true
,
'
href
'
=>
''
,
'
url
'
=>
''
,
'img'
=>
'http://img10.static.yhbimg.com/yhb-img01/2015/06/12/17/01437323c88bc61f26721a2ad91a2ba61a.png?imageView/2/w/640/h/640'
,
'isSquareImg'
=>
true
,
'title'
=>
'破旧除新!Publish完美释出2015最新春季[TheResistance]系列看看你很长的时候会不会分页啊,奇怪的人类'
,
'author'
=>
'大家玩看看作者名字 过长的情况显示是不是有问题呵呵哒哒哒'
,
'editor
Href
'
=>
''
,
'editor
Url
'
=>
''
,
'pTime'
=>
'2015-03-08 15:33'
,
'pView'
=>
'225'
,
'content'
=>
'该类型 应用于多图形式。虽说洛杉矶街头品牌Publish是凭着设计一炮而红,跃升为近年人气品牌,但是该设计团队却打算你妹啊鬼知道你后面说什么但是要测试文字截取能不能成功,所以必须要把你写很长很长很长很长很长'
,
'tags'
=>
array
(
array
(
'
href
'
=>
''
,
'
url
'
=>
''
,
'tag'
=>
'adidas OriginalsQ'
)
),
...
...
@@ -91,7 +91,7 @@ class GuangController extends AbstractAction
),
'hotTags'
=>
array
(
array
(
'tag
n
ame'
=>
'LEE'
,
'tag
N
ame'
=>
'LEE'
,
'url'
=>
''
)
),
...
...
@@ -354,7 +354,7 @@ class GuangController extends AbstractAction
),
'hotTags'
=>
array
(
array
(
'tag
n
ame'
=>
'LEE'
,
'tag
N
ame'
=>
'LEE'
,
'url'
=>
''
)
),
...
...
@@ -389,18 +389,18 @@ class GuangController extends AbstractAction
'id'
=>
1
,
'classification'
=>
'话题'
,
'isReco'
=>
true
,
'
href
'
=>
''
,
'
url
'
=>
''
,
'img'
=>
'http://img10.static.yhbimg.com/yhb-img01/2015/06/12/17/01437323c88bc61f26721a2ad91a2ba61a.png?imageView/2/w/640/h/640'
,
'isSquareImg'
=>
true
,
'title'
=>
'破旧除新!Publish完美释出2015最新春季[TheResistance]系列看看你很长的时候会不会分页啊,奇怪的人类'
,
'author'
=>
'大家玩看看作者名字 过长的情况显示是不是有问题呵呵哒哒哒'
,
'editor
Href
'
=>
''
,
'editor
Url
'
=>
''
,
'pTime'
=>
'2015-03-08 15:33'
,
'pView'
=>
'225'
,
'content'
=>
'该类型 应用于多图形式。虽说洛杉矶街头品牌Publish是凭着设计一炮而红,跃升为近年人气品牌,但是该设计团队却打算你妹啊鬼知道你后面说什么但是要测试文字截取能不能成功,所以必须要把你写很长很长很长很长很长'
,
'tags'
=>
array
(
array
(
'
href
'
=>
''
,
'
url
'
=>
''
,
'tag'
=>
'adidas OriginalsQ'
)
),
...
...
@@ -418,7 +418,7 @@ class GuangController extends AbstractAction
),
'hotTags'
=>
array
(
array
(
'tag
n
ame'
=>
'LEE'
,
'tag
N
ame'
=>
'LEE'
,
'url'
=>
''
)
),
...
...
@@ -448,18 +448,18 @@ class GuangController extends AbstractAction
'id'
=>
1
,
'classification'
=>
'话题'
,
'isReco'
=>
true
,
'
href
'
=>
''
,
'
url
'
=>
''
,
'img'
=>
'http://img10.static.yhbimg.com/yhb-img01/2015/06/12/17/01437323c88bc61f26721a2ad91a2ba61a.png?imageView/2/w/640/h/640'
,
'isSquareImg'
=>
true
,
'title'
=>
'破旧除新!Publish完美释出2015最新春季[TheResistance]系列看看你很长的时候会不会分页啊,奇怪的人类'
,
'author'
=>
'大家玩看看作者名字 过长的情况显示是不是有问题呵呵哒哒哒'
,
'editor
Href
'
=>
''
,
'editor
Url
'
=>
''
,
'pTime'
=>
'2015-03-08 15:33'
,
'pView'
=>
'225'
,
'content'
=>
'该类型 应用于多图形式。虽说洛杉矶街头品牌Publish是凭着设计一炮而红,跃升为近年人气品牌,但是该设计团队却打算你妹啊鬼知道你后面说什么但是要测试文字截取能不能成功,所以必须要把你写很长很长很长很长很长'
,
'tags'
=>
array
(
array
(
'
href
'
=>
''
,
'
url
'
=>
''
,
'tag'
=>
'adidas OriginalsQ'
)
),
...
...
@@ -477,7 +477,7 @@ class GuangController extends AbstractAction
),
'hotTags'
=>
array
(
array
(
'tag
n
ame'
=>
'LEE'
,
'tag
N
ame'
=>
'LEE'
,
'url'
=>
''
)
),
...
...
Please
register
or
login
to post a comment