Commit 71939b6a authored by 李维's avatar 李维

调整布局

parent 9dde0c9a
No preview for this file type
......@@ -144,7 +144,6 @@ export default class VideoPlayerComponent extends cc.Component {
// cc.find('Canvas/bg').zIndex=-1
// cc.find('Canvas/VideoNode').zIndex=0
// cc.find('Canvas/video_node').zIndex=1
// cc.find('Canvas/bg_video_shadow').zIndex=2
// cc.find('Canvas/Controls').zIndex=3
// cc.find('Canvas/videolist').zIndex=4
// cc.find('Canvas/btn_return').zIndex=5
......@@ -156,7 +155,6 @@ export default class VideoPlayerComponent extends cc.Component {
this.videoPlayer.node.on('ready-to-play', () => {
console.log('ready-to-play');
this.playButton.node.active = true;
cc.find(`Canvas/bg_video_shadow`).active = false;
// cc.find(`Canvas/loading`).active = false;
this.durationLabel.string = this.formatTime(this.videoPlayer.getDuration());
this._isReadyToPlay = true;
......@@ -395,7 +393,6 @@ export default class VideoPlayerComponent extends cc.Component {
// cc.find(`Canvas/loading`).active = true;
cc.find(`Canvas/bg`).active = true;
cc.find(`Canvas/bgwhite`).active = true;
// cc.find(`Canvas/bg_video_shadow`).active = true;
// this.videoPlayer.node.x = -5000;
// this.videoPlayer.node.y = -5000;
......@@ -451,8 +448,6 @@ export default class VideoPlayerComponent extends cc.Component {
cc.find(`Canvas/video_node`).width*=1.2
cc.find(`Canvas/video_node`).height*=1.2
cc.find(`Canvas/video_node`).y=73.311
cc.find(`Canvas/bg_video_shadow`).scale=1.2
cc.find(`Canvas/bg_video_shadow`).y=59.039
cc.find(`Canvas/btn_last`).x=-734.101
cc.find(`Canvas/btn_last`).y=-39.603
cc.find(`Canvas/btn_next`).x=734.101
......@@ -544,7 +539,6 @@ export default class VideoPlayerComponent extends cc.Component {
cc.find(`Canvas/text_tips`).active = false;
// cc.find(`Canvas/bg`).active = false;
cc.find(`Canvas/bgwhite`).active = false;
cc.find(`Canvas/bg_video_shadow`).active = false;
const videoContainer = cc.find('Canvas/video_node');
cc.find('bg', videoContainer).width = width;
......
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