Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
East_L230
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
East_L230
Commits
3c232eb1
Commit
3c232eb1
authored
May 20, 2020
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev commit
parent
37e3b3c8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
42 deletions
+5
-42
form.component.ts
src/app/form/form.component.ts
+4
-42
play.component.ts
src/app/play/play.component.ts
+1
-0
No files found.
src/app/form/form.component.ts
View file @
3c232eb1
import
{
Component
,
EventEmitter
,
Input
,
OnDestroy
,
OnChanges
,
OnInit
,
Output
,
ApplicationRef
}
from
'
@angular/core
'
;
import
{
Component
,
EventEmitter
,
Input
,
OnDestroy
,
OnChanges
,
OnInit
,
Output
,
ApplicationRef
}
from
'
@angular/core
'
;
const
defaultData
=
{
const
defaultData
:
any
=
{
version
:
"
1.1
"
,
version
:
"
1.1
"
,
bgmusic
:
""
,
bgmusic
:
""
,
dataArray
:[
dataArray
:[]
{
audio_url
:
"
sm-choice-timeup-3
"
,
options
:
[
{
type
:
"
Text
"
,
image_url
:
"
default-image
"
,
text
:
"
Demo_1
"
,
audio_url
:
""
,
isCorrect
:
true
},
{
type
:
"
Image
"
,
image_url
:
"
default-image
"
,
text
:
""
,
audio_url
:
""
,
isCorrect
:
false
},
{
type
:
"
Text
"
,
image_url
:
"
default-image
"
,
text
:
"
Demo_1
"
,
audio_url
:
""
,
isCorrect
:
false
},
{
type
:
"
Image
"
,
image_url
:
"
default-image
"
,
text
:
""
,
audio_url
:
""
,
isCorrect
:
false
}
]
},
{
audio_url
:
"
sm-choice-timeup-3
"
,
options
:
[
{
type
:
"
Text
"
,
image_url
:
"
default-image
"
,
text
:
"
Demo_2
"
,
audio_url
:
""
,
isCorrect
:
false
},
{
type
:
"
Image
"
,
image_url
:
"
default-image
"
,
text
:
""
,
audio_url
:
""
,
isCorrect
:
true
},
{
type
:
"
Text
"
,
image_url
:
"
default-image
"
,
text
:
"
Demo_2
"
,
audio_url
:
""
,
isCorrect
:
false
},
{
type
:
"
Image
"
,
image_url
:
"
default-image
"
,
text
:
""
,
audio_url
:
""
,
isCorrect
:
false
}
]
},
{
audio_url
:
"
sm-choice-timeup-3
"
,
options
:
[
{
type
:
"
Text
"
,
image_url
:
"
default-image
"
,
text
:
"
Demo_3
"
,
audio_url
:
""
,
isCorrect
:
false
},
{
type
:
"
Image
"
,
image_url
:
"
default-image
"
,
text
:
""
,
audio_url
:
""
,
isCorrect
:
false
},
{
type
:
"
Text
"
,
image_url
:
"
default-image
"
,
text
:
"
Demo_3
"
,
audio_url
:
""
,
isCorrect
:
false
},
{
type
:
"
Image
"
,
image_url
:
"
default-image
"
,
text
:
""
,
audio_url
:
""
,
isCorrect
:
true
}
]
},
]
}
}
@
Component
({
@
Component
({
...
@@ -43,19 +15,9 @@ const defaultData = {
...
@@ -43,19 +15,9 @@ const defaultData = {
export
class
FormComponent
implements
OnInit
,
OnChanges
,
OnDestroy
{
export
class
FormComponent
implements
OnInit
,
OnChanges
,
OnDestroy
{
_item
:
any
;
_item
:
any
;
contentObj
=
{
contentObj
:
any
=
{
bgMusic
:
String
,
bgMusic
:
String
,
dataArray
:[
dataArray
:[]
{
audio_url
:
String
,
options
:
[
{
type
:
String
,
image_url
:
String
,
text
:
String
,
audio_url
:
String
,
isCorrect
:
Boolean
},
{
type
:
String
,
image_url
:
String
,
text
:
String
,
audio_url
:
String
,
isCorrect
:
Boolean
},
{
type
:
String
,
image_url
:
String
,
text
:
String
,
audio_url
:
String
,
isCorrect
:
Boolean
},
{
type
:
String
,
image_url
:
String
,
text
:
String
,
audio_url
:
String
,
isCorrect
:
Boolean
}
]
}
]
}
}
hotZoneItemArr
:
Array
<
Object
>
=
[];
hotZoneItemArr
:
Array
<
Object
>
=
[];
bgItem
:
Object
;
bgItem
:
Object
;
...
...
src/app/play/play.component.ts
View file @
3c232eb1
...
@@ -229,6 +229,7 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -229,6 +229,7 @@ export class PlayComponent implements OnInit, OnDestroy {
}
}
cleanGameVar
(){
cleanGameVar
(){
this
.
stopEndPatal
()
this
.
m_currentQuestion
=
0
;
this
.
m_currentQuestion
=
0
;
}
}
...
...
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