修改
This commit is contained in:
parent
5a4e7c7c9e
commit
dec46bd880
@ -112,6 +112,7 @@
|
||||
uni.getSystemInfo({
|
||||
success: function(res) {
|
||||
if (res.platform == 'ios') {
|
||||
that.videoitem.videoshow = false
|
||||
that.videoshow = false
|
||||
} else {}
|
||||
}
|
||||
@ -127,6 +128,7 @@
|
||||
}
|
||||
insertTrainingItemWatchRecord(this.videoitem).then(res => {
|
||||
this.videoitem.watchTime = 0
|
||||
this.videoitem.videoshow = false
|
||||
this.videoshow = false
|
||||
this.videoitem = {
|
||||
watchTime: 0
|
||||
@ -155,6 +157,9 @@
|
||||
},
|
||||
//视频播放出错
|
||||
videoerror(e) {
|
||||
this.videoitem = {
|
||||
watchTime: 0
|
||||
}
|
||||
this.$refs.uToast.show({
|
||||
title: '暂无视频',
|
||||
type: 'error',
|
||||
@ -162,9 +167,7 @@
|
||||
})
|
||||
this.videoerroshow = false
|
||||
this.videoshow = false
|
||||
setTimeout(e => {
|
||||
this.videoitem.videoshow = false
|
||||
}, 2000)
|
||||
this.info();
|
||||
},
|
||||
//novideoplay未购买
|
||||
novideoplay() {
|
||||
|
||||
@ -100,6 +100,7 @@
|
||||
uni.getSystemInfo({
|
||||
success: function(res) {
|
||||
if (res.platform == 'ios') {
|
||||
that.videoitem.videoshow = false
|
||||
that.videoshow = false
|
||||
} else {}
|
||||
}
|
||||
@ -121,6 +122,7 @@
|
||||
}
|
||||
insertTrainingItemWatchRecord(this.videoitem).then(res => {
|
||||
this.videoitem.watchTime = 0
|
||||
this.videoitem.videoshow = false
|
||||
this.videoshow = false
|
||||
this.videoitem = {
|
||||
watchTime: 0
|
||||
@ -148,16 +150,17 @@
|
||||
},
|
||||
//视频播放出错
|
||||
videoerror(e) {
|
||||
this.videoitem = {
|
||||
watchTime: 0
|
||||
}
|
||||
this.videoerroshow = false
|
||||
this.$refs.uToast.show({
|
||||
title: '暂无视频',
|
||||
type: 'error',
|
||||
duration: '2000'
|
||||
})
|
||||
this.info();
|
||||
this.videoshow = false
|
||||
setTimeout(e => {
|
||||
this.videoitem.videoshow = false
|
||||
}, 2000)
|
||||
},
|
||||
//视频播放
|
||||
videoplays() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user