This commit is contained in:
曹辉 2023-05-04 15:09:51 +08:00
parent 5a4e7c7c9e
commit dec46bd880
2 changed files with 12 additions and 6 deletions

View File

@ -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() {

View File

@ -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() {