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 }}