Showing
4 changed files
with
28 additions
and
15 deletions
@@ -52,6 +52,7 @@ const editor = (req, res, next) => { | @@ -52,6 +52,7 @@ const editor = (req, res, next) => { | ||
52 | articleListData = datas[1]; | 52 | articleListData = datas[1]; |
53 | let build = []; | 53 | let build = []; |
54 | let name = authorData.data ? authorData.data.name : ''; | 54 | let name = authorData.data ? authorData.data.name : ''; |
55 | + let total = articleListData.data ? articleListData.data.total : 0; | ||
55 | 56 | ||
56 | if (articleListData.data && articleListData.data.list && articleListData.data.list.artList) { | 57 | if (articleListData.data && articleListData.data.list && articleListData.data.list.artList) { |
57 | articleListData.data.list.artList.forEach(articleData => { | 58 | articleListData.data.list.artList.forEach(articleData => { |
@@ -77,7 +78,8 @@ const editor = (req, res, next) => { | @@ -77,7 +78,8 @@ const editor = (req, res, next) => { | ||
77 | guang: { | 78 | guang: { |
78 | infos: build, | 79 | infos: build, |
79 | isApp: isApp, | 80 | isApp: isApp, |
80 | - authorInfo: authorData.data | 81 | + authorInfo: authorData.data, |
82 | + total: total | ||
81 | }, | 83 | }, |
82 | localCss: true | 84 | localCss: true |
83 | }, parameter)); | 85 | }, parameter)); |
@@ -7,9 +7,12 @@ | @@ -7,9 +7,12 @@ | ||
7 | </div> | 7 | </div> |
8 | <div class="text"> | 8 | <div class="text"> |
9 | <p class="name">{{name}}</p> | 9 | <p class="name">{{name}}</p> |
10 | - <p class="info">{{author_desc}}</p> | 10 | + {{#if ../total}} |
11 | + <p class="info">{{../total}}篇内容</p> | ||
12 | + {{/if}} | ||
11 | </div> | 13 | </div> |
12 | </div> | 14 | </div> |
15 | + <p class="intro">{{author_desc}}</p> | ||
13 | {{/ authorInfo}} | 16 | {{/ authorInfo}} |
14 | 17 | ||
15 | <div id="info-list" class="info-list"> | 18 | <div id="info-list" class="info-list"> |
1 | +html, | ||
2 | +body { | ||
3 | + background-color: #f0f0f0; | ||
4 | +} | ||
5 | + | ||
1 | .guang-list-page { | 6 | .guang-list-page { |
2 | .editor-header { | 7 | .editor-header { |
3 | - margin-bottom: 15PX; | ||
4 | - padding-top: 18PX; | ||
5 | - padding-bottom: 20PX; | 8 | + padding: 30px 0; |
9 | + background: #fff; | ||
10 | + } | ||
11 | + | ||
12 | + .intro { | ||
13 | + width: 100%; | ||
14 | + padding: 0 30px; | ||
15 | + font-size: 24px; | ||
16 | + color: #444; | ||
6 | background: #fff; | 17 | background: #fff; |
7 | - border-bottom: 1px solid #e0e0e0; | ||
8 | } | 18 | } |
9 | 19 | ||
10 | .avatar { | 20 | .avatar { |
@@ -12,8 +22,8 @@ | @@ -12,8 +22,8 @@ | ||
12 | margin-left: 30px; | 22 | margin-left: 30px; |
13 | 23 | ||
14 | img { | 24 | img { |
15 | - width: 50PX; | ||
16 | - height: 50PX; | 25 | + width: 100px; |
26 | + height: 100px; | ||
17 | border-radius: 50%; | 27 | border-radius: 50%; |
18 | } | 28 | } |
19 | } | 29 | } |
@@ -22,17 +32,17 @@ | @@ -22,17 +32,17 @@ | ||
22 | float: left; | 32 | float: left; |
23 | margin-left: 32px; | 33 | margin-left: 32px; |
24 | width: 475px; | 34 | width: 475px; |
35 | + padding: 10px 0; | ||
25 | 36 | ||
26 | .name { | 37 | .name { |
27 | - font-size: 16PX; | ||
28 | - line-height: 20PX; | 38 | + font-size: 26px; |
39 | + line-height: 40px; | ||
29 | } | 40 | } |
30 | 41 | ||
31 | .info { | 42 | .info { |
32 | - margin-top: 6px; | ||
33 | color: #bdbdbf; | 43 | color: #bdbdbf; |
34 | - font-size: 12PX; | ||
35 | - line-height: 16PX; | 44 | + font-size: 20px; |
45 | + line-height: 40px; | ||
36 | } | 46 | } |
37 | } | 47 | } |
38 | 48 |
-
Please register or login to post a comment