Browse Source

增加模板二级标题

asd123a20 1 year ago
parent
commit
519fff4f23
1 changed files with 7 additions and 1 deletions
  1. 7 1
      src/views/templates/ztjy/details.vue

+ 7 - 1
src/views/templates/ztjy/details.vue

@@ -3,10 +3,12 @@
     <img src="../../../assets/ztjytop.jpg" class="topimg" />
     <div class="listBox">
       <div class="listtitle" v-if="menu.name">{{ menu.name }}</div>
+      <h4 class="title2"  :class="{ top: !menu.name }" v-if="contentsItem && contentsItem.twoTitle" v-html="contentsItem.twoTitle"></h4>
       <div class="title" :class="{ top: !menu.name }" v-html="contentsItem && contentsItem.title"></div>
+      <h4 class="title2" v-if="contentsItem && contentsItem.curtTitle" v-html="contentsItem.curtTitle"></h4>
       <div class="timeBox">
         <div class="times">
-          <span class="time">时间:{{ contentsItem && contentsItem.createAt | dates }}</span>
+          <span class="time">发表时间:{{ contentsItem && contentsItem.createAt | dates }}</span>
           <span class="time2"  v-if="contentsItem && contentsItem.source">来源:{{ contentsItem && contentsItem.source }}</span>
           <span class="time2"  v-if="contentsItem && contentsItem.author">作者:{{ contentsItem && contentsItem.author }}</span>
           <span class="time2">访问量: {{ contentsItem && contentsItem.visit }}</span>
@@ -128,4 +130,8 @@ export default {
 .top {
   margin-top: 3%;
 }
+.title2 {
+  width: 100%;
+  text-align: center;
+}
 </style>