gcj 2 лет назад
Родитель
Сommit
48f89fe1bb
4 измененных файлов с 17 добавлено и 12 удалено
  1. 1 1
      package.json
  2. 11 10
      src/views/TextbookDetail.vue
  3. 2 1
      src/views/bookView.vue
  4. 3 0
      src/views/courseView.vue

+ 1 - 1
package.json

@@ -17,7 +17,7 @@
     "@tinymce/tinymce-vue": "^3.2.8",
     "awe-dnd": "^0.3.4",
     "axios": "0.18.1",
-    "book-ui": "file:../GCLS-Book-question-ui/book-ui-0.3.3.tgz",
+    "book-ui": "file:../GCLS-Book-question-ui/book-ui-0.3.4.tgz",
     "cnchar": "^3.0.1",
     "cnchar-all": "^3.0.1",
     "cnchar-order": "^3.0.1",

+ 11 - 10
src/views/TextbookDetail.vue

@@ -7,7 +7,7 @@
       <div class="shade"></div>
     </div>
     <!-- 教材详情 744 -->
-    <HeaderOne text="123" :title="$t('Key744')" name="" /> 
+    <HeaderOne text="123" :title="$t('Key744')" name="" />
     <template v-if="TextbookData.is_deleted == 'false'">
       <template v-if="bookIsBuy == 'true' || TextbookData.publish_status == 1">
         <div class="main" v-loading="loading">
@@ -162,6 +162,7 @@
               :bookId="TextBookId"
               @bookdetailShow="bookdetailShow"
               :bookIsBuy="bookIsBuy"
+              :bookFontSize="TextbookData.font_size"
             ></BookView>
           </div>
           <div v-else class="Resources">
@@ -172,7 +173,7 @@
           <img src="../assets/textBookDetail/upload.png" alt="" />
         </div> -->
             <div class="resource-content" v-if="fileListVideo.length > 0">
-                <!-- 视频资源 736 -->
+              <!-- 视频资源 736 -->
               <h2 class="video-title">{{ $t("Key736") }}</h2>
               <ul class="video-list">
                 <li
@@ -199,10 +200,10 @@
               class="resource-content"
               v-if="fileListAudio.length > 0 || fileListOtheraudio.length > 0"
             >
-            <!-- 音频资源737 -->
+              <!-- 音频资源737 -->
               <h2 class="video-title">{{ $t("Key737") }}</h2>
               <div class="audio-content" v-if="fileListAudio.length > 0">
-                  <!-- 课文资源 738 -->
+                <!-- 课文资源 738 -->
                 <p class="audio-type">{{ $t("Key738") }}</p>
                 <div class="audio-line-box">
                   <AudioLine
@@ -214,7 +215,7 @@
                 </div>
               </div>
               <div class="audio-content" v-if="fileListOtheraudio.length > 0">
-                  <!-- 自学音频 739 -->
+                <!-- 自学音频 739 -->
                 <p class="audio-type">{{ $t("Key739") }}</p>
                 <div class="audio-line-box">
                   <AudioLine
@@ -226,7 +227,7 @@
                 </div>
               </div>
               <div class="audio-content">
-                  <!-- 资源下载 740 -->
+                <!-- 资源下载 740 -->
                 <p class="audio-type">{{ $t("Key740") }}</p>
                 <div class="download">
                   <div class="book-open" @click="handleDownloadAudio">
@@ -248,7 +249,7 @@
               </div>
             </div>
             <div class="resource-content" v-if="fileListDoc.length > 0">
-                <!-- 试读PDF 741 -->
+              <!-- 试读PDF 741 -->
               <h2 class="video-title">{{ $t("Key741") }}</h2>
               <ul class="PDF-list">
                 <li
@@ -273,7 +274,7 @@
     </template>
     <template v-if="TextbookData.is_deleted == 'true'">
       <div class="noview-msg-box">
-          <!-- 无法查看,教材已被删除 742 -->
+        <!-- 无法查看,教材已被删除 742 -->
         <div class="noview-msg">{{ $t("Key742") }}</div>
       </div>
     </template>
@@ -285,7 +286,7 @@
       "
     >
       <div class="noview-msg-box">
-          <!-- 无法查看,教材已下架 743 -->
+        <!-- 无法查看,教材已下架 743 -->
         <div class="noview-msg">{{ $t("Key743") }}</div>
       </div>
     </template>
@@ -685,7 +686,7 @@ export default {
         "Key740",
         "Key741",
         "Key742",
-        "Key743"
+        "Key743",
       ],
     });
     this.isData = true;

+ 2 - 1
src/views/bookView.vue

@@ -93,6 +93,7 @@
             :change-id="changeId"
             :themeColor="themeColor"
             :isShowTitle="true"
+            :bookFontSize="bookFontSize"
           />
         </template>
       </div>
@@ -118,7 +119,7 @@ export default {
     TreeView,
     Preview,
   },
-  props: ["bookId", "bookIsBuy"],
+  props: ["bookId", "bookIsBuy","bookFontSize"],
   data() {
     return {
       chapterId: "",

+ 3 - 0
src/views/courseView.vue

@@ -106,6 +106,7 @@
             :change-id="changeId"
             :themeColor="themeColor"
             :isShowTitle="true"
+            :bookFontSize="bookFontSize"
           />
         </template>
       </div>
@@ -171,6 +172,7 @@ export default {
       type: "",
       name: "",
       loading: false,
+      bookFontSize: "",
       bookName: [
         {
           name: "新实用汉语课本1",
@@ -277,6 +279,7 @@ export default {
       getContent(MethodName, data).then((res) => {
         this.category = res.category;
         this.themeColor = res.book_theme_color;
+        this.bookFontSize = res.book_font_size;
         if (res.content) {
           const _this = this;
           if (!this.category || this.category == "OC") {