Parcourir la source

根据要求去掉生词预览的文字

natasha il y a 5 jours
Parent
commit
4130a8c860

+ 4 - 17
src/views/book/courseware/preview/components/new_word/NewWordPreview.vue

@@ -624,7 +624,6 @@
                         </span>
                         <div v-if="sItem.collocation && showObj.collocation">
                           <span class="collocation"
-                            ><span>{{ convertText('搭配:') }}</span
                             ><b
                               :style="{
                                 fontSize:
@@ -646,8 +645,7 @@
                           </span>
                         </div>
                         <div v-if="sItem.liju_list && showObj.liju">
-                          <span class="collocation"
-                            ><span>{{ convertText('例句:') }}</span>
+                          <span class="collocation">
                             <div>
                               <b
                                 :style="{
@@ -672,8 +670,7 @@
                         </div>
                         <template v-for="(itemC, indexC) in data.addCol">
                           <div v-if="sItem[itemC.key] && showObj[itemC.key]" :key="indexC">
-                            <span class="collocation"
-                              ><span>{{ convertText(itemC.label + ':') }}</span>
+                            <span class="collocation">
                               <div>
                                 <b
                                   :style="{
@@ -1100,7 +1097,6 @@
                         }"
                       >
                         <span v-if="sItem.collocation" class="collocation"
-                          ><span>{{ convertText('搭配:') }}</span
                           ><b
                             :style="{
                               fontSize:
@@ -1128,8 +1124,7 @@
                           flex: !data.col_width[5].value || data.col_width[5].value === '0' ? '1' : '',
                         }"
                       >
-                        <span v-if="sItem.liju_list" class="collocation"
-                          ><span>{{ convertText('例句:') }}</span>
+                        <span v-if="sItem.liju_list" class="collocation">
                           <div>
                             <b
                               :style="{
@@ -1162,8 +1157,7 @@
                               !data.col_width[6 + indexC].value || data.col_width[6 + indexC].value === '0' ? '1' : '',
                           }"
                         >
-                          <span v-if="sItem[itemC.key]" class="collocation"
-                            ><span>{{ convertText(itemC.label + ':') }}</span>
+                          <span v-if="sItem[itemC.key]" class="collocation">
                             <div>
                               <b
                                 :style="{
@@ -1403,11 +1397,9 @@
                         }"
                       >
                         <div v-if="item.cixing">
-                          <label class="card-label">{{ convertText('词性:') }}</label>
                           <p v-html="convertText(sanitizeHTML(item.cixing))"></p>
                         </div>
                         <div v-if="item.definition_list">
-                          <label class="card-label">{{ convertText('释义:') }}</label>
                           <p v-html="convertText(sanitizeHTML(item.definition_list))"></p>
                         </div>
                       </div>
@@ -1427,25 +1419,20 @@
                     >
                       <template v-if="!(item.collocation || item.liju_list) || item.new_word.length >= 4">
                         <div v-if="item.cixing">
-                          <label class="card-label">{{ convertText('词性:') }}</label>
                           <p v-html="convertText(sanitizeHTML(item.cixing))"></p>
                         </div>
                         <div v-if="item.definition_list">
-                          <label class="card-label">{{ convertText('释义:') }}</label>
                           <p v-html="convertText(sanitizeHTML(item.definition_list))"></p>
                         </div>
                       </template>
                       <div v-if="item.collocation">
-                        <label class="card-label">{{ convertText('搭配:') }}</label>
                         <p v-html="convertText(sanitizeHTML(item.collocation))"></p>
                       </div>
                       <div v-if="item.liju_list">
-                        <label class="card-label">{{ convertText('例句:') }}</label>
                         <p v-html="convertText(sanitizeHTML(item.liju_list))"></p>
                       </div>
                       <template v-for="(itemC, indexC) in data.addCol">
                         <div v-if="item[itemC.key]" :key="indexC">
-                          <label class="card-label">{{ convertText(itemC.label + ':') }}</label>
                           <p v-html="convertText(sanitizeHTML(item[itemC.key]))"></p>
                         </div>
                       </template>

+ 0 - 6
src/views/book/courseware/preview/components/new_word/components/writeTableZoom.vue

@@ -155,11 +155,9 @@
             }"
           >
             <div v-if="data.cixing">
-              <label class="card-label">{{ convertText('词性:') }}</label>
               <p v-html="convertText(sanitizeHTML(data.cixing))"></p>
             </div>
             <div v-if="data.definition_list">
-              <label class="card-label">{{ convertText('释义:') }}</label>
               <p v-html="convertText(sanitizeHTML(data.definition_list))"></p>
             </div>
           </div>
@@ -179,20 +177,16 @@
         >
           <template v-if="!(data.collocation || data.liju_list) || data.new_word.length >= 4">
             <div v-if="data.cixing">
-              <label class="card-label">{{ convertText('词性:') }}</label>
               <p v-html="convertText(sanitizeHTML(data.cixing))"></p>
             </div>
             <div v-if="data.definition_list">
-              <label class="card-label">{{ convertText('释义:') }}</label>
               <p v-html="convertText(sanitizeHTML(data.definition_list))"></p>
             </div>
           </template>
           <div v-if="data.collocation">
-            <label class="card-label">{{ convertText('搭配:') }}</label>
             <p v-html="convertText(sanitizeHTML(data.collocation))"></p>
           </div>
           <div v-if="data.liju_list">
-            <label class="card-label">{{ convertText('例句:') }}</label>
             <p v-html="convertText(sanitizeHTML(data.liju_list))"></p>
           </div>
         </div>