Преглед на файлове

修改课文标点 课件封面

natasha преди 1 година
родител
ревизия
559c5cf8d1

+ 15 - 8
src/components/Adult/preview/ArticleViewChs/NormalModelChs.vue

@@ -138,7 +138,8 @@
                               item.timeList &&
                               item.timeList[pItem.sentIndex] &&
                               curTime >= item.timeList[pItem.sentIndex].bg &&
-                              curTime <= item.timeList[pItem.sentIndex].ed
+                              curTime <= item.timeList[pItem.sentIndex].ed &&
+                              curTime
                                 ? 'active'
                                 : '',
                               pItem.paraIndex == paraIndex &&
@@ -250,7 +251,8 @@
                               item.timeList &&
                               item.timeList[pItem.sentIndex] &&
                               curTime >= item.timeList[pItem.sentIndex].bg &&
-                              curTime <= item.timeList[pItem.sentIndex].ed
+                              curTime <= item.timeList[pItem.sentIndex].ed &&
+                              curTime
                                 ? 'active'
                                 : '',
                               pItem.paraIndex == paraIndex &&
@@ -373,7 +375,8 @@
                               item.timeList &&
                               item.timeList[pItem.sentIndex] &&
                               curTime >= item.timeList[pItem.sentIndex].bg &&
-                              curTime <= item.timeList[pItem.sentIndex].ed
+                              curTime <= item.timeList[pItem.sentIndex].ed &&
+                              curTime
                                 ? 'active'
                                 : '',
                               pItem.paraIndex == paraIndex &&
@@ -480,7 +483,8 @@
                             item.timeList &&
                             item.timeList[pItem.sentIndex] &&
                             curTime >= item.timeList[pItem.sentIndex].bg &&
-                            curTime <= item.timeList[pItem.sentIndex].ed
+                            curTime <= item.timeList[pItem.sentIndex].ed &&
+                            curTime
                               ? 'active'
                               : '',
                             pItem.chs != '“' && pItem.padding && config.isShowPY
@@ -673,7 +677,8 @@
                               :class="[
                                 pItem.timeList[wIndex] &&
                                 curTime >= pItem.timeList[wIndex].wordBg &&
-                                curTime <= curQue.wordTime[index].ed
+                                curTime <= curQue.wordTime[index].ed &&
+                                curTime
                                   ? 'active'
                                   : '',
                                 sentIndex == index ? 'wordBlank' : ''
@@ -763,7 +768,8 @@
                               pItem.timeList[pItem.leg - 1] &&
                               curQue.wordTime &&
                               curTime >= pItem.timeList[pItem.leg - 1].wordBg &&
-                              curTime <= curQue.wordTime[index].ed
+                              curTime <= curQue.wordTime[index].ed &&
+                              curTime
                                 ? 'active'
                                 : '',
                               sentIndex == index ? 'wordBlank' : ''
@@ -866,7 +872,8 @@
                               pItem.timeList[pItem.leg - 1] &&
                               curQue.wordTime &&
                               curTime >= pItem.timeList[pItem.leg - 1].wordBg &&
-                              curTime <= curQue.wordTime[index].ed
+                              curTime <= curQue.wordTime[index].ed &&
+                              curTime
                                 ? 'active'
                                 : '',
                               sentIndex == index ? 'wordBlank' : ''
@@ -1092,7 +1099,7 @@ export default {
       resArr: [],
       resObj: null,
       curTime: 0, //单位s
-      chsFhList: [",", "。", "”", ":", "》", "?", "!", ";", "#"],
+      chsFhList: [",", "。", "”", ":", "》", "?", "!", ";", "#", "、"],
       enFhList: [",", ".", ";", "?", "!", ":", ">", "<"],
       NumberList: [
         "①",

+ 1 - 1
src/components/Adult/preview/ArticleViewChs/PhraseModelChs.vue

@@ -763,7 +763,7 @@ export default {
       resArr: [],
       resObj: null,
       curTime: 0, //单位s
-      chsFhList: [",", "。", "”", ":", "》", "?", "!", ";", "#"],
+      chsFhList: [",", "。", "”", ":", "》", "?", "!", ";", "#", "、"],
       enFhList: [",", ".", ";", "?", "!", ":", ">", "<"],
       NumberList: [
         "①",

+ 1 - 1
src/components/Adult/preview/ArticleViewChs/Practicechs.vue

@@ -469,7 +469,7 @@ export default {
     return {
       resObj: null,
       curTime: 0, //单位s
-      chsFhList: [",", "。", "”", ":", "》", "?", "!", ";"],
+      chsFhList: [",", "。", "”", ":", "》", "?", "!", ";", "、"],
       enFhList: [",", ".", ";", "?", "!", ":", ">", "<"],
       NumberList: [
         "①",

+ 9 - 5
src/components/Adult/preview/ArticleViewChs/WordModelChs.vue

@@ -103,7 +103,8 @@
                               item.timeList &&
                               item.timeList[pItem.sentIndex] &&
                               curTime >= item.timeList[pItem.sentIndex].bg &&
-                              curTime <= item.timeList[pItem.sentIndex].ed
+                              curTime <= item.timeList[pItem.sentIndex].ed &&
+                              curTime
                                 ? 'active'
                                 : '',
                               paraIndex == pItem.paraIndex &&
@@ -150,7 +151,8 @@
                               item.timeList &&
                               item.timeList[pItem.sentIndex] &&
                               curTime >= item.timeList[pItem.sentIndex].bg &&
-                              curTime <= item.timeList[pItem.sentIndex].ed
+                              curTime <= item.timeList[pItem.sentIndex].ed &&
+                              curTime
                                 ? 'active'
                                 : ''
                             ]"
@@ -211,7 +213,8 @@
                               item.timeList &&
                               item.timeList[pItem.sentIndex] &&
                               curTime >= item.timeList[pItem.sentIndex].bg &&
-                              curTime <= item.timeList[pItem.sentIndex].ed
+                              curTime <= item.timeList[pItem.sentIndex].ed &&
+                              curTime
                                 ? 'active'
                                 : '',
                               pItem.paraIndex == paraIndex &&
@@ -278,7 +281,8 @@
                             item.timeList &&
                             item.timeList[pItem.sentIndex] &&
                             curTime >= item.timeList[pItem.sentIndex].bg &&
-                            curTime <= item.timeList[pItem.sentIndex].ed
+                            curTime <= item.timeList[pItem.sentIndex].ed &&
+                            curTime
                               ? 'active'
                               : '',
                             pItem.chs != '“' && pItem.padding && config.isShowPY
@@ -651,7 +655,7 @@ export default {
       resArr: [],
       resObj: null,
       curTime: 0, //单位s
-      chsFhList: [",", "。", "”", ":", "》", "?", "!", ";"],
+      chsFhList: [",", "。", "”", ":", "》", "?", "!", ";", "、"],
       enFhList: [",", ".", ";", "?", "!", ":", ">", "<"],
       NumberList: [
         "①",

+ 1 - 1
src/components/Adult/preview/ArticleViewChs/index.vue

@@ -219,7 +219,7 @@ export default {
         .substr(2),
       isFull: false,
       resObj: null,
-      chsFhList: [",", "。", "”", ":", "》", "?", "!", ";"],
+      chsFhList: [",", "。", "”", ":", "》", "?", "!", ";", "、"],
       highWords: null,
       highWordsArr: [],
       highIndex: 0,

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

@@ -830,7 +830,7 @@ export default {
     return {
       resArr: [],
       curTime: 0, //单位s
-      chsFhList: [",", "。", "”", ":", "》", "?", "!", ";"],
+      chsFhList: [",", "。", "”", ":", "》", "?", "!", ";", "、"],
       enFhList: [",", ".", ";", "?", "!", ":", ">", "<"],
       newWords: ["鱼", "辩礼义"],
       noFont: ["~", "!", "@", "#", "$", "%", "^", "&", "*", "(", ")", "/", "_"],

+ 1 - 1
src/components/Adult/preview/DialogueArticleViewChs/NormalModelChs.vue

@@ -675,7 +675,7 @@ export default {
     return {
       resArr: [],
       curTime: 0, //单位s
-      chsFhList: [",", "。", "”", ":", "》", "?", "!", ";", "#"],
+      chsFhList: [",", "。", "”", ":", "》", "?", "!", ";", "#", "、"],
       enFhList: [",", ".", ";", "?", "!", ":", ">", "<"],
       NumberList: [
         "①",

+ 1 - 1
src/components/Adult/preview/DialogueArticleViewChs/PhraseModelChs.vue

@@ -530,7 +530,7 @@ export default {
     return {
       resArr: [],
       curTime: 0, //单位s
-      chsFhList: [",", "。", "”", ":", "》", "?", "!", ";", "#"],
+      chsFhList: [",", "。", "”", ":", "》", "?", "!", ";", "#", "、"],
       enFhList: [",", ".", ";", "?", "!", ":", ">", "<"],
       NumberList: [
         "①",

+ 1 - 1
src/components/Adult/preview/DialogueArticleViewChs/Practicechs.vue

@@ -601,7 +601,7 @@ export default {
       wavblob: null,
       resObj: null,
       curTime: 0, //单位s
-      chsFhList: [",", "。", "”", ":", "》", "?", "!", ";"],
+      chsFhList: [",", "。", "”", ":", "》", "?", "!", ";", "、"],
       enFhList: [",", ".", ";", "?", "!", ":", ">", "<"],
       NumberList: [
         "①",

+ 1 - 1
src/components/Adult/preview/DialogueArticleViewChs/WordModelChs.vue

@@ -481,7 +481,7 @@ export default {
     return {
       resArr: [],
       curTime: 0, //单位s
-      chsFhList: [",", "。", "”", ":", "》", "?", "!", ";"],
+      chsFhList: [",", "。", "”", ":", "》", "?", "!", ";", "、"],
       enFhList: [",", ".", ";", "?", "!", ":", ">", "<"],
       NumberList: [
         "①",

+ 1 - 1
src/components/Adult/preview/DialogueArticleViewChs/index.vue

@@ -232,7 +232,7 @@ export default {
         .substr(2),
       isFull: false,
       resObj: null,
-      chsFhList: [",", "。", "”", ":", "》", "?", "!", ";"],
+      chsFhList: [",", "。", "”", ":", "》", "?", "!", ";", "、"],
       highWords: null,
       highWordsArr: [],
       highIndex: 0,

+ 47 - 14
src/views/courseView.vue

@@ -14,11 +14,22 @@
           :current-tree-i-d="chapterId"
         />
       </div>
+
       <div
         id="data-screen"
         v-loading="loading"
         :class="['inner', fullscreen ? 'inner-full' : '']"
       >
+        <el-image
+          :src="pictureUrl"
+          fit="scale-down"
+          class="img_url"
+          v-if="!chapterId && pictureUrl"
+        >
+          <div slot="placeholder" class="image-slot">
+            <img src="../assets/common/icon-imgloading.png" />
+          </div>
+        </el-image>
         <!-- 显示答案按钮 -->
         <!-- <a v-if="chapterId" :class="['answerShow',isAnswerShow?'answerShowTrue':'']" @click="handleAnswerShow">显示答案</a> -->
         <!-- <a class="edit-btn" @click="handleEdit">编辑</a> -->
@@ -56,7 +67,7 @@
           :is-show-title="true"
           :book-answer-content="bookAnswerContent"
           :task-model="TaskModel"
-          :is-show-save="false"
+          :is-show-save="true"
           :isAnswerItemShow="isAnswerItemShow"
           @finishTaskMaterial="finishTaskMaterial"
         />
@@ -73,7 +84,7 @@
 <script>
 import Header from "@/components/Header.vue";
 import TreeView from "@/components/TreeView";
-import { getContent } from "@/api/ajax";
+import { getContent, TextbookAPI } from "@/api/ajax";
 import Cookies from "js-cookie";
 import Preview from "@/components/Adult/Preview.vue";
 import { getToken } from "../utils/auth";
@@ -82,7 +93,7 @@ export default {
   components: {
     Header,
     TreeView,
-    Preview,
+    Preview
   },
   props: [],
   data() {
@@ -104,12 +115,12 @@ export default {
             [
               {
                 data: {
-                  Bookanswer: [],
-                },
-              },
-            ],
-          ],
-        },
+                  Bookanswer: []
+                }
+              }
+            ]
+          ]
+        }
       ],
       bookAnswerContent: "",
       TaskModel: "", // TEST 考试模式; PRACTICE 练习模式; ANSWER 查看答案模式; 空 预览模式
@@ -119,6 +130,8 @@ export default {
       loading: false,
       fullTree: false, // 全屏模式下树是否显示
       isAnswerItemShow: false,
+      previewType: "previewCheck",
+      pictureUrl: ""
     };
   },
   created() {
@@ -133,8 +146,21 @@ export default {
     } else {
       _this.isAnswerItemShow = false;
     }
+    _this.getdetail();
   },
   methods: {
+    getdetail() {
+      let Mname = "book-book_manager-GetBook";
+      // 获取课程详情
+      TextbookAPI(Mname, {
+        id: this.bookId
+      })
+        .then(res => {
+          this.pictureUrl = res.picture_url;
+          debugger;
+        })
+        .catch(res => {});
+    },
     changeTreeData(val) {
       this.FatherTreeData = JSON.parse(JSON.stringify(val));
     },
@@ -170,10 +196,10 @@ export default {
       _this.context = null;
       const MethodName = "book-courseware_manager-GetCoursewareContent_View";
       const data = {
-        id: _this.chapterId,
+        id: _this.chapterId
       };
       getContent(MethodName, data)
-        .then((res) => {
+        .then(res => {
           _this.loading = false;
           this.category = res.category;
           this.themeColor = res.book_theme_color;
@@ -186,7 +212,7 @@ export default {
                   ? JSON.parse(res.content).question.ui_type
                   : "",
                 sort_number: 1,
-                content: JSON.parse(res.content),
+                content: JSON.parse(res.content)
               };
             } else if (this.category == "NPC") {
               _this.context = JSON.parse(res.content);
@@ -232,8 +258,8 @@ export default {
       console.log("答题时间" + time);
       console.log("答对个数" + rightNumber);
       console.log("答错个数" + errorNumber);
-    },
-  },
+    }
+  }
 };
 </script>
 <style lang="scss" scoped>
@@ -256,6 +282,8 @@ export default {
       top: 0px;
       left: 0;
       padding-top: 64px;
+      z-index: 2;
+      background: #fff;
     }
     .content-tree-full {
       position: fixed;
@@ -422,6 +450,11 @@ export default {
     }
   }
 }
+.img_url {
+  width: 1000px;
+  height: 700px;
+  margin: 0 auto;
+}
 </style>
 <style lang="scss">
 .title-box {