|
@@ -14,10 +14,17 @@
|
|
|
<div class="list-item" v-for="(item,index) in newsList" :key="item.MsgId">
|
|
|
<div class="item-cont">
|
|
|
<p class="news">
|
|
|
- <span style="font-weight: bold;margin-right: 10px;" v-if="item.MsgTime">{{item.MsgTime.substr(10)}}</span>
|
|
|
+ <span style="font-weight: bold;margin-right: 10px;" v-if="item.MsgTime">
|
|
|
+ {{transformTimeType(item.MsgTime)}}
|
|
|
+ </span>
|
|
|
{{item.Content}}
|
|
|
</p>
|
|
|
- <p class="news-en" :style="item.showEn ? 'display:block' : 'display:none'">{{item.ContentEn}}</p>
|
|
|
+ <p class="news-en" :style="item.showEn ? 'display:block' : 'display:none'">
|
|
|
+ <span style="font-weight: bold;margin-right: 10px;" v-if="item.MsgTime">
|
|
|
+ {{transformTimeType(item.MsgTime)}}
|
|
|
+ </span>
|
|
|
+ {{item.ContentEn}}
|
|
|
+ </p>
|
|
|
</div>
|
|
|
|
|
|
<div class="item-bot">
|
|
@@ -389,7 +396,10 @@ export default {
|
|
|
this.page_no++;
|
|
|
this.getList()
|
|
|
}
|
|
|
- },300)
|
|
|
+ },300),
|
|
|
+ transformTimeType(date){
|
|
|
+ return date.replaceAll('-','/').substr(0,16)
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
mounted() {
|