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
1a589246
Commit
1a589246
authored
Nov 11, 2021
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 提交部分重写
parent
6bc2fea1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
14 deletions
+26
-14
play.component.ts
src/app/play/play.component.ts
+26
-14
No files found.
src/app/play/play.component.ts
View file @
1a589246
...
@@ -881,9 +881,10 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -881,9 +881,10 @@ export class PlayComponent implements OnInit, OnDestroy {
}
else
{
}
else
{
const
resultData
=
this
.
getResultData
();
const
resultData
=
this
.
getResultData
();
this
.
userResultData
=
resultData
;
this
.
userResultData
=
resultData
;
this
.
sendResult
();
this
.
setStoreData
(
'
resultData
'
,
resultData
);
this
.
setStoreData
(
'
resultData
'
,
resultData
);
}
}
this
.
sendResult
();
const
resultLayer
=
new
MySprite
()
const
resultLayer
=
new
MySprite
()
...
@@ -1853,20 +1854,23 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -1853,20 +1854,23 @@ export class PlayComponent implements OnInit, OnDestroy {
this
.
canTouch
=
false
;
this
.
canTouch
=
false
;
setTimeout
(()
=>
{
setTimeout
(()
=>
{
// this.hideSubmit();
this
.
convertCanvasToImage
();
this
.
convertCanvasToImage
();
// this.hideSubmit();
setTimeout
(()
=>
{
this
.
setAnswerData
(()
=>
{
this
.
initResultView
();
this
.
canTouch
=
true
;
});
// setTimeout(() => {
// this.firstShowResultView();
// }, 10);
},
10
);
},
500
);
}
},
500
);
firstShowResultView
()
{
this
.
setAnswerData
(()
=>
{
this
.
initResultView
();
this
.
canTouch
=
true
;
});
}
}
cancelBtnClick
()
{
cancelBtnClick
()
{
...
@@ -2362,8 +2366,11 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -2362,8 +2366,11 @@ export class PlayComponent implements OnInit, OnDestroy {
return
;
return
;
}
}
const
resultData
=
this
.
getStoreData
(
'
resultData
'
)
||
{};
const
resultPic
=
this
.
getStoreData
(
'
resultPic
'
)
||
''
;
const
duration
=
new
Date
().
getTime
()
-
this
.
localStartTime
;
const
duration
=
new
Date
().
getTime
()
-
this
.
localStartTime
;
c
.
sendAnswer
({
resultData
:
this
.
userResultData
,
resultPic
:
this
.
userResultPic
||
''
,
duration
});
c
.
sendAnswer
({
resultData
,
resultPic
,
duration
});
// }
// }
...
@@ -3716,7 +3723,9 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -3716,7 +3723,9 @@ export class PlayComponent implements OnInit, OnDestroy {
if
(
!
this
.
uploadUrl
)
{
if
(
!
this
.
uploadUrl
)
{
// this.userResultPic = ''//true
// this.userResultPic = ''//true
this
.
sendResult
();
// this.sendResult();
this
.
firstShowResultView
();
return
return
}
}
console
.
log
(
'
2 uploadUrl:
'
,
this
.
uploadUrl
.
toString
());
console
.
log
(
'
2 uploadUrl:
'
,
this
.
uploadUrl
.
toString
());
...
@@ -3741,7 +3750,10 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -3741,7 +3750,10 @@ export class PlayComponent implements OnInit, OnDestroy {
if
(
res
[
'
url
'
])
{
if
(
res
[
'
url
'
])
{
console
.
log
(
'
res url:
'
,
res
[
'
url
'
]);
console
.
log
(
'
res url:
'
,
res
[
'
url
'
]);
this
.
userResultPic
=
res
[
'
url
'
];
this
.
userResultPic
=
res
[
'
url
'
];
this
.
sendResult
();
// this.sendResult();
this
.
setStoreData
(
'
resultPic
'
,
this
.
userResultPic
);
this
.
firstShowResultView
();
}
}
});
});
...
...
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