natasha 1 день тому
батько
коміт
570d534437

+ 3 - 3
src/views/book/courseware/preview/components/article/Voicefullscreen.vue

@@ -100,7 +100,7 @@
               ]"
             ></span>
           </div>
-          <div
+          <!-- <div
             :class="['op-btn', bgIndex == 1 ? 'op-btn-green' : '']"
             title="点击收藏后可在“个人中心”-“我的收藏”查看"
             @click="handleColl"
@@ -112,7 +112,7 @@
                 isCollArr[curSentIndex] && bgIndex == 1 ? 'coll-icon-yellow' : '',
               ]"
             ></span>
-          </div>
+          </div> -->
         </div>
         <div :class="['op-btn', bgIndex == 1 ? 'op-btn-green' : '']" @click="exitFullScreen">
           <span :class="['close-icon', bgIndex == 1 ? 'close-icon-white' : '']"></span>
@@ -1087,7 +1087,7 @@ export default {
       } else {
         _this.maxTime = maxTime;
       }
-      _this.checkCollStatus();
+      // _this.checkCollStatus();
     },
     pauseAudio() {
       let audio = document.getElementsByTagName('audio');

+ 5 - 5
src/views/book/courseware/preview/components/article/components/Practice.vue

@@ -39,7 +39,7 @@
               </div>
             </div>
             <div v-if="TaskModel != 'ANSWER'" class="footer">
-              <div class="bg-box" @click="handleColl">
+              <!-- <div class="bg-box" @click="handleColl">
                 <template v-if="collFlag">
                   <img
                     :src="
@@ -69,7 +69,7 @@
                   />
                 </template>
                 {{ collFlag ? '已收藏' : '收藏' }}
-              </div>
+              </div> -->
             </div>
           </div>
           <template>
@@ -121,7 +121,7 @@
             </div>
             <div class="left-content-pra"></div>
             <div v-if="TaskModel != 'ANSWER'" class="footer">
-              <div class="bg-box" @click="handleColl">
+              <!-- <div class="bg-box" @click="handleColl">
                 <template v-if="collFlag">
                   <img
                     :src="
@@ -151,7 +151,7 @@
                   />
                 </template>
                 {{ collFlag ? '已收藏' : '收藏' }}
-              </div>
+              </div> -->
             </div>
           </div>
           <template>
@@ -237,7 +237,7 @@ export default {
     let color = _this.colorsList[_this.colorIndex];
     _this.hanzicolor = color;
     _this.hanziweight = 6;
-    _this.checkCollStatus();
+    // _this.checkCollStatus();
     const regExp = /Android|webOS|iPhone|BlackBerry|IEMobile|Opera Mini/i;
     this.isPhone = regExp.test(navigator.userAgent);
   },

+ 1 - 1
src/views/book/courseware/preview/components/article/components/WordPhraseDetail.vue

@@ -67,7 +67,7 @@
                 <Audio :mp3="data.mp3Url" :theme-color="themeColor" :bg="bg" :ed="ed" />
               </template>
             </div>
-            <p class="jieshu" v-html="data.definition_list"></p>
+            <p v-if="data.definition_list.length > 0" class="jieshu" v-html="data.definition_list"></p>
           </div>
         </div>
         <div class="zhedie-white">

+ 4 - 4
src/views/book/courseware/preview/components/article/components/Wordcard.vue

@@ -84,7 +84,7 @@
       </template>
       <div class="bwc-more-intp" @click="viewIntp">more</div>
       <div class="bwc-footer">
-        <button class="bwc-btn" @click="handleColl">
+        <!-- <button class="bwc-btn" @click="handleColl">
           <template v-if="!collFlag">
             <img
               :src="
@@ -114,7 +114,7 @@
             />
           </template>
           {{ collFlag ? '已收藏' : '收藏' }}
-        </button>
+        </button> -->
         <button
           v-if="word.detail.new_word.length == 1"
           class="bwc-btn bwc-btn2"
@@ -426,7 +426,7 @@ export default {
       }
       this.word.detail.mp3Url = this.mp3Url;
       console.log(this.word.detail);
-      if (_this.word.detail.definition_list) {
+      if (_this.word.detail.definition_list && _this.word.detail.definition_list.length > 0) {
         // _this.word.detail.definition_list.forEach((item) => {
         if (/^[\u4E00-\u9FA5]+$/.test(_this.word.detail.definition_list)) {
           this.defChsArr.push(_this.word.detail.definition_list);
@@ -435,7 +435,7 @@ export default {
         }
         // });
       }
-      _this.checkCollStatus();
+      // _this.checkCollStatus();
     },
   }, // 如果页面有keep-alive缓存功能,这个函数会触发
 };