natasha il y a 3 ans
Parent
commit
008b84675d

+ 12 - 12
src/components/Adult/common/data.js

@@ -85,10 +85,10 @@ let fnData = [{
     //         mp3_list: []
     //     }
     // },
-    {
-        type: "single_chs",
-        name: "单选题",
-    },
+    // {
+    //     type: "single_chs",
+    //     name: "单选题",
+    // },
     // {
     //     type: "listen_record_single_chs",
     //     name: "听录音选答案",
@@ -661,18 +661,18 @@ let fnData = [{
     //         img_list: [],
     //     }
     // },
-    {
-        type: "NumberCombination_chs",
-        name: "数字组合",
-    },
+    // {
+    //     type: "NumberCombination_chs",
+    //     name: "数字组合",
+    // },
     {
         type: "toneSelect_chs",
         name: "音调选择",
     },
-    {
-        type: "sudoku_chs",
-        name: "数独",
-    },
+    // {
+    //     type: "sudoku_chs",
+    //     name: "数独",
+    // },
     {
         type: "text_problem_chs",
         name: "课文上方的问题",

+ 4 - 1
src/components/Adult/preview/DialogueArticleViewChs/AnswerModel.vue

@@ -523,6 +523,7 @@ export default {
       isHasRemark: false,
       paraArr: [],
       answer: [],
+      hengIndex:0,
     };
   },
   computed: {},
@@ -622,6 +623,7 @@ export default {
     handlePYData() {
       let pararArr = [];
       let curQue = JSON.parse(JSON.stringify(this.curQue));
+      this.hengIndex = 0
       curQue.detail.forEach((dItem, dIndex) => {
         let para = dItem.para;
         let paraObj = this.handlePara(para);
@@ -712,6 +714,8 @@ export default {
         if (item == "^") {
           obj.isHeng = true;
           obj.answer = "";
+          this.hengIndex ++;
+          obj.hengIndex = this.hengIndex;
         }
         resArr.push(obj);
       });
@@ -723,7 +727,6 @@ export default {
   created() {},
   //生命周期 - 挂载完成(可以访问DOM元素)
   mounted() {
-    console.log(this.Bookanswer);
     if (this.curQue) {
       if (this.curQue.font == "cn" || !this.curQue.font) {
         this.handleData();

+ 6 - 2
src/components/Adult/preview/DialogueArticleViewChs/WordModelChs.vue

@@ -281,7 +281,8 @@
           <div class="empty-right"></div>
         </div>
         <div class="dia-article-record">
-          <Soundrecord @handleWav="handleWav" type="promax" class="luyin-box" />
+          <Soundrecord @handleWav="handleWav" :TaskModel="TaskModel"
+            :answerRecordList="curQue.Bookanswer.wordModel.recordList" type="promax" class="luyin-box" />
         </div>
       </div>
     </template>
@@ -490,7 +491,10 @@ export default {
         this.$emit("changeConfig", "isShowEN");
       }
     },
-    handleWav() {},
+    handleWav(list, tmIndex) {
+      tmIndex = tmIndex ? tmIndex : 0;
+      this.$set(this.curQue.Bookanswer.wordModel, "recordList", list);
+    },
     getCurTime(curTime) {
       console.log(curTime);
       this.curTime = curTime * 1000;

+ 3 - 0
src/components/Adult/preview/DialogueArticleViewChs/index.vue

@@ -164,6 +164,9 @@ export default {
         },
         writeModel: {}, //生词/取词模式
         practiceModel: {}, //练习模式
+        wordModel: {
+          recordList: [],
+        },
       },
     };
   },