|
@@ -3,13 +3,16 @@
|
|
|
<img src="../../../assets/ztjytop.jpg" class="topimg" />
|
|
|
<div class="listBox">
|
|
|
<div class="listtitle" v-if="menu.name">{{ menu.name }}</div>
|
|
|
- <div class="title" :class="{ top: !menu.name }" v-html="contentsItem.title"></div>
|
|
|
+ <div class="title" :class="{ top: !menu.name }" v-html="contentsItem && contentsItem.title"></div>
|
|
|
<div class="timeBox">
|
|
|
- <div class="time">时间:{{ contentsItem.createAt | dates }}</div>
|
|
|
- <div class="time2">来源:{{ contentsItem.source }}</div>
|
|
|
- <div class="time">作者:{{ contentsItem.author }}</div>
|
|
|
+ <div class="times">
|
|
|
+ <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>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <div class="bodyHtml" v-html="contentsItem.content"></div>
|
|
|
+ <div class="bodyHtml" v-html="contentsItem && contentsItem.content"></div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -66,6 +69,7 @@ export default {
|
|
|
font-weight: bold;
|
|
|
margin: 0 auto;
|
|
|
margin-bottom: 1%;
|
|
|
+ text-align: center;
|
|
|
}
|
|
|
.listBox {
|
|
|
width: 75%;
|
|
@@ -89,22 +93,26 @@ export default {
|
|
|
width: 95%;
|
|
|
height: auto;
|
|
|
overflow: hidden;
|
|
|
- font-size: 1.875em;
|
|
|
+ font-size: 2.5em;
|
|
|
font-weight: bold;
|
|
|
color: #ba0612;
|
|
|
margin: 3% auto;
|
|
|
}
|
|
|
.timeBox {
|
|
|
- display: flex;
|
|
|
width: 95%;
|
|
|
margin: 0 auto;
|
|
|
- height: auto;
|
|
|
+ // height: auto;
|
|
|
overflow: hidden;
|
|
|
padding-bottom: 1%;
|
|
|
margin-bottom: 3%;
|
|
|
border-bottom: #cdd1e5 1px solid;
|
|
|
font-size: 0.875em;
|
|
|
color: #727586;
|
|
|
+ text-align: center;
|
|
|
+}
|
|
|
+.times {
|
|
|
+ margin: 0 auto;
|
|
|
+ text-align: center;
|
|
|
}
|
|
|
.time2 {
|
|
|
margin: 0 15px;
|