natasha hai 1 ano
pai
achega
d4f425fa46

+ 8 - 0
src/views/bookShelf/articleDetail.vue

@@ -202,6 +202,14 @@
           <div
             class="title"
             :style="{ color: bgColorList[activeIndex].glossaryTitle }"
+            v-if="
+              (articleInfo.art_voc_data &&
+                articleInfo.art_voc_data.length > 0) ||
+              (articleInfo.art_phrase_data &&
+                articleInfo.art_phrase_data.length > 0) ||
+              (articleInfo.art_explain_data &&
+                articleInfo.art_explain_data.length > 0)
+            "
           >
             <h2>词汇表</h2>
             <a @click="showGlossary = !showGlossary">{{

+ 13 - 0
src/views/bookShelf/components/InnerTextSearch.vue

@@ -75,6 +75,19 @@
         </span>
       </h2>
     </template>
+    <h2 v-else>
+      <span
+        :style="{
+          color: colorObj.titleColor,
+          fontSize: titleFontsize + 'px',
+          lineHeight: titleFontsize + 8 + 'px',
+          marginRight: '10px',
+          fontWeight: '700',
+          cursor: 'pointer',
+        }"
+        >{{ articleInfo.art_title }}</span
+      >
+    </h2>
     <h6
       class="nnpe-article-author"
       :style="{

+ 13 - 0
src/views/bookShelf/components/LexicalType.vue

@@ -159,6 +159,19 @@
         </span>
       </h2>
     </template>
+    <h2 v-else>
+      <span
+        :style="{
+          color: colorObj.titleColor,
+          fontSize: titleFontsize + 'px',
+          lineHeight: titleFontsize + 8 + 'px',
+          marginRight: '10px',
+          fontWeight: '700',
+          cursor: 'pointer',
+        }"
+        >{{ articleInfo.art_title }}</span
+      >
+    </h2>
     <h6
       class="nnpe-article-author"
       :style="{

+ 13 - 0
src/views/bookShelf/components/NormalModel.vue

@@ -93,6 +93,19 @@
         </span>
       </h2>
     </template>
+    <h2 v-else>
+      <span
+        :style="{
+          color: colorObj.titleColor,
+          fontSize: titleFontsize + 'px',
+          lineHeight: titleFontsize + 8 + 'px',
+          marginRight: '10px',
+          fontWeight: '700',
+          cursor: 'pointer',
+        }"
+        >{{ articleInfo.art_title }}</span
+      >
+    </h2>
     <h6
       class="nnpe-article-author"
       :style="{

+ 1 - 1
src/views/bookShelf/components/NotesModel.vue

@@ -16,7 +16,7 @@
           >
             <span
               class="NNPE-chs"
-              v-html="resArr[0].text"
+              v-html="resArr[0].text || articleInfo.art_title"
               @mousedown="mouseupClick(resArr[0], 0)"
             ></span>
             <!-- {{itemR.tokens[2]}} -->

+ 16 - 1
src/views/bookShelf/components/PhraseModel.vue

@@ -1,7 +1,9 @@
 <!--  -->
 <template>
   <div class="NNPE-ArticleView" v-if="articleInfo">
-    <template v-if="resArr[0] && resArr[0].wordsList">
+    <template
+      v-if="resArr[0] && resArr[0].wordsList && resArr[0].wordsList.length > 0"
+    >
       <h2>
         <span
           v-for="(itemR, indexR) in resArr[0].wordsList"
@@ -82,6 +84,19 @@
         </span>
       </h2>
     </template>
+    <h2 v-else>
+      <span
+        :style="{
+          color: colorObj.titleColor,
+          fontSize: titleFontsize + 'px',
+          lineHeight: titleFontsize + 8 + 'px',
+          marginRight: '10px',
+          fontWeight: '700',
+          cursor: 'pointer',
+        }"
+        >{{ articleInfo.art_title }}</span
+      >
+    </h2>
     <h6
       class="nnpe-article-author"
       :style="{

+ 13 - 0
src/views/bookShelf/components/PracticeModel.vue

@@ -62,6 +62,19 @@
         </span>
       </h2>
     </template>
+    <h2 v-else>
+      <span
+        :style="{
+          color: colorObj.titleColor,
+          fontSize: titleFontsize + 'px',
+          lineHeight: titleFontsize + 8 + 'px',
+          marginRight: '10px',
+          fontWeight: '700',
+          cursor: 'pointer',
+        }"
+        >{{ articleInfo.art_title }}</span
+      >
+    </h2>
     <h6
       class="nnpe-article-author"
       :style="{

+ 18 - 1
src/views/bookShelf/components/PrintModel.vue

@@ -10,7 +10,11 @@
     <div class="print-model-bottom">
       <div class="print-model-bottom-left" id="showWaterMark" ref="printArea">
         <div class="print-inner">
-          <template v-if="resArr[0] && resArr[0].wordsList">
+          <template
+            v-if="
+              resArr[0] && resArr[0].wordsList && resArr[0].wordsList.length > 0
+            "
+          >
             <h2>
               <span
                 v-for="(itemR, indexR) in resArr[0].wordsList"
@@ -67,6 +71,19 @@
               </span>
             </h2>
           </template>
+          <h2 v-else>
+            <span
+              :style="{
+                color: colorObj.titleColor,
+                fontSize: titleFontsize + 'px',
+                lineHeight: titleFontsize + 8 + 'px',
+                marginRight: '10px',
+                fontWeight: '700',
+                cursor: 'pointer',
+              }"
+              >{{ articleInfo.art_title }}</span
+            >
+          </h2>
           <h6
             class="nnpe-article-author"
             :style="{

+ 0 - 3
src/views/dictionary/searchDetail.vue

@@ -1008,9 +1008,6 @@ export default {
         font-size: 16px;
         line-height: 24px;
       }
-      img {
-        width: 24px;
-      }
     }
     .definition-list {
       padding-bottom: 8px;

+ 1 - 1
src/views/evaluation/evaluDetail.vue

@@ -51,7 +51,7 @@
                     .content.contentArr"
                 >
                   <h5
-                    :key="indexs"
+                    :key="'content' + indexs"
                     :class="[
                       questionDetailList[activeIndex].content.contentArr
                         .length > 1