提交 32ddaceb authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 6d808d08
......@@ -6,9 +6,9 @@
<div>
<a href="http://jsj.moe.gov.cn" target="_blank"> {{ $t('foot.link1') }} </a>
</div>
<div>
<!-- <div>
<a href="http://www.pbcsf.tsinghua.edu.cn" target="_blank"> {{ $t('foot.link2') }} </a>
</div>
</div> -->
<!-- <div>
合作大学官网
</div> -->
......
......@@ -59,7 +59,7 @@ export default {
{
icon: 'https://webapp-pub.oss-cn-beijing.aliyuncs.com/www/pc/home/gov/icon_al.png',
iconActive: 'https://webapp-pub.oss-cn-beijing.aliyuncs.com/www/pc/home/gov/icon_al_active.png',
text: '服务案例',
text: '落地案例',
path: '/services/college/case'
}
]
......
......@@ -11,8 +11,8 @@
<div class="swiper-slide" v-for="(item, index) in activityList" :key="index">
<div class="li">
<div class="time-block">
<div class="m-time">{{ formatMD(Date.parse(item.abstract)) }}</div>
<div class="t-time">{{ formatYY(Date.parse(item.abstract)) }}</div>
<div class="m-time">{{ formatMD(item.abstract) }}</div>
<div class="t-time">{{ formatYY(item.abstract) }}</div>
</div>
<div class="txt">{{ item.title }}</div>
</div>
......@@ -80,12 +80,12 @@ export default {
methods: {
// 2021
formatYY(value) {
const date = new Date(value * 1000)
const date = new Date(value)
return date.getFullYear()
},
// 2/14
formatMD(value) {
const date = new Date(value * 1000)
const date = new Date(value)
return date.getMonth() + 1 + '/' + date.getDate()
},
getActivity() {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论