Authored by zhangxiaoru

资讯首页

... ... @@ -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: '搭配'
... ...
... ... @@ -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'));
};
... ...
... ... @@ -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";
... ...
... ... @@ -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 #eeeeee;
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
}
... ...
... ... @@ -9,4 +9,4 @@
@import "components/index";
/* 资讯 */
@import "editorial/index";
\ No newline at end of file
@import "editorial/index";
... ...