|
@@ -42,21 +42,21 @@ export default {
|
|
|
vid: '', // 回放id
|
|
|
};
|
|
|
},
|
|
|
- onShareAppMessage() {
|
|
|
- let item = this.paramObj
|
|
|
- let moduleId = item.moduleId || 0
|
|
|
- let chapterId = item.chapterId || 0
|
|
|
- let sectionId = item.sectionId
|
|
|
- let uuid = new Date().valueOf() + ""
|
|
|
- // 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+'&vid='+this.vid)
|
|
|
- return {
|
|
|
- title: '直播',
|
|
|
- path: `/pages/webview/index?url=` + encode
|
|
|
- };
|
|
|
- },
|
|
|
+ // onShareAppMessage() {
|
|
|
+ // let item = this.paramObj
|
|
|
+ // let moduleId = item.moduleId || 0
|
|
|
+ // let chapterId = item.chapterId || 0
|
|
|
+ // let sectionId = item.sectionId
|
|
|
+ // let uuid = new Date().valueOf() + ""
|
|
|
+ // // buyCourse 是否购买课程:1是 0否
|
|
|
+ // let encode = encodeURIComponent(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+'&vid='+this.vid)
|
|
|
+ // return {
|
|
|
+ // title: '直播',
|
|
|
+ // path: `/pages/webview/index?url=` + encode
|
|
|
+ // };
|
|
|
+ // },
|
|
|
onLoad(option) {
|
|
|
console.log('--option-', option)
|
|
|
this.options = option
|
|
@@ -87,6 +87,7 @@ export default {
|
|
|
}
|
|
|
this.paramObj = paramObj
|
|
|
this.sectionType = this.paramObj.sectionType || 2 // 默认直播,回放的加了sectionType=3
|
|
|
+ this.vid = this.paramObj.vid || ''
|
|
|
console.log('paramObj', paramObj)
|
|
|
this.studyLog(paramObj)
|
|
|
}
|