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 标签。
</video> </video>
\ No newline at end of file
...@@ -74,7 +74,6 @@ ...@@ -74,7 +74,6 @@
.salseContent{ .salseContent{
width: 100%; width: 100%;
padding: 5px 2.5%; padding: 5px 2.5%;
display: flex; display: flex;
div{ div{
...@@ -115,6 +114,7 @@ ...@@ -115,6 +114,7 @@
overflow: hidden; overflow: hidden;
height: 32px; height: 32px;
line-height: 32px; line-height: 32px;
font-size: 12px;
li.icon .iconfont{ li.icon .iconfont{
position: absolute; position: absolute;
} }
......
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
<ul> <ul>
<li *ngFor="let taskItem of taskList" > <li *ngFor="let taskItem of taskList" >
<div class="content_wrapper"> <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> <span>{{taskItem.taskTimeFrom}} - {{taskItem.taskTimeEnd}}</span>
<div class="todo_title"> <div class="todo_title">
<span *ngIf="taskItem.taskImportantTag==1">(重要)</span> <span *ngIf="taskItem.taskImportantTag==1">(重要)</span>
......
...@@ -98,29 +98,29 @@ ul,ol{ ...@@ -98,29 +98,29 @@ ul,ol{
position: relative; position: relative;
.content_card{ .content_card{
background: #fff; background: #fff;
color: #fff;
padding: 8px 12px; padding: 8px 12px;
border-radius: 10px; border-radius: 10px;
position: relative; position: relative;
z-index: 10; z-index: 10;
padding-left: 20px;
.todo_title{ .todo_title{
font-size: 16px; font-size: 16px;
color: #000;
font-weight: bold; font-weight: bold;
margin: 3px auto; margin: 3px auto;
} }
.notice{ .notice{
color: #a0a0a0;
word-break:break-all; word-break:break-all;
} }
} }
.red{ .red{
width: 90%; width: 5px;
height: 79%; height: 79%;
background-color: red; background-color: red;
position: absolute; position: absolute;
top: 12%; top: 12%;
margin-left: -1.5%; margin-left: 8px;
z-index: 9; z-index: 10;
border-radius: 8px; border-radius: 8px;
} }
.iconfont{ .iconfont{
...@@ -129,7 +129,7 @@ ul,ol{ ...@@ -129,7 +129,7 @@ ul,ol{
z-index: 20; z-index: 20;
font-size: 20px; font-size: 20px;
top: 32px; top: 32px;
color: #a0a0a0; color: #666;
} }
} }
} }
......
...@@ -79,6 +79,24 @@ export class TodoListComponent implements OnInit { ...@@ -79,6 +79,24 @@ export class TodoListComponent implements OnInit {
this.queryScheduleTrackList(); 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(){ goBack(){
// history.go(-1) // 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