|
|
@ -212,21 +212,21 @@ export default {
|
|
|
|
this.show.PDFShow = data.resourcesInfoType == 3?true:false;
|
|
|
|
this.show.PDFShow = data.resourcesInfoType == 3?true:false;
|
|
|
|
this.show.imgShow = data.resourcesInfoType == 5?true:false;
|
|
|
|
this.show.imgShow = data.resourcesInfoType == 5?true:false;
|
|
|
|
if(data.resourcesInfoType == 1){
|
|
|
|
if(data.resourcesInfoType == 1){
|
|
|
|
this.player.src({src:this.$isHttp(data.resourcesInfoContent),type:data.resourcesInfoContent.indexOf(".mp4")>=0?'video/mp4':'video/webm'});
|
|
|
|
this.player.src({src:this.$processUrl(data.resourcesInfoContent),type:data.resourcesInfoContent.indexOf(".mp4")>=0?'video/mp4':'video/webm'});
|
|
|
|
this.player.play(); //播放
|
|
|
|
this.player.play(); //播放
|
|
|
|
}else if(data.resourcesInfoType == 2){
|
|
|
|
}else if(data.resourcesInfoType == 2){
|
|
|
|
if(data.resourcesInfoContent.indexOf(".pdf") >= 0 || data.resourcesInfoContent.indexOf(".PDF") >= 0 ){
|
|
|
|
if(data.resourcesInfoContent.indexOf(".pdf") >= 0 || data.resourcesInfoContent.indexOf(".PDF") >= 0 ){
|
|
|
|
this.show.PDFUrl = this.$isHttp(data.resourcesInfoContent);
|
|
|
|
this.show.PDFUrl = this.$processUrl(data.resourcesInfoContent);
|
|
|
|
this.show.fileShow = false;
|
|
|
|
this.show.fileShow = false;
|
|
|
|
this.show.PDFShow = true;
|
|
|
|
this.show.PDFShow = true;
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
this.show.fileUrl = this.$viewUrl + this.$isHttp(data.resourcesInfoContent);
|
|
|
|
this.show.fileUrl = this.$viewUrl + this.$processUrl(data.resourcesInfoContent);
|
|
|
|
|
|
|
|
|
|
|
|
this.show.fileShow = true;
|
|
|
|
this.show.fileShow = true;
|
|
|
|
this.show.PDFShow = false;
|
|
|
|
this.show.PDFShow = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}else if(data.resourcesInfoType == 3){
|
|
|
|
}else if(data.resourcesInfoType == 3){
|
|
|
|
this.show.PDFUrl = this.$isHttp(data.resourcesInfoContent);
|
|
|
|
this.show.PDFUrl = this.$processUrl(data.resourcesInfoContent);
|
|
|
|
}else if(data.resourcesInfoType == 5){
|
|
|
|
}else if(data.resourcesInfoType == 5){
|
|
|
|
this.show.imgUrl = data.resourcesInfoContent;
|
|
|
|
this.show.imgUrl = data.resourcesInfoContent;
|
|
|
|
this.show.imgTitle = data.resourcesInfoName;
|
|
|
|
this.show.imgTitle = data.resourcesInfoName;
|
|
|
|