|
@@ -81,7 +81,7 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import { mapGetters } from 'vuex';
|
|
import { mapGetters } from 'vuex';
|
|
-import {WEBVIEW_URL} from '@/common/request.js'
|
|
|
|
|
|
+import config from '@/common/config'
|
|
export default {
|
|
export default {
|
|
name: 'courseSection',
|
|
name: 'courseSection',
|
|
props: {
|
|
props: {
|
|
@@ -423,7 +423,7 @@ export default {
|
|
let sectionId = this.menuItem.sectionId || this.menuItem.menuId;
|
|
let sectionId = this.menuItem.sectionId || this.menuItem.menuId;
|
|
let uuid = new Date().valueOf() + ""
|
|
let uuid = new Date().valueOf() + ""
|
|
// buyCourse 是否购买课程:1是 0否,type=vod是回放
|
|
// buyCourse 是否购买课程:1是 0否,type=vod是回放
|
|
- let encode = encodeURIComponent(WEBVIEW_URL+'pages/live/index?token='+uni.getStorageSync('token')+'&userInfo='+JSON.stringify(this.userInfo)+
|
|
|
|
|
|
+ let encode = encodeURIComponent(config.WEBVIEW_URL+'pages/live/index?token='+uni.getStorageSync('token')+'&userInfo='+JSON.stringify(this.userInfo)+
|
|
'&channelId='+this.menuItem.liveUrl+'&gradeId='+this.gradeId+'&courseId='+this.courseId+'&goodsId='+this.goodsId+'&orderGoodsId='+this.orderGoodsId+
|
|
'&channelId='+this.menuItem.liveUrl+'&gradeId='+this.gradeId+'&courseId='+this.courseId+'&goodsId='+this.goodsId+'&orderGoodsId='+this.orderGoodsId+
|
|
'§ionId='+sectionId+'&chapterId='+chapterId+'&moduleId='+moduleId+'&buyCourse=1'+'&ident='+uuid+'§ionType=3'+'&vid='+this.menuItem.recordingUrl)
|
|
'§ionId='+sectionId+'&chapterId='+chapterId+'&moduleId='+moduleId+'&buyCourse=1'+'&ident='+uuid+'§ionType=3'+'&vid='+this.menuItem.recordingUrl)
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
@@ -520,7 +520,7 @@ export default {
|
|
let sectionId = this.menuItem.sectionId || this.menuItem.menuId;
|
|
let sectionId = this.menuItem.sectionId || this.menuItem.menuId;
|
|
let uuid = new Date().valueOf() + ""
|
|
let uuid = new Date().valueOf() + ""
|
|
// buyCourse 是否购买课程:1是 0否
|
|
// buyCourse 是否购买课程:1是 0否
|
|
- let encode = encodeURIComponent(WEBVIEW_URL+'pages/live/index?token='+uni.getStorageSync('token')+'&userInfo='+JSON.stringify(this.userInfo)+
|
|
|
|
|
|
+ let encode = encodeURIComponent(config.WEBVIEW_URL+'pages/live/index?token='+uni.getStorageSync('token')+'&userInfo='+JSON.stringify(this.userInfo)+
|
|
'&channelId='+this.menuItem.liveUrl+'&gradeId='+this.gradeId+'&courseId='+this.courseId+'&goodsId='+this.goodsId+'&orderGoodsId='+this.orderGoodsId+
|
|
'&channelId='+this.menuItem.liveUrl+'&gradeId='+this.gradeId+'&courseId='+this.courseId+'&goodsId='+this.goodsId+'&orderGoodsId='+this.orderGoodsId+
|
|
'§ionId='+sectionId+'&chapterId='+chapterId+'&moduleId='+moduleId+'&buyCourse=1'+'&ident='+uuid+'§ionType=2')
|
|
'§ionId='+sectionId+'&chapterId='+chapterId+'&moduleId='+moduleId+'&buyCourse=1'+'&ident='+uuid+'§ionType=2')
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|