Commit 4778c9a0 authored by chenli's avatar chenli

完成

parent 7097f20b
{ {"ver":"1.1.2","uuid":"c35bb2f6-f24a-4850-ae44-643f2fdc7541","isBundle":false,"bundleName":"","priority":1,"compressionType":{},"optimizeHotUpdate":{},"inlineSpriteFrames":{},"isRemoteBundle":{"ios":false,"android":false},"subMetas":{}}
"ver": "1.1.2", \ No newline at end of file
"uuid": "c35bb2f6-f24a-4850-ae44-643f2fdc7541",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {
"ios": false,
"android": false
},
"subMetas": {}
}
\ No newline at end of file
...@@ -580,21 +580,34 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -580,21 +580,34 @@ export default class SceneComponent extends MyCocosSceneComponent {
//开始评测,半透明界面 //开始评测,半透明界面
this.showMengBan2(); this.showMengBan2();
this.pingceCallBack(90); // this.pingceCallBack(90);
this.log("pinceOver:");
if(!cc.sys.isBrowser){ if(!cc.sys.isBrowser){
let lf = this; let lf = this;
window["courseware"].stopTest((res) => { window["courseware"].stopTest((res) => {
//评测结束 //评测结束
lf.log("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa:");
lf.log("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa:");
lf.log("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa:");
lf.log("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa:");
lf.log("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa:");
lf.log("coursewareover:" + res); lf.log("coursewareovercoursewareovercoursewareovercoursewareovercoursewareover321:" + res);
let data = JSON.parse(JSON.stringify(res)); let data = JSON.parse((res));
let words = data.result.words; // let words = data.result.words;
// for(var i = 0 ;i < words.length;i++){ // for(var i = 0 ;i < words.length;i++){
// if(words[i].) // if(words[i].)
// } // }
lf.log("bbbbbbbbbbbbbbbbbbb:");
lf.log("bbbbbbbbbbbbbbbbbbb:");
lf.log("bbbbbbbbbbbbbbbbbbb:");
lf.log(data.result.overall);
lf.pingceCallBack(data.result.overall);
}); });
} }
} }
...@@ -605,6 +618,11 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -605,6 +618,11 @@ export default class SceneComponent extends MyCocosSceneComponent {
} }
pingceCallBack(score:number){ pingceCallBack(score:number){
this.log("cccc:");
this.log("cccc:");
this.log("cccc:");
let lf = this; let lf = this;
if(score >= 80){ if(score >= 80){
this.rights[this.curIndex] = true; this.rights[this.curIndex] = true;
...@@ -770,7 +788,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -770,7 +788,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
//调用真机接口 //调用真机接口
if(!cc.sys.isBrowser){ if(!cc.sys.isBrowser){
window["courseware"].startTest(); window["courseware"].startTest(this.data.questions[this.curIndex].text);
} }
......
...@@ -189,7 +189,7 @@ export default class timuPrefab extends cc.Component { ...@@ -189,7 +189,7 @@ export default class timuPrefab extends cc.Component {
hideCakeRight2(){ hideCakeRight2(){
cc.tween(this.cake_right_2) cc.tween(this.cake_right_2)
.to(0.5, { x: this.cake_right_2.x + 400 }, { easing: 'cubicInOut' }) .to(0.5, { x: this.cake_right_2.x + cc.winSize.width }, { easing: 'cubicInOut' })
.call(() => { .call(() => {
}) })
......
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