From fe52c75b42ef2815dc5c66e964c2b388ed09d097 Mon Sep 17 00:00:00 2001
From: zhongshujie <2862698242@qq.com>
Date: 星期五, 25 四月 2025 11:28:21 +0800
Subject: [PATCH] 环境变量修改

---
 src/books/mathBook/view/components/index.vue |   18 ++++++++++--------
 1 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/src/books/mathBook/view/components/index.vue b/src/books/mathBook/view/components/index.vue
index 6dc4112..74c5672 100644
--- a/src/books/mathBook/view/components/index.vue
+++ b/src/books/mathBook/view/components/index.vue
@@ -50,6 +50,7 @@
 </template>
 
 <script>
+import Vue from "vue";
 import axios from "axios";
 import pageHeader from "./header.vue";
 import chapterOne from "./chapter001.vue";
@@ -188,8 +189,8 @@
     }, 500);
 
     // 娴嬭瘯椤甸潰璺宠浆
-    setTimeout(() => {
-      this.gotoPage(4,99);
+    //  setTimeout(() => {
+    //  this.gotoPage(4,79);
     //   //   setTimeout(() => {
     //   //     this.renderSign("Highlight", {
     //   //       id: "2ACA9359",
@@ -217,7 +218,7 @@
     //   //   txt: " 杩愬姩绯荤粺鏄敱楠ㄣ�侀杩炵粨鍜岄楠艰倢涓夐儴鍒嗙粍鎴愮殑銆傚叏韬殑楠ㄩ�氳繃楠ㄨ繛缁撶粍鎴愪汉浣撻楠硷紙瑙佸浘1-1锛夈�傞楠兼槸浜轰綋鐨勬敮鏋讹紝鍏锋湁淇濇姢鍐呰剰鍣ㄥ畼銆佷緵鑲岃倝闄勭潃鍜屼綔涓鸿倢鑲夎繍鍔ㄧ殑鏉犳潌绛変綔鐢ㄣ�傚湪绁炵粡绯荤粺鐨勬敮閰嶄笅锛岃倢鑲夋敹缂╃壍鍔ㄦ墍闄勭潃鐨勯缁曠潃鍏宠妭杞姩锛屼娇韬綋浜х敓鍚勭鍔ㄤ綔銆傛墍浠ワ紝杩愬姩绯荤粺鍏锋湁杩愬姩銆佹敮鎸佸拰淇濇姢绛夊姛鑳斤紝骞煎勾鏃舵湡鐨勯楠艰繕鍏锋湁閫犺鍔熻兘銆� ",
     //   //   txtIndex: 57
     //   // });
-    }, 500);
+    //  }, 500);
 
     // 鑾峰彇棰樼洰id鍒楄〃
     this.getQuestionId();
@@ -523,7 +524,6 @@
       });
     },
     getParentWithClass(element, className) {
-      console.log(element, className, "element, className");
       while (element.parentElement) {
         element = element.parentElement;
         if (element.classList.contains(className)) {
@@ -591,8 +591,8 @@
                     }
                     this.questionDataMap[page] = obj;
                   }
+                  console.log('棰樼洰',this.questionDataMap);
                 }
-                console.log(1, this.questionDataMap);
               }
             }
             // 娓叉煋杩欎竴椤电殑鏍囪
@@ -872,9 +872,10 @@
             console.log("鏆傛棤鏁版嵁");
           }
         })
-        .catch((res) => {
+        .catch(() => {
           console.log("index 璇锋眰棰樼洰鏀惰棌id鎶ラ敊");
         });
+      console.log('鏀惰棌id',this.collectId);
     },
     // 鑾峰彇绔犺妭棰樼洰
     async getQuestion(num, page, questionIndex) {
@@ -899,6 +900,7 @@
           catalogName: "绠�绛旈",
           infoList: [],
         },
+        
       ];
       if (this.questionId) {
         if (this.questionId[num] && this.questionId[num][page]) {
@@ -910,7 +912,6 @@
             if (!res.data) return [];
             this.questionList = res.data.data;
             this.questionDataIndex = res.data.chapterNum;
-            console.log("绔犺妭鍙�", num, res);
           }
           let ids = [];
           questionIndex
@@ -953,7 +954,8 @@
                 if (item.questionType == "completion") {
                   cardList[3].infoList.push(item);
                 }
-                if (item.questionType == "shortAnswer") {
+                if (item.questionType == "shortAnswer" ||item.questionType == "formula") {
+                  if(typeof item.userAnswer != 'string') console.log('澶辫触',item);
                   cardList[4].infoList.push(item);
                 }
               }

--
Gitblit v1.9.1