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

fix: 移出屏幕的节点移除

parent a2858aa9
......@@ -89,7 +89,7 @@ cc.Class({
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 data = JSON.parse(res.data);
func(data);
......@@ -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>' },
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>' },
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');
......@@ -814,6 +814,9 @@ cc.Class({
letterNodeBase.zIndex = 10;
cc.tween(letterNodeBase)
.to(1.2, { y: 1500 }, { easing: 'cubicIn' })
.call(() => {
letterNodeBase.active = false;
})
.start();
},
......@@ -862,6 +865,10 @@ cc.Class({
cc.tween(ribbonNodeBase)
.by(3, { y: -1600, x: RandomInt(-100, 100), angle: RandomInt(-60, 60) })
.call(() => {
ribbonNodeBase.active = false;
ribbonNodeBase.removeFromParent();
})
.start();
}
},
......@@ -1156,7 +1163,7 @@ cc.Class({
if (!tmpData[scoreData.name]) {
tmpData[scoreData.name] = scoreData
} else {
if (tmpData[scoreData.name].score > scoreData.score ) {
if (tmpData[scoreData.name].score > scoreData.score) {
tmpData[scoreData.name] = scoreData;
}
}
......@@ -1179,7 +1186,7 @@ cc.Class({
},
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)
console.log(' sendData res: ', res);
});
......@@ -1187,7 +1194,7 @@ cc.Class({
},
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)
if (cb) {
cb(res.data);
......@@ -1255,7 +1262,7 @@ cc.Class({
loadingIcon.opacity = 0;
cc.tween(loadingIcon)
.to(2, {opacity: 255}, {easing: 'cubicOut'})
.to(2, { opacity: 255 }, { easing: 'cubicOut' })
.start()
},
......@@ -1263,7 +1270,7 @@ cc.Class({
const loading = cc.find('Canvas/loading')
cc.tween(loading)
.to(0.5, {opacity: 0}, {easing: 'cubicOut'})
.to(0.5, { opacity: 0 }, { easing: 'cubicOut' })
.call(() => {
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