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

bug fixes

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