Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
WL01
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
WL01
Commits
4d1af7fd
Commit
4d1af7fd
authored
Sep 29, 2021
by
linzhiguo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
+ 答题由后台生成
parent
706fc6c4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
4 deletions
+16
-4
form.component.html
form/src/app/form/form.component.html
+2
-2
WL01.js
play/assets/WL01/scene/WL01.js
+12
-1
defaultData.js
play/assets/WL01/script/defaultData.js
+2
-1
No files found.
form/src/app/form/form.component.html
View file @
4d1af7fd
...
@@ -65,14 +65,14 @@
...
@@ -65,14 +65,14 @@
<app-audio-recorder
[
audioUrl
]="
data
.
audio_url
"
(
audioUploaded
)="
onAudioUploadSuccess
($
event
,
data
,
'
audio_url
')"
></app-audio-recorder>
<app-audio-recorder
[
audioUrl
]="
data
.
audio_url
"
(
audioUploaded
)="
onAudioUploadSuccess
($
event
,
data
,
'
audio_url
')"
></app-audio-recorder>
</div>
</div>
</div>
</div>
<div
style=
"display: flex; margin-bottom: 10px;"
>
<
!-- <
div style="display: flex; margin-bottom: 10px;">
<div style="flex:1">
<div style="flex:1">
是否正确
是否正确
</div>
</div>
<div style="flex:auto">
<div style="flex:auto">
<label nz-checkbox [(ngModel)]="data.correct" (ngModelChange)="saveItem()" ></label>
<label nz-checkbox [(ngModel)]="data.correct" (ngModelChange)="saveItem()" ></label>
</div>
</div>
</div>
</div>
-->
</div>
</div>
...
...
play/assets/WL01/scene/WL01.js
View file @
4d1af7fd
...
@@ -173,6 +173,10 @@ cc.Class({
...
@@ -173,6 +173,10 @@ cc.Class({
this
.
title
.
string
=
this
.
data
.
title
;
this
.
title
.
string
=
this
.
data
.
title
;
if
(
this
.
data
.
random
!=
null
){
this
.
data
.
answer
=
this
.
data
.
random
.
split
(
'
,
'
);
}
this
.
_start
=
cc
.
find
(
'
Canvas/start
'
);
this
.
_start
=
cc
.
find
(
'
Canvas/start
'
);
this
.
_start
.
on
(
'
click
'
,()
=>
{
this
.
_start
.
on
(
'
click
'
,()
=>
{
...
@@ -295,7 +299,14 @@ cc.Class({
...
@@ -295,7 +299,14 @@ cc.Class({
}
}
this
.
_aiexerciseid
=
info
.
aiexerciseid
;
this
.
_aiexerciseid
=
info
.
aiexerciseid
;
this
.
hit_result
=
info
.
correct
;
//this.hit_result = info.correct;
let
tmp
=
this
.
data
.
answer
[
this
.
_mouse_index
];
this
.
hit_result
=
false
;
if
(
tmp
!=
null
){
this
.
hit_result
=
info
.
word
==
tmp
.
toUpperCase
()
||
info
.
word
==
tmp
.
toLowerCase
();
}
this
.
_astr
=
info
.
word
;
this
.
_astr
=
info
.
word
;
this
.
currentOutline
(
this
.
_mouse_index
);
this
.
currentOutline
(
this
.
_mouse_index
);
...
...
play/assets/WL01/script/defaultData.js
View file @
4d1af7fd
...
@@ -29,5 +29,6 @@ export const defaultData =
...
@@ -29,5 +29,6 @@ export const defaultData =
],
],
"
title
"
:
"
weioewowe
"
,
"
title
"
:
"
weioewowe
"
,
"
time
"
:
"
3
"
,
"
time
"
:
"
3
"
,
"
audio_url
"
:
"
http://staging-teach.cdn.ireadabc.com/738ef124b1882d10b31d59fb2fbd7eb7.mp3
"
"
audio_url
"
:
"
http://staging-teach.cdn.ireadabc.com/738ef124b1882d10b31d59fb2fbd7eb7.mp3
"
,
"
random
"
:
"
A,c,U,x,E,Y
"
}
}
\ No newline at end of file
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