Commit 9af139b6 authored by jyx's avatar jyx

代码优化

parent 6b6fc4fb
...@@ -186,7 +186,9 @@ ...@@ -186,7 +186,9 @@
// #endif // #endif
this.windowWidth = uni.getSystemInfoSync().windowWidth this.windowWidth = uni.getSystemInfoSync().windowWidth
this.windowHeight = uni.getSystemInfoSync().windowHeight - this.safeArea - this.ttuop this.windowHeight = uni.getSystemInfoSync().windowHeight - this.safeArea - this.ttuop
console.log(this.windowHeight) console.log(this.windowHeight)
this.getData()
}, },
onShow() { onShow() {
// 从VIP页面返回关闭弹框 // 从VIP页面返回关闭弹框
...@@ -366,14 +368,15 @@ ...@@ -366,14 +368,15 @@
this.oid = this.originList.length - 1 this.oid = this.originList.length - 1
} }
console.log('++++++++++++上一条播放数据 Index:', this.oid) console.log('++++++++++++上一条播放数据 Index:', this.oid)
uni.createVideoContext('' + this.originList[this.oid].vedioId, this).stop(); // uni.createVideoContext('' + this.originList[this.oid].vedioId, this).stop();
uni.createVideoContext('' + this.originList[this.oid].vedioId, this).pause();
if (this.originList[originIndex].lock) { if (this.originList[originIndex].lock) {
this.unlock(this.originIndex) this.unlock(this.originIndex)
} else { } else {
setTimeout(() => { setTimeout(() => {
// audo.play() // audo.play()
uni.createVideoContext('' + this.originList[originIndex].vedioId, this).play(); uni.createVideoContext('' + this.originList[originIndex].vedioId, this).play();
this.commitVideo() this.commitVideo()
}, 500) }, 500)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment