Commit bb65fed9 by Sweet Zhang

视频播放优化

parent daa066f6
<video [src]="videoSrc" controls="controls" width="100%">
<video [src]="videoSrc" controls="controls" width="100%" preload="auto" x5-playsinline="" playsinline="" webkit-playsinline="" >
您的浏览器不支持 video 标签。
</video>
\ No newline at end of file
......@@ -74,7 +74,6 @@
.salseContent{
width: 100%;
padding: 5px 2.5%;
display: flex;
div{
......@@ -115,6 +114,7 @@
overflow: hidden;
height: 32px;
line-height: 32px;
font-size: 12px;
li.icon .iconfont{
position: absolute;
}
......
......@@ -52,7 +52,7 @@
<ul>
<li *ngFor="let taskItem of taskList" >
<div class="content_wrapper">
<div class="content_card" (click)="editeTask(taskItem,'edit')">
<div class="content_card" (click)="editeTask(taskItem,'edit')" [ngStyle]="setBackground(taskItem)">
<span>{{taskItem.taskTimeFrom}} - {{taskItem.taskTimeEnd}}</span>
<div class="todo_title">
<span *ngIf="taskItem.taskImportantTag==1">(重要)</span>
......
......@@ -98,29 +98,29 @@ ul,ol{
position: relative;
.content_card{
background: #fff;
color: #fff;
padding: 8px 12px;
border-radius: 10px;
position: relative;
z-index: 10;
padding-left: 20px;
.todo_title{
font-size: 16px;
color: #000;
font-weight: bold;
margin: 3px auto;
}
.notice{
color: #a0a0a0;
word-break:break-all;
}
}
.red{
width: 90%;
width: 5px;
height: 79%;
background-color: red;
position: absolute;
top: 12%;
margin-left: -1.5%;
z-index: 9;
margin-left: 8px;
z-index: 10;
border-radius: 8px;
}
.iconfont{
......@@ -129,7 +129,7 @@ ul,ol{
z-index: 20;
font-size: 20px;
top: 32px;
color: #a0a0a0;
color: #666;
}
}
}
......
......@@ -79,6 +79,24 @@ export class TodoListComponent implements OnInit {
this.queryScheduleTrackList();
}
setBackground(item){
let bcConfig = {}
if(item.taskType == 1){
bcConfig = {
'background-color': '#ff908d'
}
}else if(item.taskType == 2){
bcConfig = {
'background-color': '#ffc28d'
}
}else if(item.taskType == 3){
bcConfig = {
'background-color': '#72c9cd'
}
}
return bcConfig;
}
goBack(){
// history.go(-1)
//离开页面清除上次缓存的时间
......
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