Authored by 李靖

编辑页

... ... @@ -52,6 +52,7 @@ const editor = (req, res, next) => {
articleListData = datas[1];
let build = [];
let name = authorData.data ? authorData.data.name : '';
let total = articleListData.data ? articleListData.data.total : 0;
if (articleListData.data && articleListData.data.list && articleListData.data.list.artList) {
articleListData.data.list.artList.forEach(articleData => {
... ... @@ -77,7 +78,8 @@ const editor = (req, res, next) => {
guang: {
infos: build,
isApp: isApp,
authorInfo: authorData.data
authorInfo: authorData.data,
total: total
},
localCss: true
}, parameter));
... ...
... ... @@ -7,9 +7,12 @@
</div>
<div class="text">
<p class="name">{{name}}</p>
<p class="info">{{author_desc}}</p>
{{#if ../total}}
<p class="info">{{../total}}篇内容</p>
{{/if}}
</div>
</div>
<p class="intro">{{author_desc}}</p>
{{/ authorInfo}}
<div id="info-list" class="info-list">
... ...
html,
body {
background-color: #f0f0f0;
}
.guang-list-page {
.editor-header {
margin-bottom: 15PX;
padding-top: 18PX;
padding-bottom: 20PX;
padding: 30px 0;
background: #fff;
}
.intro {
width: 100%;
padding: 0 30px;
font-size: 24px;
color: #444;
background: #fff;
border-bottom: 1px solid #e0e0e0;
}
.avatar {
... ... @@ -12,8 +22,8 @@
margin-left: 30px;
img {
width: 50PX;
height: 50PX;
width: 100px;
height: 100px;
border-radius: 50%;
}
}
... ... @@ -22,17 +32,17 @@
float: left;
margin-left: 32px;
width: 475px;
padding: 10px 0;
.name {
font-size: 16PX;
line-height: 20PX;
font-size: 26px;
line-height: 40px;
}
.info {
margin-top: 6px;
color: #bdbdbf;
font-size: 12PX;
line-height: 16PX;
font-size: 20px;
line-height: 40px;
}
}
... ...
.guang-info {
margin-bottom: 30px;
padding: 0 0 24px;
border-top: 1px solid #e0e0e0;
border-bottom: 1px solid #e0e0e0;
background: #fff;
.info-author {
... ...