Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
JM_4-2
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_4-2
Commits
af45e245
Commit
af45e245
authored
Aug 16, 2021
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 提交成绩
parent
101df70b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
3 deletions
+21
-3
play.component.ts
src/app/play/play.component.ts
+15
-3
index.html
src/index.html
+6
-0
No files found.
src/app/play/play.component.ts
View file @
af45e245
...
@@ -845,10 +845,22 @@ export class PlayComponent implements OnInit, OnDestroy {
...
@@ -845,10 +845,22 @@ export class PlayComponent implements OnInit, OnDestroy {
sendResult
()
{
sendResult
()
{
const
resultAnswerArr
=
[];
for
(
let
i
=
0
;
i
<
this
.
sentenceArr
.
length
;
i
++
)
{
const
data
=
{};
const
{
text
,
answer
}
=
this
.
sentenceArr
[
i
];
data
[
'
question
'
]
=
{
text
,
answer
};
data
[
'
userAnswer
'
]
=
this
.
answerArr
[
i
];
resultAnswerArr
.
push
(
data
);
}
const
result
DataStr
=
JSON
.
stringify
(
this
.
resultSentence
Arr
);
const
result
Str
=
JSON
.
stringify
(
resultAnswer
Arr
);
console
.
log
(
'
result
DataStr:
'
,
resultData
Str
);
console
.
log
(
'
result
Str:
'
,
result
Str
);
window
.
parent
.
postMessage
({
action
:
'
temp_send_result
'
,
data
:
result
DataStr
},
'
*
'
);
window
.
parent
.
postMessage
({
action
:
'
temp_send_result
'
,
data
:
result
Str
,
key
:
'
4-2
'
},
'
*
'
);
}
}
...
...
src/index.html
View file @
af45e245
...
@@ -9,6 +9,12 @@
...
@@ -9,6 +9,12 @@
<link
rel=
"icon"
type=
"image/x-icon"
href=
"favicon.ico"
>
<link
rel=
"icon"
type=
"image/x-icon"
href=
"favicon.ico"
>
<script
type=
"text/javascript"
src=
"https://staging-teach.cdn.ireadabc.com/h5template/h5-static-lib/js/air.js"
></script>
<script
type=
"text/javascript"
src=
"https://staging-teach.cdn.ireadabc.com/h5template/h5-static-lib/js/air.js"
></script>
<!-- <script src="https://cdn.bootcdn.net/ajax/libs/vConsole/3.9.0/vconsole.min.js"></script>
<script>
// init vConsole
var vConsole = new VConsole();
console.log('Hello world');
</script> -->
</head>
</head>
<body>
<body>
<app-root></app-root>
<app-root></app-root>
...
...
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