Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
JJ_Game_12
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
JJ_Game_12
Commits
9c556676
Commit
9c556676
authored
Dec 28, 2023
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: debug
parent
0c9ea653
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
JJ_Game_12.js
assets/JJ_Game_12/Scene/JJ_Game_12.js
+16
-0
No files found.
assets/JJ_Game_12/Scene/JJ_Game_12.js
View file @
9c556676
...
@@ -183,6 +183,9 @@ cc.Class({
...
@@ -183,6 +183,9 @@ cc.Class({
clearTimeout
(
this
.
time1
);
clearTimeout
(
this
.
time1
);
}
}
this
.
time1
=
setTimeout
(()
=>
{
this
.
time1
=
setTimeout
(()
=>
{
if
(
this
.
isDestroy
)
{
return
;
}
this
.
videoPlayer
.
stayOnBottom
=
false
;
this
.
videoPlayer
.
stayOnBottom
=
false
;
cc
.
find
(
`Canvas/Controls`
).
active
=
false
;
cc
.
find
(
`Canvas/Controls`
).
active
=
false
;
},
6000
);
},
6000
);
...
@@ -292,6 +295,9 @@ cc.Class({
...
@@ -292,6 +295,9 @@ cc.Class({
texJsonData
:
this
.
data
.
imgAni
.
tex
,
texJsonData
:
this
.
data
.
imgAni
.
tex
,
texPngData
:
this
.
data
.
imgAni
.
png
texPngData
:
this
.
data
.
imgAni
.
png
});
});
if
(
this
.
isDestroy
)
{
return
;
}
const
animaNode
=
animNode
[
'
animaNode
'
];
const
animaNode
=
animNode
[
'
animaNode
'
];
animaNode
.
x
=
500
;
animaNode
.
x
=
500
;
...
@@ -326,6 +332,9 @@ cc.Class({
...
@@ -326,6 +332,9 @@ cc.Class({
this
.
videoPlayer
.
remoteURL
=
this
.
data
.
video_url
;
this
.
videoPlayer
.
remoteURL
=
this
.
data
.
video_url
;
// });
// });
await
this
.
initView
();
await
this
.
initView
();
if
(
this
.
isDestroy
)
{
return
;
}
});
});
if
(
window
.
CustomEvent
){
if
(
window
.
CustomEvent
){
...
@@ -467,11 +476,17 @@ cc.Class({
...
@@ -467,11 +476,17 @@ cc.Class({
this
.
videoPlayer
.
node
.
height
=
this
.
node
.
height
;
this
.
videoPlayer
.
node
.
height
=
this
.
node
.
height
;
this
.
videoPlayer
.
node
.
width
=
this
.
node
.
width
;
this
.
videoPlayer
.
node
.
width
=
this
.
node
.
width
;
setTimeout
(()
=>
{
setTimeout
(()
=>
{
if
(
this
.
isDestroy
)
{
return
;
}
// IOS下视频的全屏适配比例有问题,所以做一个计算
// IOS下视频的全屏适配比例有问题,所以做一个计算
this
.
videoPlayer
.
node
.
width
=
Math
.
min
(
this
.
node
.
width
,
this
.
node
.
height
*
16
/
9
);
this
.
videoPlayer
.
node
.
width
=
Math
.
min
(
this
.
node
.
width
,
this
.
node
.
height
*
16
/
9
);
},
100
);
},
100
);
this
.
time1
=
setTimeout
(()
=>
{
this
.
time1
=
setTimeout
(()
=>
{
if
(
this
.
isDestroy
)
{
return
;
}
this
.
videoPlayer
.
stayOnBottom
=
false
;
this
.
videoPlayer
.
stayOnBottom
=
false
;
cc
.
find
(
`Canvas/Controls`
).
active
=
false
;
cc
.
find
(
`Canvas/Controls`
).
active
=
false
;
},
3000
);
},
3000
);
...
@@ -522,6 +537,7 @@ cc.Class({
...
@@ -522,6 +537,7 @@ cc.Class({
onDestroy
()
{
onDestroy
()
{
if
(
this
.
time1
)
{
clearTimeout
(
this
.
time1
);
}
if
(
this
.
time1
)
{
clearTimeout
(
this
.
time1
);
}
this
.
isDestroy
=
true
;
},
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment