Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
NEXT_test001
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
NEXT_test001
Commits
4778c9a0
Commit
4778c9a0
authored
Mar 12, 2022
by
chenli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完成
parent
7097f20b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
22 deletions
+26
-22
NEXT_test001.meta
assets/NEXT_test001.meta
+1
-15
NEXT_test001.ts
assets/NEXT_test001/scene/NEXT_test001.ts
+24
-6
timuPrefab.ts
assets/NEXT_test001/script/timuPrefab.ts
+1
-1
No files found.
assets/NEXT_test001.meta
View file @
4778c9a0
{
{"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
assets/NEXT_test001/scene/NEXT_test001.ts
View file @
4778c9a0
...
@@ -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
(
"
coursewareover
coursewareovercoursewareovercoursewareovercoursewareover321
:
"
+
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
);
}
}
...
...
assets/NEXT_test001/script/timuPrefab.ts
View file @
4778c9a0
...
@@ -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
(()
=>
{
})
})
...
...
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