Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
z_05_xcx
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
z_05_xcx
Commits
9194730d
Commit
9194730d
authored
Sep 27, 2020
by
范雪寒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 移出屏幕的节点移除
parent
a2858aa9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
120 additions
and
113 deletions
+120
-113
n_xuan1.js
play/assets/tmpGame/scene_2/n_xuan1.js
+120
-113
No files found.
play/assets/tmpGame/scene_2/n_xuan1.js
View file @
9194730d
...
@@ -89,7 +89,7 @@ cc.Class({
...
@@ -89,7 +89,7 @@ cc.Class({
getData
(
func
)
{
getData
(
func
)
{
http
(
'
GET
'
,
'
https://staging-teach.ireadabc.com/api/courseware/v1/getdata?courseid=
'
+
this
.
courseid
,
{}).
then
((
resStr
)
=>
{
http
(
'
GET
'
,
'
https://staging-teach.ireadabc.com/api/courseware/v1/getdata?courseid=
'
+
this
.
courseid
,
{}).
then
((
resStr
)
=>
{
const
res
=
JSON
.
parse
(
resStr
)
const
res
=
JSON
.
parse
(
resStr
)
const
data
=
JSON
.
parse
(
res
.
data
);
const
data
=
JSON
.
parse
(
res
.
data
);
func
(
data
);
func
(
data
);
...
@@ -302,7 +302,7 @@ cc.Class({
...
@@ -302,7 +302,7 @@ cc.Class({
w
:
{
big
:
'
<color=#73edff>W</c><color=#ffffff>INDOW</color>
'
,
small
:
'
<color=#abff61>w</c><color=#ffffff>indow</color>
'
},
w
:
{
big
:
'
<color=#73edff>W</c><color=#ffffff>INDOW</color>
'
,
small
:
'
<color=#abff61>w</c><color=#ffffff>indow</color>
'
},
x
:
{
big
:
'
<color=#ffffff>BO</color><color=#73edff>X</c>
'
,
small
:
'
<color=#ffffff>bo</color><color=#abff61>x</c>
'
},
x
:
{
big
:
'
<color=#ffffff>BO</color><color=#73edff>X</c>
'
,
small
:
'
<color=#ffffff>bo</color><color=#abff61>x</c>
'
},
y
:
{
big
:
'
<color=#73edff>Y</c><color=#ffffff>OGURT</color>
'
,
small
:
'
<color=#abff61>y</c><color=#ffffff>ogurt</color>
'
},
y
:
{
big
:
'
<color=#73edff>Y</c><color=#ffffff>OGURT</color>
'
,
small
:
'
<color=#abff61>y</c><color=#ffffff>ogurt</color>
'
},
z
:
{
big
:
'
<color=#73edff>Z</c><color=#ffffff>EBRA</color>
'
,
small
:
'
<color=#abff61>z</c><color=#ffffff>ebra</color
'
}
z
:
{
big
:
'
<color=#73edff>Z</c><color=#ffffff>EBRA</color>
'
,
small
:
'
<color=#abff61>z</c><color=#ffffff>ebra</color
>
'
}
}
}
const
bigPictureWordRichText
=
cc
.
find
(
'
Canvas/LetterPicturePage/PictureWordBigBg/PictureWordBigRichText
'
);
const
bigPictureWordRichText
=
cc
.
find
(
'
Canvas/LetterPicturePage/PictureWordBigBg/PictureWordBigRichText
'
);
...
@@ -814,6 +814,9 @@ cc.Class({
...
@@ -814,6 +814,9 @@ cc.Class({
letterNodeBase
.
zIndex
=
10
;
letterNodeBase
.
zIndex
=
10
;
cc
.
tween
(
letterNodeBase
)
cc
.
tween
(
letterNodeBase
)
.
to
(
1.2
,
{
y
:
1500
},
{
easing
:
'
cubicIn
'
})
.
to
(
1.2
,
{
y
:
1500
},
{
easing
:
'
cubicIn
'
})
.
call
(()
=>
{
letterNodeBase
.
active
=
false
;
})
.
start
();
.
start
();
},
},
...
@@ -862,6 +865,10 @@ cc.Class({
...
@@ -862,6 +865,10 @@ cc.Class({
cc
.
tween
(
ribbonNodeBase
)
cc
.
tween
(
ribbonNodeBase
)
.
by
(
3
,
{
y
:
-
1600
,
x
:
RandomInt
(
-
100
,
100
),
angle
:
RandomInt
(
-
60
,
60
)
})
.
by
(
3
,
{
y
:
-
1600
,
x
:
RandomInt
(
-
100
,
100
),
angle
:
RandomInt
(
-
60
,
60
)
})
.
call
(()
=>
{
ribbonNodeBase
.
active
=
false
;
ribbonNodeBase
.
removeFromParent
();
})
.
start
();
.
start
();
}
}
},
},
...
@@ -1156,7 +1163,7 @@ cc.Class({
...
@@ -1156,7 +1163,7 @@ cc.Class({
if
(
!
tmpData
[
scoreData
.
name
])
{
if
(
!
tmpData
[
scoreData
.
name
])
{
tmpData
[
scoreData
.
name
]
=
scoreData
tmpData
[
scoreData
.
name
]
=
scoreData
}
else
{
}
else
{
if
(
tmpData
[
scoreData
.
name
].
score
>
scoreData
.
score
)
{
if
(
tmpData
[
scoreData
.
name
].
score
>
scoreData
.
score
)
{
tmpData
[
scoreData
.
name
]
=
scoreData
;
tmpData
[
scoreData
.
name
]
=
scoreData
;
}
}
}
}
...
@@ -1179,7 +1186,7 @@ cc.Class({
...
@@ -1179,7 +1186,7 @@ cc.Class({
},
},
sendData
(
data
)
{
sendData
(
data
)
{
http
(
'
POST
'
,
'
https://staging-teach.ireadabc.com/api/dashboard/v1/studyinfo?courseid=
'
+
this
.
courseid
,
data
).
then
((
resStr
)
=>
{
http
(
'
POST
'
,
'
https://staging-teach.ireadabc.com/api/dashboard/v1/studyinfo?courseid=
'
+
this
.
courseid
,
data
).
then
((
resStr
)
=>
{
const
res
=
JSON
.
parse
(
resStr
)
const
res
=
JSON
.
parse
(
resStr
)
console
.
log
(
'
sendData res:
'
,
res
);
console
.
log
(
'
sendData res:
'
,
res
);
});
});
...
@@ -1187,7 +1194,7 @@ cc.Class({
...
@@ -1187,7 +1194,7 @@ cc.Class({
},
},
receiveData
(
id
,
cb
)
{
receiveData
(
id
,
cb
)
{
http
(
'
GET
'
,
'
https://staging-teach.ireadabc.com/api/dashboard/v1/studyinfo?courseid=
'
+
this
.
courseid
,
{}).
then
((
resStr
)
=>
{
http
(
'
GET
'
,
'
https://staging-teach.ireadabc.com/api/dashboard/v1/studyinfo?courseid=
'
+
this
.
courseid
,
{}).
then
((
resStr
)
=>
{
const
res
=
JSON
.
parse
(
resStr
)
const
res
=
JSON
.
parse
(
resStr
)
if
(
cb
)
{
if
(
cb
)
{
cb
(
res
.
data
);
cb
(
res
.
data
);
...
@@ -1255,7 +1262,7 @@ cc.Class({
...
@@ -1255,7 +1262,7 @@ cc.Class({
loadingIcon
.
opacity
=
0
;
loadingIcon
.
opacity
=
0
;
cc
.
tween
(
loadingIcon
)
cc
.
tween
(
loadingIcon
)
.
to
(
2
,
{
opacity
:
255
},
{
easing
:
'
cubicOut
'
})
.
to
(
2
,
{
opacity
:
255
},
{
easing
:
'
cubicOut
'
})
.
start
()
.
start
()
},
},
...
@@ -1263,7 +1270,7 @@ cc.Class({
...
@@ -1263,7 +1270,7 @@ cc.Class({
const
loading
=
cc
.
find
(
'
Canvas/loading
'
)
const
loading
=
cc
.
find
(
'
Canvas/loading
'
)
cc
.
tween
(
loading
)
cc
.
tween
(
loading
)
.
to
(
0.5
,
{
opacity
:
0
},
{
easing
:
'
cubicOut
'
})
.
to
(
0.5
,
{
opacity
:
0
},
{
easing
:
'
cubicOut
'
})
.
call
(()
=>
{
.
call
(()
=>
{
loading
.
active
=
false
;
loading
.
active
=
false
;
})
})
...
...
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