Commit 8d557ef8 authored by liujiangnan's avatar liujiangnan

feat: 数字

parent 6a3b8895
...@@ -841,11 +841,11 @@ function drawResult(data, text) { ...@@ -841,11 +841,11 @@ function drawResult(data, text) {
const timeLen = stuUserAspect.recorderTimeLenArr.reduce((a, b) => a + b, 0 ); const timeLen = stuUserAspect.recorderTimeLenArr.reduce((a, b) => a + b, 0 );
let {integrity, fluency} = scoreByText(text, $("#keyWord").val(), timeLen); let {integrity, fluency} = scoreByText(text, $("#keyWord").val(), timeLen);
$("#complete").text(integrity * 100); $("#complete").text(Math.floor(integrity * 100));
$("#fluent").text(fluency * 100); $("#fluent").text(Math.floor(fluency * 100));
$("#grammar").text(temp.overall); $("#grammar").text(temp.overall);
let score = integrity * 60 + fluency * 20 + (temp.overall-0) * 0.20 ; let score = Math.floor(integrity * 60 + fluency * 20 + (temp.overall-0) * 0.20);
let imgSrc = ""; let imgSrc = "";
let tips = ""; let tips = "";
......
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