Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
JM-07
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-07
Commits
20699f42
Commit
20699f42
authored
Oct 25, 2021
by
liujiaxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: add vconsole
parent
5771e98b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
7 deletions
+15
-7
index.html
play/index.html
+3
-3
index.js
play/index.js
+12
-4
No files found.
play/index.html
View file @
20699f42
...
...
@@ -12,10 +12,10 @@
<link
href=
"./index.css"
rel=
"stylesheet"
>
<script
type=
"text/javascript"
src=
"//staging-teach.cdn.ireadabc.com/h5template/h5-static-lib/js/air_online_open.js"
></script>
<
!-- <script src='https://cdn.bootcss.com/vConsole/3.2
.2/vconsole.min.js' type="text/javascript" charset="utf-8"></script>
<
script
src=
'https://cdn.bootcss.com/vConsole/3.9
.2/vconsole.min.js'
type=
"text/javascript"
charset=
"utf-8"
></script>
<script>
window
.
vConsole
=
new
window
.
VConsole
()
</script>
-->
</script>
</head>
<body>
...
...
play/index.js
View file @
20699f42
...
...
@@ -837,9 +837,9 @@ function bindConfirmBtn() {
let
data
=
JSON
.
parse
(
recorderArr
[
i
].
data
);
text
+=
"
"
+
data
.
text
;
}
console
.
log
(
'
greadPapersForText1
'
,
text
);
cw
.
greadPapersForText
(
text
,
function
(
data
)
{
console
.
log
(
'
greadPapersForText2
'
,
data
);
stuUserAspect
.
recorderScoreObj
=
{
result
:
data
,
text
:
text
...
...
@@ -859,11 +859,16 @@ function bindConfirmBtn() {
}
function
drawResult
(
data
,
text
)
{
console
.
log
(
'
drawResult data
'
,
data
);
console
.
log
(
'
drawResult text
'
,
text
);
$
(
"
#exercise
"
).
hide
();
$
(
"
#result
"
).
show
();
let
temp
=
{
overall
:
0
,
detail
:
null
}
try
{
temp
=
JSON
.
parse
(
data
);
}
catch
(
e
)
{
let
temp
=
JSON
.
parse
(
data
);
}
const
timeLen
=
stuUserAspect
.
recorderTimeLenArr
.
reduce
((
a
,
b
)
=>
a
+
b
,
0
);
let
{
integrity
,
fluency
}
=
scoreByText
(
text
,
$
(
"
#keyWord
"
).
val
(),
timeLen
);
...
...
@@ -926,6 +931,9 @@ function insertString(string, insert, index){
}
function
annotation
(
text
,
detail
){
if
(
!
detail
)
{
return
{
annotationHtml
:
''
,
evaluateHtml
:
'
很遗憾您这次没有获得成绩,下次请认真对待哦~
'
};
}
let
annotationHtml
=
""
;
const
allFeatureAdvice
=
detail
.
AllFeatureAdvice
;
let
evaluateHtml
=
`
${
allFeatureAdvice
.
WordDiversity
}
;
${
allFeatureAdvice
.
Structure
}
;
${
allFeatureAdvice
.
Spelling
}
;
${
allFeatureAdvice
.
Grammar
}
<br>`
;
...
...
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