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({ uni.getSystemInfo({
success: function(res) { success: function(res) {
if (res.platform == 'ios') { if (res.platform == 'ios') {
that.videoitem.videoshow = false
that.videoshow = false that.videoshow = false
} else {} } else {}
} }
@ -127,6 +128,7 @@
} }
insertTrainingItemWatchRecord(this.videoitem).then(res => { insertTrainingItemWatchRecord(this.videoitem).then(res => {
this.videoitem.watchTime = 0 this.videoitem.watchTime = 0
this.videoitem.videoshow = false
this.videoshow = false this.videoshow = false
this.videoitem = { this.videoitem = {
watchTime: 0 watchTime: 0
@ -155,6 +157,9 @@
}, },
// //
videoerror(e) { videoerror(e) {
this.videoitem = {
watchTime: 0
}
this.$refs.uToast.show({ this.$refs.uToast.show({
title: '暂无视频', title: '暂无视频',
type: 'error', type: 'error',
@ -162,9 +167,7 @@
}) })
this.videoerroshow = false this.videoerroshow = false
this.videoshow = false this.videoshow = false
setTimeout(e => { this.info();
this.videoitem.videoshow = false
}, 2000)
}, },
//novideoplay //novideoplay
novideoplay() { novideoplay() {

View File

@ -100,6 +100,7 @@
uni.getSystemInfo({ uni.getSystemInfo({
success: function(res) { success: function(res) {
if (res.platform == 'ios') { if (res.platform == 'ios') {
that.videoitem.videoshow = false
that.videoshow = false that.videoshow = false
} else {} } else {}
} }
@ -121,6 +122,7 @@
} }
insertTrainingItemWatchRecord(this.videoitem).then(res => { insertTrainingItemWatchRecord(this.videoitem).then(res => {
this.videoitem.watchTime = 0 this.videoitem.watchTime = 0
this.videoitem.videoshow = false
this.videoshow = false this.videoshow = false
this.videoitem = { this.videoitem = {
watchTime: 0 watchTime: 0
@ -148,16 +150,17 @@
}, },
// //
videoerror(e) { videoerror(e) {
this.videoitem = {
watchTime: 0
}
this.videoerroshow = false this.videoerroshow = false
this.$refs.uToast.show({ this.$refs.uToast.show({
title: '暂无视频', title: '暂无视频',
type: 'error', type: 'error',
duration: '2000' duration: '2000'
}) })
this.info();
this.videoshow = false this.videoshow = false
setTimeout(e => {
this.videoitem.videoshow = false
}, 2000)
}, },
// //
videoplays() { videoplays() {