Commit 6bc2fea1 authored by limingzhe's avatar limingzhe

fix: 优化提交按钮出现时间

parent 35c1eb9a
...@@ -2219,6 +2219,7 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -2219,6 +2219,7 @@ export class PlayComponent implements OnInit, OnDestroy {
} }
this.showInputView(style, rect, targetRect.label.text || '', (value) => { this.showInputView(style, rect, targetRect.label.text || '', (value) => {
targetRect.label.text = value; targetRect.label.text = value;
this.checkShowSubmit();
}) })
} }
...@@ -2354,7 +2355,7 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -2354,7 +2355,7 @@ export class PlayComponent implements OnInit, OnDestroy {
sendResult() { sendResult() {
if (this.userResultPic && this.userResultData) { // if (this.userResultPic && this.userResultData) {
const c = window['courseware']; const c = window['courseware'];
if (!c) { if (!c) {
...@@ -2362,9 +2363,9 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -2362,9 +2363,9 @@ export class PlayComponent implements OnInit, OnDestroy {
} }
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: this.userResultData, resultPic: this.userResultPic || '', duration});
} // }
...@@ -3712,8 +3713,9 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -3712,8 +3713,9 @@ export class PlayComponent implements OnInit, OnDestroy {
convertCanvasToImage() { convertCanvasToImage() {
console.log('1'); console.log('1');
if (!this.uploadUrl) { if (!this.uploadUrl) {
this.userResultPic = true // this.userResultPic = ''//true
this.sendResult(); this.sendResult();
return return
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment