完善头像显示

change
panqihua 5 years ago
parent da051ca8aa
commit 034d879373
  1. 12
      src/app/forum/forum/forum.component.html
  2. 5
      src/app/forum/forum/forum.component.ts
  3. 2
      src/assets/i18n/en-US.json
  4. 2
      src/assets/i18n/zh-CN.json

@ -119,7 +119,7 @@
<!-- 发件人信息-->
<div class="position-absolute sender">
<!-- 发帖人头像-->
<img [src]="getForum().info.headImg" alt="headimg" class="headimg mb-3"/>
<img [src]="getHeadImg(getForum().info.headImg)" alt="headimg" class="headimg mb-3"/>
<!-- 发帖人-->
<div class="forum-label border-info mb-3 text-center">
{{getForum().username}}
@ -141,7 +141,7 @@
<!-- 帖子底部-->
<div class="forum-footer border-info p-3 mb-3">
<h3
class="text-center">{{'forum.deadline'|translate:{date: getActive().registrationDeadline|date:dateFormat} }}</h3>
class="text-center">{{'forum.deadline'|translate:{endDate: (getActive().registrationDeadline|date:dateFormat)} }}</h3>
<h3 class="text-center">{{ 'forum.active_date' | translate:{
startDate: getActive().activeStartTime|date:dateFormat,
endDate: getActive().activeEndTime|date:dateFormat
@ -163,7 +163,7 @@
<div class="text-center">{{'forum.plaintiff'|translate}}</div>
<!-- 头像-->
<div class="d-flex justify-content-center mb-3 m-headimg">
<img [src]="getForum().info.headImg" alt="headimg" class="headimg">
<img [src]="getHeadImg(getForum().info.headImg)" alt="headimg" class="headimg">
</div>
<div class="text-center border-info mb-3 l-label">{{getForum().username}}</div>
<div class="text-center border-info l-label">{{getForum().info.creditScore}}</div>
@ -174,7 +174,7 @@
<div class="text-center">{{'forum.defendant'|translate}}</div>
<div class="d-flex justify-content-center mb-3 m-headimg">
<!-- 头像-->
<img [src]="getComplaint().info.headImg" alt="headimg" class="headimg">
<img [src]="getHeadImg(getComplaint().info.headImg)" alt="headimg" class="headimg">
</div>
<div class="text-center border-info mb-3 l-label">{{getComplaint().complain}}</div>
<div class="text-center border-info l-label">{{getComplaint().info.creditScore}}</div>
@ -202,7 +202,7 @@
<!-- 发件人信息-->
<div class="position-absolute sender">
<!-- 发帖人头像-->
<img [src]="getForum().info.headImg" alt="headimg" class="headimg mb-3"/>
<img [src]="getHeadImg(getForum().info.headImg)" alt="headimg" class="headimg mb-3"/>
<!-- 发帖人-->
<div class="forum-label border-info mb-3 text-center">
{{getForum().username}}
@ -228,7 +228,7 @@
<!-- 发件人信息-->
<div class="position-absolute sender">
<!-- 发帖人头像-->
<img [src]="getForum().info.headImg" alt="headimg" class="headimg mb-3"/>
<img [src]="getHeadImg(getForum().info.headImg)" alt="headimg" class="headimg mb-3"/>
<!-- 发帖人-->
<div class="forum-label border-info mb-3 text-center">
{{getForum().username}}

@ -9,6 +9,7 @@ import {NoticeService} from '../notice/notice.service';
import {TranslateService} from '@ngx-translate/core';
import {ForumNewResponse} from '../../interface/Response';
import {AbstractRoute} from '../../AbstractRoute';
import {environment} from '../../../environments/environment';
/**
*
@ -91,6 +92,10 @@ export class ForumComponent implements OnInit, MessageInterface {
});
}
getHeadImg(url) {
return environment.apiServer + url;
}
/**
*
*/

@ -33,7 +33,7 @@
"defendant": "defendant",
"notice_title": "notice title",
"notice_content": "notice content",
"deadline": "报名截止日期:{{date}}"
"deadline": "报名截止日期:{{endDate}}"
},
"visitor": {
"name": "访客预约管理",

@ -33,7 +33,7 @@
"defendant": "被投诉人",
"notice_title": "公告标题",
"notice_content": "公告内容",
"deadline": "报名截止日期:{{date}}"
"deadline": "报名截止日期:{{endDate}}"
},
"visitor": {
"name": "访客预约管理",

Loading…
Cancel
Save