Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-blk
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
1
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
zhangxiaoru
9 years ago
Commit
171e21dc4276b07666acec27520763dba878ae9e
1 parent
8a1a586a
资讯首页
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
25 deletions
apps/editorial/controllers/editorial.js
apps/editorial/index.js
apps/editorial/views/action/index.hbs
apps/editorial/views/partial/msg.hbs
public/scss/editorial/_index.css
apps/editorial/controllers/editorial.js
View file @
171e21d
...
...
@@ -58,34 +58,18 @@ const index = (req, res) => {
isActive
:
false
,
type
:
'潮品'
}
],
mags
:
[
{
msgLeft
:
'潮品'
,
msgTitle
:
'很到位和范围的恢复文件和服务加热凤凰网二姐夫好无聊非互联网让发货文件符合我'
,
img
:
''
,
msgContent
:
'鞋款定价回复即可老地方了服务可访问接待完了就服务来讲课费忘了空间访问量可放假'
,
time
:
'2016/05/25 19:36'
,
likeNum
:
'8'
},
{
msgLeft
:
'潮品'
,
msgTitle
:
'很到位和范围的恢复文件和服务加热凤凰网二姐夫好无聊非互联网让发货文件符合我'
,
img
:
''
,
msgContent
:
'鞋款定价回复即可老地方了服务可访问接待完了就服务来讲课费忘了空间访问量可放假'
,
time
:
'2016/05/25 19:36'
,
likeNum
:
'8'
},
{
msgLeft
:
'潮品'
,
msgTitle
:
'很到位和范围的恢复文件和服务加热凤凰网二姐夫好无聊非互联网让发货文件符合我'
,
msgTitle
:
'很到位和范围的恢复文件和'
,
img
:
''
,
msgContent
:
'鞋款定价回复即可老地方了服务
可访问接待完了就服务来讲课费忘了空间访问量可放假
'
,
msgContent
:
'鞋款定价回复即可老地方了服务'
,
time
:
'2016/05/25 19:36'
,
likeNum
:
'8'
liked
:
true
,
like
:
'8'
}
]
]
},
helpers
:
{
// import component, path depends on your project
...
...
apps/editorial/index.js
View file @
171e21d
...
...
@@ -12,6 +12,7 @@ var app = express();
// set view engin
var
doraemon
=
path
.
join
(
__dirname
,
'../../doraemon/views'
);
// parent view root
var
partials
=
path
.
join
(
__dirname
,
'./views'
);
// parent view root
app
.
on
(
'mount'
,
function
(
parent
)
{
delete
parent
.
locals
.
settings
;
// 不继承父 App 的设置
...
...
apps/editorial/views/action/index.hbs
View file @
171e21d
<div
class=
"editorial-index-page"
>
{{#
editorial
}}
{{#
nav
}}
{{>
path-nav
}}
{{/
nav
}}
<div
class=
"index-content"
>
<ul
class=
"msg-nav"
>
...
...
apps/editorial/views/partial/msg.hbs
View file @
171e21d
...
...
@@ -10,8 +10,8 @@
<b
class=
"time-word"
>
{{
time
}}
</b>
</span>
<span
class=
"like-comment"
>
<i
class=
"iconfont"
>

</i>
<b
class=
"like-num"
>
{{
likeNum
}}
</b>
<i
class=
"iconfont like-icon
{{#if
liked
}}
liked
{{/if}}
"
>

</i>
<b
class=
"like-num"
>
{{
like
}}
</b>
</span>
</div>
</div>
...
...
public/scss/editorial/_index.css
View file @
171e21d
.editorial-index-page
{
width
:
1150px
;
margin
:
0
auto
;
.index-content
{
width
:
1150px
;
...
...
Please
register
or
login
to post a comment