Commit c76928cd by Sweet Zhang

消息详情修改

parent 15737d2e
...@@ -136,7 +136,7 @@ export class CourseDetailComponent implements OnInit,OnDestroy { ...@@ -136,7 +136,7 @@ export class CourseDetailComponent implements OnInit,OnDestroy {
fileId: this.fileId, fileId: this.fileId,
} }
if(type===2){ if(type===2){
param['playbackStatus'] = 2; param['playbackStatus'] = param['totalTime'] == param['viewTime'] ? 1 : 2;
param['totalTime'] = param['viewTime'] = 0; param['totalTime'] = param['viewTime'] = 0;
}else{ }else{
param['totalTime']=this.video.nativeElement.duration; param['totalTime']=this.video.nativeElement.duration;
......
...@@ -51,7 +51,7 @@ export class MoreFeaturesComponent implements OnInit,OnDestroy { ...@@ -51,7 +51,7 @@ export class MoreFeaturesComponent implements OnInit,OnDestroy {
,{ ,{
key:'05',title:'银盾学院',subItems:[ key:'05',title:'银盾学院',subItems:[
{no:23,name:'保险ABC',icon:'insuranceABC',link:'',path:`https://${window.location.host}/issue`,isOpen:true}, {no:23,name:'保险ABC',icon:'insuranceABC',link:'',path:`https://${window.location.host}/issue`,isOpen:true},
{no:24,name:'岗前训',icon:'preJobTraining',link:'/preJobTraining ',path:'',isOpen:true}, {no:24,name:'岗前训',icon:'preJobTraining',link:'/preJobTraining',path:'',isOpen:true},
{no:25,name:'新人训',icon:'newTraining',link:'/newTraining',path:'',isOpen:true}, {no:25,name:'新人训',icon:'newTraining',link:'/newTraining',path:'',isOpen:true},
{no:27,name:'CFFP初级训',icon:'cffpTraining',link:'/cffpElementaryTraining',path:'',isOpen:true}, {no:27,name:'CFFP初级训',icon:'cffpTraining',link:'/cffpElementaryTraining',path:'',isOpen:true},
{no:26,name:'提升训',icon:'promotionTraining',link:'/advanceTraining',path:'',isOpen:true}, {no:26,name:'提升训',icon:'promotionTraining',link:'/advanceTraining',path:'',isOpen:true},
......
...@@ -11,12 +11,14 @@ ...@@ -11,12 +11,14 @@
<img src="assets/images/icons/noticeTip.png" alt=""> <img src="assets/images/icons/noticeTip.png" alt="">
</div> </div>
<div class="newsSummary"> <div class="newsSummary">
<div>
<h4>{{item.title}}</h4> <h4>{{item.title}}</h4>
<p>{{item.context}}</p> <div><span>{{item.createdAt}}</span><span class="redDots" *ngIf="item.isRead=='0'"></span></div>
</div> </div>
<div class="content"> <div>
<div><span>{{item.createdAt | date:'yyyy-MM-dd'}}</span><span class="redDots" *ngIf="item.isRead=='0'"></span></div> <p>{{item.context}}</p>
<span class="iconfont icon-ar-r"></span> <span class="iconfont icon-ar-r"></span>
</div>
</div> </div>
</div> </div>
</div> </div>
\ No newline at end of file
...@@ -32,20 +32,13 @@ ...@@ -32,20 +32,13 @@
} }
.newsSummary{ .newsSummary{
width: 0; width: 0;
flex: 0 0 85%; flex: 0 0 calc(100% - 41px);
p{ p{
width: 150px; width: 85%;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
} }
}
.content{
display: flex;
flex-direction: column;
align-items: end;
white-space: nowrap;
width: 0;
.redDots{ .redDots{
display: inline-block; display: inline-block;
width: 8px; width: 8px;
...@@ -54,6 +47,11 @@ ...@@ -54,6 +47,11 @@
background-color: #F24949; background-color: #F24949;
margin-left: 15px; margin-left: 15px;
} }
>div{
display: flex;
justify-content: space-between;
align-items: center;
}
} }
} }
.clearMessage{ .clearMessage{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment