uni.navigateTo({
url: `/pages/course-file/course-video?title=${parentName}&url=${filePath}&courseId=${_this.courseId}&coursewareId=${coursewareId}&fileId=${fileId}&WHETFERLEARN=${WHETFERLEARN}&durtion=${durtion}&startStudyTime=${startStudyTime}`,
success() {
setTimeout(()=>{
uni.$emit("videoInitialize",{query: {
title:parentName,
url:filePath,
courseId:_this.courseId,
coursewareId:coursewareId,
fileId:fileId,
WHETFERLEARN:WHETFERLEARN,
durtion:durtion,
startStudyTime:startStudyTime
}})
})
}
})
//在subNvue中的mounted中调用的
uni.$on("videoInitialize",function(data){
console.log(data)
vm.src = data.query.url
vm.initial_time = Number(data.query.durtion)
vm.data = data.query
})
篮孓 (作者)
不好意思没有遇到过
2021-11-09 17:06
8***@qq.com
回复 篮孓: 我之前也没遇到过, 现在才遇到
2021-11-09 17:13