Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
YM4-11
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
YM4-11
Commits
6c32f508
Commit
6c32f508
authored
Oct 13, 2020
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fix
parent
022ef2ad
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
0 deletions
+12
-0
play.component.ts
src/app/play/play.component.ts
+11
-0
resources.js
src/app/play/resources.js
+1
-0
cuowu.mp3
src/assets/play/sound/cuowu.mp3
+0
-0
No files found.
src/app/play/play.component.ts
View file @
6c32f508
...
@@ -626,7 +626,15 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -626,7 +626,15 @@ export class PlayComponent implements OnInit, OnDestroy {
this
.
g_enableMapUp
=
true
;
this
.
g_enableMapUp
=
true
;
return
;
return
;
}
}
if
(
!
this
.
m_elementDraged
)
{
this
.
g_enableMapUp
=
true
;
return
;
}
if
(
this
.
m_currentQuestionIndex
!=
element
.
questionIndex
)
{
if
(
this
.
m_currentQuestionIndex
!=
element
.
questionIndex
)
{
this
.
g_cartoon
.
stopAllAudio
()
this
.
g_cartoon
.
playAudio
(
"
cuowu
"
)
this
.
g_enableMapUp
=
true
;
this
.
g_enableMapUp
=
true
;
return
;
return
;
}
}
...
@@ -640,6 +648,9 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -640,6 +648,9 @@ export class PlayComponent implements OnInit, OnDestroy {
this
.
g_cartoon
.
playAudio
(
"
sm-choice-correct
"
)
this
.
g_cartoon
.
playAudio
(
"
sm-choice-correct
"
)
break
;
break
;
}
}
}
else
{
this
.
g_cartoon
.
stopAllAudio
()
this
.
g_cartoon
.
playAudio
(
"
cuowu
"
)
}
}
}
}
...
...
src/app/play/resources.js
View file @
6c32f508
...
@@ -72,6 +72,7 @@ const localAudios = {
...
@@ -72,6 +72,7 @@ const localAudios = {
'
sm-go
'
:
'
assets/default/audio/sm-go.mp3
'
,
'
sm-go
'
:
'
assets/default/audio/sm-go.mp3
'
,
'
sm-ready
'
:
'
assets/default/audio/sm-ready.mp3
'
,
'
sm-ready
'
:
'
assets/default/audio/sm-ready.mp3
'
,
'
cuowu
'
:
'
assets/play/sound/cuowu.mp3
'
};
};
const
multiSizeBackground
=
{
const
multiSizeBackground
=
{
...
...
src/assets/play/sound/cuowu.mp3
0 → 100644
View file @
6c32f508
File added
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