|
@@ -39,6 +39,7 @@ export default {
|
|
|
checkStatus: 0, // 0没有权限,1有权限
|
|
|
goodsStatus: 0, // 0未上架,1上架
|
|
|
sectionType: 2, // 2直播
|
|
|
+ vid: '', // 回放id
|
|
|
};
|
|
|
},
|
|
|
onShareAppMessage() {
|
|
@@ -50,7 +51,7 @@ export default {
|
|
|
// buyCourse 是否购买课程:1是 0否
|
|
|
let encode = encodeURIComponent(WEBVIEW_URL+'pages/live/index?token='+uni.getStorageSync('token')+'&userInfo='+JSON.stringify(this.userInfo)+'&channelId='
|
|
|
+item.liveUrl+'&gradeId='+0+'&courseId='+item.courseId+'&goodsId='+item.goodsId+'&orderGoodsId='+item.orderGoodsId+'§ionId='+sectionId+'&chapterId='
|
|
|
- +chapterId+'&moduleId='+moduleId+'&buyCourse='+item.buyCourse+'&ident='+uuid+'§ionType='+this.sectionType)
|
|
|
+ +chapterId+'&moduleId='+moduleId+'&buyCourse='+item.buyCourse+'&ident='+uuid+'§ionType='+this.sectionType+'&vid='+this.vid)
|
|
|
return {
|
|
|
title: '直播',
|
|
|
path: `/pages/webview/index?url=` + encode
|
|
@@ -112,6 +113,7 @@ export default {
|
|
|
this.goodsId = item.goodsId
|
|
|
this.goodsStatus = item.goodsStatus
|
|
|
this.sectionType = item.sectionType
|
|
|
+ this.vid = item.recordingUrl || ''
|
|
|
if (item.checkStatus == 1) { // 有权限
|
|
|
let moduleId = item.moduleId || 0
|
|
|
let chapterId = item.chapterId || 0
|
|
@@ -121,7 +123,7 @@ export default {
|
|
|
// buyCourse 是否购买课程:1是 0否
|
|
|
this.url = WEBVIEW_URL+'pages/live/index?token='+uni.getStorageSync('token')+'&userInfo='+JSON.stringify(this.userInfo)+'&channelId='
|
|
|
+item.channelId+'&gradeId='+0+'&courseId='+item.courseId+'&goodsId='+item.goodsId+'&orderGoodsId='+item.orderGoodsId+'§ionId='+sectionId
|
|
|
- +'&chapterId='+chapterId+'&moduleId='+moduleId+'&buyCourse='+item.buyCourse+'&ident='+uuid+'§ionType='+ this.sectionType
|
|
|
+ +'&chapterId='+chapterId+'&moduleId='+moduleId+'&buyCourse='+item.buyCourse+'&ident='+uuid+'§ionType='+ this.sectionType+'&vid='+this.vid
|
|
|
console.log('url:', this.url)
|
|
|
this.studyLog(item)
|
|
|
} else {
|