提现/我的页面修改
This commit is contained in:
@@ -8,6 +8,8 @@
|
||||
<video :show-fullscreen-btn="false" @controlstoggle="controlstoggles" object-fit="cover"
|
||||
v-if="current === index && item.videoUrl" :play-strategy="2" :show-loading="true"
|
||||
codec="software" :muted="false" :show-center-play-btn="true" :loop="true" @ended="ended"
|
||||
@timeupdate="timeupdate"
|
||||
@play="videoPlay('myVideo'+item.courseDetailsId, item.courseDetailsId)"
|
||||
:enable-progress-gesture="false" :poster="item.titleImg" :ref="'myVideo'+item.courseDetailsId"
|
||||
:id="'myVideo'+item.courseDetailsId" :src="item.videoUrl" :autoplay="item.autoPlay"
|
||||
class="swipers-items-video"></video>
|
||||
@@ -358,6 +360,8 @@
|
||||
payPrice: 0, //解锁价格
|
||||
iosPayId: '',
|
||||
isCollect: false,
|
||||
playFlag: false,
|
||||
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
@@ -491,6 +495,38 @@
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
//播放时的回掉
|
||||
videoPlay(videoId,courseDetailsId) {
|
||||
this.courseDetailsId = courseDetailsId
|
||||
if ( !this.playFlag ) {
|
||||
this.playFlag = true
|
||||
httpsRequest.getT('app/course/viewCourse', {
|
||||
courseId: this.courseId,
|
||||
courseDetailsId: courseDetailsId,
|
||||
type: 'start'
|
||||
}).then(res => {
|
||||
console.log('播放开始')
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
//播放进度变化回掉
|
||||
timeupdate(e) {
|
||||
|
||||
if (e.detail.currentTime > e.detail.duration*0.9) {
|
||||
if ( this.playFlag) {
|
||||
this.playFlag = false
|
||||
httpsRequest.getT('app/course/viewCourse', {
|
||||
courseId: this.courseId,
|
||||
courseDetailsId: this.courseDetailsId,
|
||||
type: 'end'
|
||||
}).then(res => {
|
||||
console.log('播放结束')
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
//选集弹窗的回调
|
||||
changeXj(e) {
|
||||
if (e.show == false) {
|
||||
|
||||
Reference in New Issue
Block a user