修改
This commit is contained in:
parent
5a4e7c7c9e
commit
dec46bd880
@ -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() {
|
||||||
|
|||||||
@ -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() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user