Commit 12c66479 authored by 李维's avatar 李维

修复错误

parent 83cf299f
......@@ -229,9 +229,9 @@ export default class VideoPlayerComponent extends cc.Component {
}
refreshLastNextBtns(){
cc.find("Canvas/btn_last").active=this.videoPlayIndex!=0
cc.find("Canvas/pageButton/btn_last").active=this.videoPlayIndex!=0
if (this.videoItemList) {
cc.find("Canvas/btn_next").active=this.videoPlayIndex!=this.videoItemList.length-1
cc.find("Canvas/pageButton/btn_next").active=this.videoPlayIndex!=this.videoItemList.length-1
}
}
......@@ -611,7 +611,7 @@ export default class VideoPlayerComponent extends cc.Component {
cc.find(`Canvas/btn_return`).active = !this.isVideoFull;
cc.find(`Canvas/title`).active = !this.isVideoFull;
cc.find('Canvas/pageButton').active = true;
const videoContainer = cc.find('Canvas/video_node');
videoContainer.width = this.tempPos.videoPos.width;
videoContainer.height = this.tempPos.videoPos.height;
......
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