Authored by xuqi

guang data docs

... ... @@ -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',//购物车样式
... ...
... ... @@ -6,7 +6,7 @@
<ul class="slide-wrapper">
{{#each slider}}
<li>
<a href="{{href}}">
<a href="{{url}}">
{{#if @first}}
<img src="{{img}}">
{{^}}
... ...
... ... @@ -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="{{editorHref}}">
<a href="{{editorUrl}}">
<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">
... ...
... ... @@ -19,7 +19,7 @@
<div class="hot-tag-list">
{{#hotTags}}
<a class="hot-tag" href="{{url}}">
{{tagname}}
{{tagName}}
</a>
{{/hotTags}}
</div>
... ...
... ... @@ -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' => '大家玩看看作者名字 过长的情况显示是不是有问题呵呵哒哒哒',
'editorHref' => '',
'editorUrl' => '',
'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(
'tagname' => 'LEE',
'tagName' => 'LEE',
'url' => ''
)
),
... ... @@ -354,7 +354,7 @@ class GuangController extends AbstractAction
),
'hotTags' => array(
array(
'tagname' => 'LEE',
'tagName' => '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' => '大家玩看看作者名字 过长的情况显示是不是有问题呵呵哒哒哒',
'editorHref' => '',
'editorUrl' => '',
'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(
'tagname' => 'LEE',
'tagName' => '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' => '大家玩看看作者名字 过长的情况显示是不是有问题呵呵哒哒哒',
'editorHref' => '',
'editorUrl' => '',
'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(
'tagname' => 'LEE',
'tagName' => 'LEE',
'url' => ''
)
),
... ...