|
@@ -41,7 +41,13 @@ |
|
|
async init(type,id){ |
|
|
async init(type,id){ |
|
|
let res = await this.HTTP_GET('learun/adms/smartEducation/smartSelfCourseInfo',id) |
|
|
let res = await this.HTTP_GET('learun/adms/smartEducation/smartSelfCourseInfo',id) |
|
|
if(!res)return |
|
|
if(!res)return |
|
|
if(res.VideoPath)res.VideoPath = this.API + '/learun/adms/annexes/wxdown?' + this.URL_QUERY(res.VideoPath, true) |
|
|
|
|
|
|
|
|
if(res.VideoPath){ |
|
|
|
|
|
let fileList = await this.convertToFormValue({type:'upload'},res.VideoPath) |
|
|
|
|
|
if(fileList&&fileList.length){ |
|
|
|
|
|
res.VideoPath = fileList[0].path |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
// res.VideoPath = this.API + '/learun/adms/annexes/wxdown?' + this.URL_QUERY(res.VideoPath, true) |
|
|
this.form = res |
|
|
this.form = res |
|
|
this.ready = true |
|
|
this.ready = true |
|
|
}, |
|
|
}, |
|
|