|
|
|
@ -1,10 +1,9 @@ |
|
|
|
|
<!--公告轮播--> |
|
|
|
|
<ng-container *ngIf="notices;else load_notice_err"> |
|
|
|
|
111 |
|
|
|
|
<h1 *ngIf="notices.length==0;else notice_temp" |
|
|
|
|
class="text-center col-12 m-3">{{prefix('notice.zero')|translate}}</h1> |
|
|
|
|
<ng-template #notice_temp> |
|
|
|
|
<div id="carouselExampleControls" class="carousel slide bg-info m-3" data-ride="carousel"> |
|
|
|
|
<div id="carouselExampleControls" class="carousel slide bg-info m-3 bg-white" data-ride="carousel"> |
|
|
|
|
<div class="carousel-inner"> |
|
|
|
|
<ng-container *ngFor="let notice of notices;first as isFirst"> |
|
|
|
|
<div class="carousel-item" [class.active]="isFirst"> |
|
|
|
@ -16,7 +15,7 @@ |
|
|
|
|
<button [title]="this.prefix('delete')|translate" (click)="deleteNotice(notice.id)" |
|
|
|
|
class="position-absolute delete_notice btn btn-outline-danger"> |
|
|
|
|
<svg class="icon" viewBox="0 0 1024 1024" |
|
|
|
|
xmlns="http://www.w3.org/2000/svg" width="50" height="50"> |
|
|
|
|
xmlns="http://www.w3.org/2000/svg" width="20" height="20"> |
|
|
|
|
<path |
|
|
|
|
d="M810.666667 273.493333L750.506667 213.333333 512 451.84 273.493333 213.333333 213.333333 273.493333 451.84 512 213.333333 750.506667 273.493333 810.666667 512 572.16 750.506667 810.666667 810.666667 750.506667 572.16 512z" |
|
|
|
|
> |
|
|
|
@ -67,7 +66,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--审核贴--> |
|
|
|
|
<div class="row border-warning check m-3"> |
|
|
|
|
<div class="row border-warning check m-3 border-circle bg-white"> |
|
|
|
|
<!-- 审核帖标识--> |
|
|
|
|
<h1 class="text-info col-12 text-center">{{ 'forum.check' | translate }}</h1> |
|
|
|
|
|
|
|
|
@ -76,17 +75,17 @@ |
|
|
|
|
class="text-center col-12 m-3">{{prefix('posts.zero')|translate}}</h1> |
|
|
|
|
|
|
|
|
|
<ng-template #post_temp> |
|
|
|
|
<div class="col-3"> |
|
|
|
|
<div class="col-3 d-flex flex-column justify-content-between align-content-center"> |
|
|
|
|
|
|
|
|
|
<!--帖子列表--> |
|
|
|
|
<ul class="list-group"> |
|
|
|
|
<ul class="list-group flex-grow-1" style="background: #eee;"> |
|
|
|
|
<!-- 帖子列表--> |
|
|
|
|
<li class="list-group-item" (click)="currentIndex=i" [class.active]="currentIndex===i" |
|
|
|
|
<li class="list-group-item mb-2" (click)="currentIndex=i" [class.active]="currentIndex===i" |
|
|
|
|
*ngFor="let post of posts.forumList.list;index as i">{{post.title}}</li> |
|
|
|
|
</ul> |
|
|
|
|
|
|
|
|
|
<!-- 分页按钮--> |
|
|
|
|
<ul class="pagination ml-5 mt-3"> |
|
|
|
|
<ul class="pagination m-auto pb-4"> |
|
|
|
|
<li class="page-item" [class.disabled]="posts.forumList.currentPage-1===0"><a class="page-link btn" |
|
|
|
|
(click)="getAllPosts(posts.forumList.currentPage-1)">{{'button.prev_page'|translate}}</a> |
|
|
|
|
</li> |
|
|
|
@ -117,38 +116,43 @@ |
|
|
|
|
|
|
|
|
|
<!-- 活动贴--> |
|
|
|
|
<ng-container *ngSwitchCase="activeType"> |
|
|
|
|
<div class="row"> |
|
|
|
|
<!-- 标题--> |
|
|
|
|
<h1 class="text-info col-12 text-center forum-title">{{getForum().title}}</h1> |
|
|
|
|
</div> |
|
|
|
|
<div class="row justify-content-around flex-nowrap mb-3"> |
|
|
|
|
<div class="col-3"> |
|
|
|
|
<!-- 发件人信息--> |
|
|
|
|
<div class="position-absolute sender"> |
|
|
|
|
<div class="card"> |
|
|
|
|
<!-- 发帖人头像--> |
|
|
|
|
<img [src]="getHeadImg(getForum().info.headImg)" alt="headimg" class="headimg mb-3"/> |
|
|
|
|
<img [src]="getHeadImg(getForum().info.headImg)" class="img-responsive card-img-top" alt="headimg"> |
|
|
|
|
<ul class="list-group list-group-flush"> |
|
|
|
|
<!-- 发帖人--> |
|
|
|
|
<div class="forum-label border-info mb-3 text-center"> |
|
|
|
|
{{getForum().username}} |
|
|
|
|
</div> |
|
|
|
|
<li class="list-group-item">昵称:{{getForum().username}}</li> |
|
|
|
|
<!--信用分--> |
|
|
|
|
<div class="forum-label border-info mb-3 text-center"> |
|
|
|
|
{{getForum().info.creditScore}} |
|
|
|
|
<li class="list-group-item">信用分:{{getForum().info.creditScore}}</li> |
|
|
|
|
</ul> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<!-- 帖子框架--> |
|
|
|
|
<div> |
|
|
|
|
<!-- 标题--> |
|
|
|
|
<h1 class="text-info col-12 text-center mb-3 forum-title">{{getForum().title}}</h1> |
|
|
|
|
<div class="col-9 flex-column justify-content-between"> |
|
|
|
|
|
|
|
|
|
<!-- 帖子正文--> |
|
|
|
|
<div class="forum-content border-info overflow-auto col-9 offset-2 mb-3"> |
|
|
|
|
<div class="forum-content border-info overflow-auto d-flxe flex-column justify-content-between"> |
|
|
|
|
<div class="flex-grow-1"> |
|
|
|
|
{{getContent().content}} |
|
|
|
|
</div> |
|
|
|
|
<!-- 帖子底部--> |
|
|
|
|
<div class="forum-footer border-info p-3 mb-3"> |
|
|
|
|
<h3 |
|
|
|
|
class="text-center">{{'forum.deadline'|translate:{endDate: (getActive().registrationDeadline|date:dateFormat)} }}</h3> |
|
|
|
|
<h3 class="text-center">{{ 'forum.active_date' | translate:{ |
|
|
|
|
<div class="forum-footer border-info text-right p-3 mb-3"> |
|
|
|
|
<div> |
|
|
|
|
{{'forum.deadline'|translate:{endDate: (getActive().registrationDeadline|date:dateFormat)} }}</div> |
|
|
|
|
<div>{{ 'forum.active_date' | translate:{ |
|
|
|
|
startDate: getActive().activeStartTime|date:dateFormat, |
|
|
|
|
endDate: getActive().activeEndTime|date:dateFormat |
|
|
|
|
} }}</h3> |
|
|
|
|
<h3 |
|
|
|
|
class="text-center">{{ 'forum.active_score' | translate:{score: getActive().activeScore} }}</h3> |
|
|
|
|
} }}</div> |
|
|
|
|
<div>{{ 'forum.active_score' | translate:{score: getActive().activeScore} }}</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</ng-container> |
|
|
|
@ -249,21 +253,23 @@ |
|
|
|
|
<div class="forum-content border-info overflow-auto col-9 offset-2 mb-3"> |
|
|
|
|
{{getContent().content}} |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<!-- 帖子底部--> |
|
|
|
|
<div class="forum-footer border-info p-3 mb-3"> |
|
|
|
|
<h3 |
|
|
|
|
class="text-center">{{ 'forum.active_score' | translate:{score: getScore().activeScore} }}</h3> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</ng-container> |
|
|
|
|
|
|
|
|
|
</ng-container> |
|
|
|
|
<!--帖子审核按钮--> |
|
|
|
|
<div class="row"> |
|
|
|
|
<div class="col-12 text-center"> |
|
|
|
|
<button class="btn btn-info col-2 mr-3" (click)="checkPost(okType)">{{ 'forum.approve' | translate }}</button> |
|
|
|
|
<button class="btn btn-danger col-2" (click)="checkPost(failType)">{{ 'forum.reject' | translate }}</button> |
|
|
|
|
<button class="btn btn-info col-2 mr-3 btn-border" (click)="checkPost(okType)">{{ 'forum.approve' | translate }}</button> |
|
|
|
|
<button class="btn btn-danger col-2 btn-border" (click)="checkPost(failType)">{{ 'forum.reject' | translate }}</button> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|