|
@@ -14,8 +14,8 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { WEBVIEW_URL } from '@/common/request.js'
|
|
|
import { mapGetters } from 'vuex'
|
|
|
+import config from '@/common/config'
|
|
|
export default {
|
|
|
components: {},
|
|
|
data() {
|
|
@@ -42,21 +42,6 @@ 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.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
|
|
@@ -137,7 +122,7 @@ export default {
|
|
|
|
|
|
let uuid = new Date().valueOf() + ""
|
|
|
// buyCourse 是否购买课程:1是 0否
|
|
|
- this.url = WEBVIEW_URL+'pages/live/index?token='+uni.getStorageSync('token')+'&userInfo='+JSON.stringify(this.userInfo)+'&channelId='
|
|
|
+ this.url = config.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
|
|
|
console.log('url:', this.url)
|