From bea1f26c0affd7dbc7020054f8b9c1fc2f6d9aba Mon Sep 17 00:00:00 2001 From: panqihua <1029559041@qq.com> Date: Sun, 19 Apr 2020 17:05:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BF=A1=E7=94=A8=E5=88=86?= =?UTF-8?q?=E6=8E=92=E8=A1=8C=E6=A6=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/account/score/score.component.html | 29 +++++++++++++++++++++- src/app/account/score/score.component.ts | 8 ++++-- src/app/forum/notice/notice.component.html | 2 +- src/assets/i18n/en-US.json | 5 +++- src/assets/i18n/zh-CN.json | 5 +++- 5 files changed, 43 insertions(+), 6 deletions(-) diff --git a/src/app/account/score/score.component.html b/src/app/account/score/score.component.html index 5ec5134..cd6eba1 100644 --- a/src/app/account/score/score.component.html +++ b/src/app/account/score/score.component.html @@ -2,7 +2,7 @@
-
+
{{ prefix('username') | translate }}
@@ -13,6 +13,33 @@ + +
+ {{ prefix('orderScore') | translate:{order: scoreFrom.get('desc').value ? (prefix('desc')|translate) : (prefix('asc')|translate)} }} +
+
+
+ +
+
+ +
+
+ {{prefix('desc')|translate}} +
+
+ +
+
+ {{prefix('asc')|translate}} +
+
+ +
+
+
+
diff --git a/src/app/account/score/score.component.ts b/src/app/account/score/score.component.ts index 5373df1..33352ef 100644 --- a/src/app/account/score/score.component.ts +++ b/src/app/account/score/score.component.ts @@ -15,9 +15,13 @@ export class ScoreComponent extends Commons implements OnInit, MessageInterface scoreFrom = this.fb.group({ // 用户名 - username: this.fb.control('', [Validators.required]), + username: this.fb.control(''), // 是否模糊查询 - like: this.fb.control(true, [Validators.required]), + like: this.fb.control(true), + // 是否按照信用分排行 + orderScore: this.fb.control(true), + // 是否降序 + desc: this.fb.control(true) }); editForm = this.fb.group({ diff --git a/src/app/forum/notice/notice.component.html b/src/app/forum/notice/notice.component.html index e832937..f2cf5bd 100644 --- a/src/app/forum/notice/notice.component.html +++ b/src/app/forum/notice/notice.component.html @@ -17,7 +17,7 @@
- {{ 'forum.notice_title' | translate }} + {{ 'forum.notice_content' | translate }}