|
@@ -147,7 +147,7 @@
|
|
|
<view class="popupbox-content">
|
|
|
<view :class="lineIndex == index ? 'line-item line-active': 'line-item'"
|
|
|
v-for="(it,index) in lineList" :key="index" @click="handleLine(index)">
|
|
|
- 线路{{numberToChinese(lineIndex + 1)}}</view>
|
|
|
+ 线路{{numberToChinese(index + 1)}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</uni-popup>
|
|
@@ -264,7 +264,7 @@
|
|
|
courseAnswer,
|
|
|
getFinishCourseVideo,
|
|
|
getIsAddKf,
|
|
|
- getInternetTraffic,
|
|
|
+ internetTraffic,
|
|
|
getIntegralByH5Video,
|
|
|
sendReward,
|
|
|
loginByMp,
|
|
@@ -667,7 +667,6 @@
|
|
|
this.isFinish = res.isFinish || 0
|
|
|
this.duration = res.course && res.course.duration ? res.course.duration : 0
|
|
|
this.playDuration = res.playDuration || 0
|
|
|
- this.playDurationSeek = res.playDuration || 0
|
|
|
this.tipsTime = res.tipsTime || 0
|
|
|
let lineList = []
|
|
|
if (res.course && res.course.lineOne) {
|
|
@@ -708,6 +707,7 @@
|
|
|
// this.options.poster = res.course && res.course.imgUrl ? res.course.imgUrl : ''
|
|
|
// this.initVideo()
|
|
|
this.playTime = this.playDuration >= this.duration ? 0 : this.playDuration
|
|
|
+ this.playDurationSeek = this.playTime
|
|
|
setTimeout(()=>{
|
|
|
this.player = uni.createVideoContext('video-content-box');
|
|
|
this.player.seek(this.playTime)
|
|
@@ -723,6 +723,7 @@
|
|
|
// }
|
|
|
// }
|
|
|
this.playTime = this.playTime > this.playDuration ? this.playTime : this.playDuration >= this.duration ? 0 : this.playDuration
|
|
|
+ this.playDurationSeek = this.playTime
|
|
|
this.player.seek(this.playTime)
|
|
|
this.player.play();
|
|
|
}
|
|
@@ -979,11 +980,20 @@
|
|
|
this.isCheckRealUrl = false
|
|
|
this.goLogin()
|
|
|
} else if (res.code == 566) {
|
|
|
- this.isAddKf = 1
|
|
|
- this.isCheckRealUrl = true
|
|
|
// 官方群发通用链接
|
|
|
const url = res.courseLink.realLink.split('?course=')[1]
|
|
|
this.urlOption = JSON.parse(url)
|
|
|
+ this.isAddKf = 1
|
|
|
+ this.isCheckRealUrl = true
|
|
|
+ this.getH5CourseVideoDetails()
|
|
|
+ } else if (res.code == 567) {
|
|
|
+ // 群聊通用链接
|
|
|
+ this.urlOption = {
|
|
|
+ ...this.urlOption,
|
|
|
+ qwExternalId: res.qwExternalId
|
|
|
+ }
|
|
|
+ this.isAddKf = 1
|
|
|
+ this.isCheckRealUrl = true
|
|
|
this.getH5CourseVideoDetails()
|
|
|
} else {
|
|
|
this.isCheckRealUrl = false
|
|
@@ -1043,7 +1053,7 @@
|
|
|
bufferRate: Number(this.bufferRate.toFixed(2)),
|
|
|
}
|
|
|
if(!param.bufferRate) return
|
|
|
- getInternetTraffic(param)
|
|
|
+ internetTraffic(param)
|
|
|
},
|
|
|
getErrMsg(err,type) {
|
|
|
let msgerr = {
|