Browse Source

评分比例调整

bayi 1 year ago
parent
commit
8b6b97c2b2
1 changed files with 3 additions and 2 deletions
  1. 3 2
      pages/reading/index.js

+ 3 - 2
pages/reading/index.js

@@ -454,6 +454,7 @@ Page({
     // 获取测评结果
     async getRecordScore(res) {
         let result = res.result;
+        //0是中文,1是英文
         let businessType = this.data.videoInfo.userReadExtend.businessType
         let integrity = Math.floor(result.integrity); //完成度
         let accuracy = Math.floor(result.accuracy); // 准确度 发音分
@@ -462,9 +463,9 @@ Page({
         let myOverall = 0;
         if (businessType == 0) {
             tone = Math.floor(result.tone);
-            myOverall = Math.floor(integrity * 0.45 + accuracy * 0.35 + fluency * 0.1 + tone * 0.1);
+            myOverall = Math.floor(integrity * 0.5 + accuracy * 0.3 + fluency * 0.1 + tone * 0.1);
         } else if (businessType == 1) {
-            myOverall = Math.floor(integrity * 0.55 + accuracy * 0.35 + fluency * 0.1);
+            myOverall = Math.floor(integrity * 0.5 + accuracy * 0.3 + fluency * 0.2);
         }
         let detail = {
             integrity,