Commit 59ad42c0 authored by tttal's avatar tttal

@

parent 4236af29
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
"__id__": 14 "__id__": 14
} }
], ],
"_active": false, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 68 "__id__": 68
...@@ -189,7 +189,7 @@ ...@@ -189,7 +189,7 @@
"array": [ "array": [
0, 0,
0, 0,
510.0889628290344, 515.285115251741,
0, 0,
0, 0,
0, 0,
......
...@@ -31,7 +31,7 @@ cc.Class({ ...@@ -31,7 +31,7 @@ cc.Class({
try { try {
window.courseware.getData(function (res) { window.courseware.getData(function (res) {
this.data = res; this.data = res;
cc.find('Canvas').active = true; cc.director.loadScene('index');
console.log(res); console.log(res);
}.bind(this)); }.bind(this));
} catch (error) { } catch (error) {
...@@ -41,13 +41,14 @@ cc.Class({ ...@@ -41,13 +41,14 @@ cc.Class({
text1: 'apple', text1: 'apple',
text2: 'bind', text2: 'bind',
}; };
cc.find('Canvas').active = true; cc.director.loadScene('index');
} }
}, },
/** /**
* 获取预设数据 * 获取预设数据
*/ */
getTempData(key) { getTempData(key) {
console.log('getTempData');
return (this.data[key]); return (this.data[key]);
}, },
save() { save() {
......
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