浏览代码

title的显示 -uibao

natasha 3 年之前
父节点
当前提交
5dae0ba9a7

+ 2 - 6
src/components/Adult/Preview.vue

@@ -6,11 +6,6 @@
     v-if="cur"
   >
     <div
-      v-if="
-        cur.detailList &&
-          cur.detailList.length > 0 &&
-          cur.detailList[0].sentence
-      "
       class="NNPE-title"
     >
       <!-- 页眉 -->
@@ -70,7 +65,7 @@
           </template>
         </div>
       </div>
-      <div class="NNPE-operate">
+      <div class="NNPE-operate" v-if="isShowTitle">
         <a class="btn-prev" @click="handleNNPEprev" />
         <a class="btn-next" @click="handleNNPEnext" />
       </div>
@@ -333,6 +328,7 @@ export default {
     "FatherTreeData",
     "changeId",
     "themeColor",
+    "isShowTitle"
   ],
   data() {
     return {

+ 8 - 0
src/components/Adult/preview/TinyModule.vue

@@ -1,6 +1,7 @@
 <!--  -->
 <template>
   <div class="Big-Book-prev-Tiny" v-if="curQue">
+    <h2 v-if="curQue.title">{{curQue.title}}</h2>
     <div v-html="curQue.con"></div>
   </div>
 </template>
@@ -33,5 +34,12 @@ export default {
 //@import url(); 引入公共css类
 .Big-Book-prev-Tiny{
     width: 100%;
+    h2{
+        margin: 16px 0 0;
+        font-weight: 500;
+        font-size: 16px;
+        line-height: 24px;
+        color: #000000;
+    }
 }
 </style>

+ 1 - 0
src/views/adultInput.vue

@@ -642,6 +642,7 @@
           :FatherTreeData="FatherTreeData"
           :change-id="changeId"
           :themeColor="themeColor"
+          :isShowTitle="true"
         />
       </div>
       <span slot="footer" class="dialog-footer">

+ 1 - 0
src/views/bookView.vue

@@ -36,6 +36,7 @@
           bookclientwidth="900"
           :TaskModel="TaskModel"
           @handleBookUserAnswer="handleBookUserAnswer"
+          :isShowTitle="true"
         />
       </div>
       <a

+ 1 - 0
src/views/courseView.vue

@@ -36,6 +36,7 @@
           :FatherTreeData="FatherTreeData"
           :change-id="changeId"
           :themeColor="themeColor"
+          :isShowTitle="true"
         />
       </div>
       <a