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
8a1a586ad260b12875a2af01705b61d6caa68bf5
1 parent
4460de33
资讯首页
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
19 deletions
apps/editorial/controllers/editorial.js
dispatch.js
public/scss/editorial/_index.css
public/scss/editorial/_msg.css
public/scss/index.css
apps/editorial/controllers/editorial.js
View file @
8a1a586
...
...
@@ -8,7 +8,7 @@
const
index
=
(
req
,
res
)
=>
{
var
pageNum
=
req
.
query
.
page
||
1
;
//
var pageNum = req.query.page || 1;
res
.
render
(
'index'
,
{
module
:
'editorial'
,
...
...
@@ -38,12 +38,12 @@ const index = (req, res) => {
isActive
:
true
,
type
:
'最新'
},
{
{
typeId
:
'1'
,
isActive
:
false
,
type
:
'话题'
},
{
{
typeId
:
'2'
,
isActive
:
false
,
type
:
'搭配'
...
...
dispatch.js
View file @
8a1a586
...
...
@@ -10,8 +10,8 @@ module.exports = app => {
app
.
use
(
'/partial'
,
require
(
'./apps/partial'
));
// 组件demo
// 业务模块
//app.use('/passport', require('./apps/passport'));
//
app.use('/passport', require('./apps/passport'));
//资讯
app
.
use
(
'/editorial'
,
require
(
'./apps/editorial'
));
// 资讯
app
.
use
(
'/editorial'
,
require
(
'./apps/editorial'
));
};
...
...
public/scss/editorial/_index.css
View file @
8a1a586
...
...
@@ -19,7 +19,7 @@
text-align
:
center
;
font-size
:
14px
;
display
:
list-item
;
list-style-type
:
none
;
list-style-type
:
none
;
color
:
#999
;
a
{
...
...
@@ -37,6 +37,6 @@
}
}
}
}
@import
"msg"
;
\ No newline at end of file
@import
"msg"
;
...
...
public/scss/editorial/_msg.css
View file @
8a1a586
...
...
@@ -2,42 +2,45 @@
margin-top
:
40px
;
margin-left
:
110px
;
}
.msg-left
{
.msg-left
{
position
:
relative
;
float
:
left
;
width
:
200px
;
height
:
30px
;
margin-right
:
80px
;
line-height
:
30px
;
text-align
:
center
;
text-align
:
center
;
border-bottom
:
1px
solid
#bbb
;
}
.msg-right
{
float
:
left
;
width
:
643px
;
border-bottom
:
1px
solid
#eee
eee
;
border-bottom
:
1px
solid
#eee
;
margin-top
:
2px
;
padding-bottom
:
5px
;
}
.msg-title
{
font-size
:
20px
;
color
:
#333
;
line-height
:
30px
;
max-height
:
64px
;
word-wrap
:
break-word
;
overflow
:
hidden
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
display
:
-webkit-box
;
-webkit-line-clamp
:
2
;
-webkit-box-orient
:
vertical
;
}
.lazy
{
width
:
640px
;
height
:
430px
;
margin-top
:
15px
;
}
.content
{
display
:
block
;
font-size
:
14px
;
...
...
@@ -45,7 +48,7 @@
word-wrap
:
break-word
;
margin-top
:
10px
;
margin-bottom
:
10px
;
overflow
:
hidden
;
overflow
:
hidden
;
word-wrap
:
break-word
;
text-overflow
:
ellipsis
;
display
:
-webkit-box
;
...
...
@@ -60,7 +63,7 @@
}
.time
{
color
:
#a6a6a6
;
color
:
#a6a6a6
;
margin-left
:
3px
;
}
...
...
@@ -79,6 +82,7 @@
cursor
:
pointer
;
font-size
:
14px
;
}
.like-num
{
font-weight
:
normal
;
}
\ No newline at end of file
}
...
...
public/scss/index.css
View file @
8a1a586
...
...
@@ -9,4 +9,4 @@
@import
"components/index"
;
/* 资讯 */
@import
"editorial/index"
;
\ No newline at end of file
@import
"editorial/index"
;
...
...
Please
register
or
login
to post a comment