Browse Source

智慧教学

西昌分支
yxq 1 week ago
parent
commit
56e58af038
2 changed files with 12 additions and 2 deletions
  1. +5
    -1
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/SmartEducation/single.vue
  2. +7
    -1
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/practiceCourse/detail.vue

+ 5
- 1
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/SmartEducation/single.vue View File

@@ -100,7 +100,11 @@
if(!res)return if(!res)return
if(res.VideoPath){ if(res.VideoPath){
this.form.VideoPath = res.VideoPath this.form.VideoPath = res.VideoPath
this.path = this.API + '/learun/adms/annexes/wxdown?' + this.URL_QUERY(res.VideoPath, true)
let fileList = await this.convertToFormValue({type:'upload'},res.VideoPath)
if(fileList&&fileList.length){
this.path = fileList[0].path
}
// this.path = this.API + '/learun/adms/annexes/wxdown?' + this.URL_QUERY(res.VideoPath, true)
} }
this.detail = res this.detail = res
} }


+ 7
- 1
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/practiceCourse/detail.vue View File

@@ -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
}, },


Loading…
Cancel
Save