Commit 9af139b6 authored by jyx's avatar jyx

代码优化

parent 6b6fc4fb
...@@ -187,6 +187,8 @@ ...@@ -187,6 +187,8 @@
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,7 +368,8 @@ ...@@ -366,7 +368,8 @@
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)
......
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