修改
This commit is contained in:
parent
88188fec04
commit
e5e8f915e3
@ -75,19 +75,24 @@
|
|||||||
this.baseurl = baseurl
|
this.baseurl = baseurl
|
||||||
this.trainingOrderNo = options.trainingOrderNo
|
this.trainingOrderNo = options.trainingOrderNo
|
||||||
this.info();
|
this.info();
|
||||||
|
if (this.timecount > 0) {
|
||||||
|
this.Timer = setInterval(() => {
|
||||||
|
this.timecount--;
|
||||||
|
}, 1000)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
info() {
|
info() {
|
||||||
getWaitPayTrainingOrderDetails(this.trainingOrderNo).then(res => {
|
getWaitPayTrainingOrderDetails(this.trainingOrderNo).then(res => {
|
||||||
this.list = res.data
|
this.list = res.data
|
||||||
var ordertimes = this.list.trainingOrderTime.replaceAll(/\-/gi, "/")
|
var ordertimes = this.list.trainingOrderTime.replaceAll(/\-/gi, "/")
|
||||||
var time = new Date(this.list.trainingOrderTime).getTime() / 1000 + (60 * 60 * 2)
|
var time = new Date(ordertimes).getTime() / 1000 + (60 * 60 * 2)
|
||||||
var times = new Date().getTime() / 1000
|
var times = new Date().getTime() / 1000
|
||||||
this.timestamp = time - times
|
this.timestamp = time - times
|
||||||
this.timecount = this.timestamp
|
if (this.timestamp > 0) {
|
||||||
this.Timer = setInterval(() => {
|
this.timecount = this.timestamp
|
||||||
this.timecount--;
|
}
|
||||||
}, 1000)
|
this.timecount = 10
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
//购买
|
//购买
|
||||||
|
|||||||
@ -42,10 +42,8 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<u-popup v-model="videoshow" mode="center" closeable @close='videoshowfalse'>
|
<u-popup v-model="videoshow" mode="center" closeable @close='videoshowfalse'>
|
||||||
<view>
|
<video v-if="videoshow" :src="baseurl+videoitem.itemDirectoryUrl" @timeupdate='videotimeupdate'
|
||||||
<video v-if="videoshow" :src="baseurl+videoitem.itemDirectoryUrl" @timeupdate='videotimeupdate'
|
:initial-time='videoitem.watchTime' @error='videoerror' :custom-cache="false"></video>
|
||||||
:initial-time='videoitem.watchTime' @error='videoerror'></video>
|
|
||||||
</view>
|
|
||||||
</u-popup>
|
</u-popup>
|
||||||
<u-toast ref="uToast" />
|
<u-toast ref="uToast" />
|
||||||
</view>
|
</view>
|
||||||
@ -104,13 +102,14 @@
|
|||||||
},
|
},
|
||||||
//视频播放出错
|
//视频播放出错
|
||||||
videoerror(e) {
|
videoerror(e) {
|
||||||
this.$refs.uToast.show({
|
console.log(e)
|
||||||
title: '暂无视频',
|
// this.$refs.uToast.show({
|
||||||
type: 'error',
|
// title: '暂无视频',
|
||||||
duration: '2000'
|
// type: 'error',
|
||||||
})
|
// duration: '2000'
|
||||||
this.videoerroshow = false
|
// })
|
||||||
this.videoshow = false
|
// this.videoerroshow = false
|
||||||
|
// this.videoshow = false
|
||||||
},
|
},
|
||||||
//novideoplay未购买
|
//novideoplay未购买
|
||||||
novideoplay() {
|
novideoplay() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user