Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
JM-15
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
JM-15
Commits
6bc2fea1
Commit
6bc2fea1
authored
Nov 10, 2021
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 优化提交按钮出现时间
parent
35c1eb9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
play.component.ts
src/app/play/play.component.ts
+6
-4
No files found.
src/app/play/play.component.ts
View file @
6bc2fea1
...
...
@@ -2219,6 +2219,7 @@ export class PlayComponent implements OnInit, OnDestroy {
}
this
.
showInputView
(
style
,
rect
,
targetRect
.
label
.
text
||
''
,
(
value
)
=>
{
targetRect
.
label
.
text
=
value
;
this
.
checkShowSubmit
();
})
}
...
...
@@ -2354,7 +2355,7 @@ export class PlayComponent implements OnInit, OnDestroy {
sendResult
()
{
if
(
this
.
userResultPic
&&
this
.
userResultData
)
{
//
if (this.userResultPic && this.userResultData) {
const
c
=
window
[
'
courseware
'
];
if
(
!
c
)
{
...
...
@@ -2362,9 +2363,9 @@ export class PlayComponent implements OnInit, OnDestroy {
}
const
duration
=
new
Date
().
getTime
()
-
this
.
localStartTime
;
c
.
sendAnswer
({
resultData
:
this
.
userResultData
,
resultPic
:
this
.
userResultPic
,
duration
});
c
.
sendAnswer
({
resultData
:
this
.
userResultData
,
resultPic
:
this
.
userResultPic
||
''
,
duration
});
}
//
}
...
...
@@ -3712,8 +3713,9 @@ export class PlayComponent implements OnInit, OnDestroy {
convertCanvasToImage
()
{
console
.
log
(
'
1
'
);
if
(
!
this
.
uploadUrl
)
{
this
.
userResultPic
=
true
// this.userResultPic = ''//
true
this
.
sendResult
();
return
}
...
...
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