From 5c1f8073bd4493042f66ccc9a7724821e834d70b Mon Sep 17 00:00:00 2001 From: panqihua <1029559041@qq.com> Date: Wed, 19 Feb 2020 16:24:33 +0800 Subject: [PATCH] =?UTF-8?q?=20=E6=9B=B4=E6=96=B0=E8=AE=BA=E5=9D=9B?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E6=A8=A1=E5=9D=97=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/app.component.html | 2 +- src/app/app.component.ts | 2 - src/app/forum/forum.component.html | 86 +++++++++++++++++++++++++++--- src/app/forum/forum.component.scss | 54 ++++++++++++++++++- src/assets/i18n/en-US.json | 9 +++- src/assets/i18n/zh-CN.json | 9 +++- 6 files changed, 147 insertions(+), 15 deletions(-) diff --git a/src/app/app.component.html b/src/app/app.component.html index 9782e59..48930ef 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -19,7 +19,7 @@ diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 4d53796..d2e75da 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -13,8 +13,6 @@ export class AppComponent { // 登陆状态 isLogin; - // 当前登陆管理员 - param = {value: 'admin'}; navStart: Observable; constructor(public route: ActivatedRoute, public translate: TranslateService, private router: Router) { diff --git a/src/app/forum/forum.component.html b/src/app/forum/forum.component.html index ad2d2ea..aab696d 100644 --- a/src/app/forum/forum.component.html +++ b/src/app/forum/forum.component.html @@ -1,12 +1,82 @@ +
-

{{ 'forum.notice' | translate }}

-
-

公告标题

-
- 公告内容公告内容公告内容公告内容公告内容公告内容公告内容公告内容公告内容公告内容公告内容公告内容公告内容公告内容公告内容公告内容公告内容公告内容公告内容公告内容公告内容公告内容公告内容公告内容公告内容公告内容 -
- + + +
+ +

{{ 'forum.check' | translate }}

+ + + +
    +
  • Cras justo odio
  • +
  • Dapibus ac facilisis in
  • +
  • Morbi leo risus
  • +
  • Porta ac consectetur ac
  • +
  • Vestibulum at eros
  • +
  • Cras justo odio
  • +
  • Dapibus ac facilisis in
  • +
  • Morbi leo risus
  • +
  • Porta ac consectetur ac
  • +
  • Vestibulum at eros
  • +
+ + +
+
+ + + +
+ 发帖人 +
+ +
+ 信用分 +
+
+ +

活动名

+ +
+ 帖子正文帖子正文帖子正文帖子正文帖子正文帖子正文帖子正文帖子正文帖子正文帖子正文帖子正文帖子正文帖子正文帖子正文帖子正文帖子正文帖子正文 +
+ + + +
+ + +
+
+ + +
diff --git a/src/app/forum/forum.component.scss b/src/app/forum/forum.component.scss index 5c5e28a..723e6b1 100644 --- a/src/app/forum/forum.component.scss +++ b/src/app/forum/forum.component.scss @@ -1,19 +1,69 @@ +//公告栏 .notice{ height: 300px; } +//公告正文边框 .notice-content{ height: 200px; border-style: solid; border-width: 3px; } +//公告正文 .notice-body{ max-height: 100px; } - +//公告底部 .notice-footer{ - position:absolute; top: 145px; bottom: 0; width: 100%; +} +//帖子正文 +.post{ + border-style: solid; + border-width: 3px; +} +//公告编辑信息 +.author{ + width:100px +} +//待审核帖子父边框 +.check{ + border-style: solid; + border-width: 3px; +} + +// 帖子标题 +.forum-title{ + z-index: 0; +} +//头像 +.headimg{ + height: 100px; + width: 100px; + z-index: 1; } + +//帖子内容 +.forum-content{ + border-style: solid; + border-width: 3px; + height: 300px; + max-height: 300px; +} + +//发帖人信息 +.forum-label{ + border-style: solid; + border-width: 3px; + width: 100px; + height: 30px; +} + +.forum-footer{ + border-style: solid; + border-width: 3px; + height: 100px; +} + diff --git a/src/assets/i18n/en-US.json b/src/assets/i18n/en-US.json index eaefd9c..15bbaf6 100644 --- a/src/assets/i18n/en-US.json +++ b/src/assets/i18n/en-US.json @@ -17,7 +17,14 @@ }, "forum": { "name": "forum", - "notice": "公告栏" + "notice": "notice", + "check": "check", + "sender": "sender", + "time": "time", + "active_date": "Active Date:From:{startDate} To {endDate}", + "active_score": "Active Score:{score}", + "approve": "approve", + "reject": "reject" }, "tip":{ "input": "please input ", diff --git a/src/assets/i18n/zh-CN.json b/src/assets/i18n/zh-CN.json index 4a1fd5e..ea06281 100644 --- a/src/assets/i18n/zh-CN.json +++ b/src/assets/i18n/zh-CN.json @@ -17,7 +17,14 @@ }, "forum": { "name": "论坛管理", - "notice": "公告栏" + "notice": "公告栏", + "check": "待审核帖子", + "sender": "公告管理员", + "time": "公告时间", + "active_date": "活动起止时间:{{startDate}}到{{endDate}}", + "active_score": "参与活动奖励信用分:{{score}}", + "approve": "通过", + "reject": "拒绝" }, "tip":{ "input": "请输入",