|
@@ -318,8 +318,8 @@
|
|
updateShowList(){
|
|
updateShowList(){
|
|
let show = this.show;
|
|
let show = this.show;
|
|
this.showList = this.list.filter( item=>{
|
|
this.showList = this.list.filter( item=>{
|
|
- if( show == 1) return item.percent<100
|
|
|
|
- if( show == 2) return item.percent>=100
|
|
|
|
|
|
+ if( show == 1) return !item.isFinish
|
|
|
|
+ if( show == 2) return !!item.isFinish
|
|
return false
|
|
return false
|
|
})
|
|
})
|
|
//
|
|
//
|
|
@@ -331,7 +331,7 @@
|
|
for( let i = 0; i< this.list.length;i++){
|
|
for( let i = 0; i< this.list.length;i++){
|
|
let item = this.list[i]
|
|
let item = this.list[i]
|
|
this.info.axs += (item.xs/10)
|
|
this.info.axs += (item.xs/10)
|
|
- if( item.percent >= 100){
|
|
|
|
|
|
+ if( item.isFinish ){
|
|
this.info.gxs += (item.xs/10)
|
|
this.info.gxs += (item.xs/10)
|
|
this.info.fcount++
|
|
this.info.fcount++
|
|
}
|
|
}
|
|
@@ -354,7 +354,7 @@
|
|
httpServer('course.GetMedia', {id:item.id}).then( ({data, code}) => {
|
|
httpServer('course.GetMedia', {id:item.id}).then( ({data, code}) => {
|
|
item.url = data
|
|
item.url = data
|
|
this.options.sources = [{src:item.url}];
|
|
this.options.sources = [{src:item.url}];
|
|
- console.log("position", item.position)
|
|
|
|
|
|
+ this.options.playbackRate = 2;
|
|
this.options.playtimes = item.position;
|
|
this.options.playtimes = item.position;
|
|
this.mediaDialog = true;
|
|
this.mediaDialog = true;
|
|
});
|
|
});
|