Commit 9194730d authored by 范雪寒's avatar 范雪寒

fix: 移出屏幕的节点移除

parent a2858aa9
...@@ -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;
}) })
......
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