Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dfzx_cocos_dds
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
dfzx_cocos_dds
Commits
b5dbef21
Commit
b5dbef21
authored
Mar 12, 2021
by
范雪寒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 完成作业上报
parent
f3738504
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
1 deletion
+12
-1
.gitignore
.gitignore
+1
-0
et_13.js
play/assets/et_13/script/et_13.js
+11
-1
build_app.sh
publish/build_app.sh
+0
-0
No files found.
.gitignore
View file @
b5dbef21
...
...
@@ -7,3 +7,4 @@
/publish/publish/ios
/publish/publish/android
/publish/publish/*.zip
/publish/publish/config.json
play/assets/et_13/script/et_13.js
View file @
b5dbef21
...
...
@@ -87,6 +87,15 @@ cc.Class({
func
(
this
.
getDefaultData
());
},
onHomeworkFinish
()
{
const
middleLayer
=
cc
.
find
(
'
middleLayer
'
);
if
(
middleLayer
)
{
const
middleLayerComponent
=
middleLayer
.
getComponent
(
'
middleLayer
'
);
middleLayerComponent
.
onHomeworkFinish
(()
=>
{});
return
;
}
},
getDefaultData
()
{
const
dataJson
=
'
{"groupArr":[{"ques":"","optionArr":[{"type":"text","isRight":"1","text":"aaa"},{"type":"text","isRight":"0","text":"bbb"},{"type":"text","isRight":"0","text":"ccc"}]}]}
'
;
const
data1
=
JSON
.
parse
(
dataJson
);
...
...
@@ -522,7 +531,7 @@ cc.Class({
d
.
x
=
0
;
d
.
y
=
node
.
textPanel
.
y
;
},
checkNextStar
(
node
)
{
...
...
@@ -647,6 +656,7 @@ cc.Class({
cc
.
tween
(
this
)
.
delay
(
0.2
)
.
call
(()
=>
{
this
.
onHomeworkFinish
();
this
.
showRestartBtn
();
})
.
start
();
...
...
publish/build.sh
→
publish/build
_app
.sh
View file @
b5dbef21
File moved
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