mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-18 07:16:44 +08:00
This commit is contained in:
@@ -290,6 +290,7 @@ import courseImage from "@/components/Course/courseImage.vue";
|
||||
import studyUtil from '@/utils/study.js';
|
||||
import {encrypt} from '@/utils/jsencrypt.js';
|
||||
import cookies from 'vue-cookies'
|
||||
import { log } from 'util';
|
||||
export default {
|
||||
name: "micro",
|
||||
components: {
|
||||
@@ -311,7 +312,9 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
curCFile:{},
|
||||
curCFile:{
|
||||
converStatus:4,
|
||||
},
|
||||
sex:null,
|
||||
playerBoxShow:false,
|
||||
userAvatarText,
|
||||
@@ -444,16 +447,22 @@ export default {
|
||||
|
||||
} else if (con.contentType == 40) {
|
||||
//需要读取pdf的路径
|
||||
if($this.coursewareInfo.content.content!='' && $this.coursewareInfo.content.content.indexOf('.pdf')==-1){
|
||||
// if($this.coursewareInfo.content.content!='' && $this.coursewareInfo.content.content.indexOf('.pdf')==-1){
|
||||
apiCourseFile.detail($this.coursewareInfo.content.contentRefId).then(cfrs=>{
|
||||
if(cfrs.status==200){
|
||||
this.curCFile = cfrs.result;
|
||||
// this.curCFile = cfrs.result;
|
||||
$this.coursewareInfo.content.content=cfrs.result.previewFilePath;
|
||||
if(cfrs.result.previewFilePath == '' && cfrs.result.filePath.indexOf('pdf') > -1) {
|
||||
$this.coursewareInfo.content.content = cfrs.result.filePath;
|
||||
} else {
|
||||
$this.curCFile=rs.result;
|
||||
// this.converStatus = rs.result.converStatus;
|
||||
}
|
||||
}else{
|
||||
$this.$message.error('加载pdf课件文件失败');
|
||||
}
|
||||
});
|
||||
}
|
||||
// }
|
||||
//let url = this.fileBaseUrl + r.content;
|
||||
}else if(con.contentType ==52){
|
||||
if(con.content.startsWith('\{')){
|
||||
|
||||
Reference in New Issue
Block a user