提交 abb0e52e authored 作者: 何喜's avatar 何喜

修改视频类型

上级 97321157
...@@ -102,7 +102,7 @@ const getCurrentChapterDetail = (vid, videoType,callback) => { ...@@ -102,7 +102,7 @@ const getCurrentChapterDetail = (vid, videoType,callback) => {
let json = { let json = {
video: { video: {
src: videoType == 3 ? res.data.video &&res.data.video.LD : res.data.video[0] && res.data.video[0].playurl, src: videoType == 3 ? res.data.video &&res.data.video.LD : res.data.video[0] && res.data.video[0].playurl,
spareSrc: 'https://pd4t7ae3m.bkt.clouddn.com/test.mp4' // 正式环境时,需要将 contentVideo 中 spareSrc 改成 src spareSrc: '' // 正式环境时,需要将 contentVideo 中 spareSrc 改成 src
}, },
audio: { audio: {
src: videoType == 3 ? res.data.video &&res.data.video.SQ : res.data.audio[0].url, src: videoType == 3 ? res.data.video &&res.data.video.SQ : res.data.audio[0].url,
......
...@@ -224,7 +224,7 @@ Page({ ...@@ -224,7 +224,7 @@ Page({
/* 如果未选课,不能查看课程内容 */ /* 如果未选课,不能查看课程内容 */
if (!this.data.headerInfo.isStart) { wx.showToast({ title: '先选课,才能看', icon: 'none', duration: 1500 }); return ; } if (!this.data.headerInfo.isStart) { wx.showToast({ title: '先选课,才能看', icon: 'none', duration: 1500 }); return ; }
let _data = e.target.dataset let _data = e.target.dataset
let cid = _data.cid, sid = _data.sid, vid = _data.vid,video_type = _data.videoType; let cid = _data.cid, sid = _data.sid, vid = _data.vid,video_type = _data.type;
if (!_data.hasva) { if (!_data.hasva) {
/* 如果存在 - 课后习题类型, type:3、work_type:1 */ /* 如果存在 - 课后习题类型, type:3、work_type:1 */
let i1 = _data.index, i2 = _data.index1 let i1 = _data.index, i2 = _data.index1
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论