Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
project-www-h5
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
project-www-h5
Commits
b50a0936
提交
b50a0936
authored
7月 09, 2021
作者:
matian
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'origin/master'
上级
895e9c74
5cb69e50
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
17 行增加
和
7 行删除
+17
-7
Post.vue
components/home/Post.vue
+17
-7
没有找到文件。
components/home/Post.vue
浏览文件 @
b50a0936
<
template
>
<
template
>
<card
:title=
"$t('home.bulletin.title')"
>
<card
:title=
"$t('home.bulletin.title')"
>
<template
#
header-aside
><nuxt-link
to=
"/about/news?type=article_news"
>
{{
$t
(
'viewMore'
)
}}
</nuxt-link></
template
>
<template
#
header-aside
><nuxt-link
to=
"/about/news?type=article_news"
>
{{
$t
(
'viewMore'
)
}}
</nuxt-link></
template
>
<div
class=
"future"
>
<div
class=
"future"
>
<!-- <div class="future-left">即将开始的<br />课程日期</div> -->
<!-- <div class="future-left">即将开始的<br />课程日期</div> -->
<div
class=
"future-right"
>
<div
class=
"future-right"
>
...
@@ -9,7 +11,7 @@
...
@@ -9,7 +11,7 @@
<swiper-slide
:key=
"index"
>
<swiper-slide
:key=
"index"
>
<div
class=
"future-item"
>
<div
class=
"future-item"
>
<div
class=
"future-item__title"
>
{{
item
.
title
}}
</div>
<div
class=
"future-item__title"
>
{{
item
.
title
}}
</div>
<div
class=
"future-item__date"
>
{{
item
.
created_time
}}
</div>
<div
class=
"future-item__date"
>
{{
item
.
abstract
}}
</div>
</div>
</div>
</swiper-slide>
</swiper-slide>
</
template
>
</
template
>
...
@@ -47,14 +49,13 @@ export default {
...
@@ -47,14 +49,13 @@ export default {
direction
:
'vertical'
,
direction
:
'vertical'
,
slidesPerView
:
2
slidesPerView
:
2
},
},
futureList
:
[
futureList
:
[],
// { title: '2021年第二期“1+X 金融产品数字化营销职业技能等级证书(中级)”师资培训班', created_time: '06月27日' },
{
title
:
'紫荆-KELLEY商学院金融硕士项目招生说明会'
,
created_time
:
'07月11日'
},
{
title
:
'中国PRP二期班核心课程'
,
created_time
:
'07月17日'
}
],
list
:
[]
list
:
[]
}
}
},
},
mounted
()
{
this
.
getActivity
()
},
methods
:
{
methods
:
{
// 2月14日
// 2月14日
formatDate
(
value
)
{
formatDate
(
value
)
{
...
@@ -70,6 +71,15 @@ export default {
...
@@ -70,6 +71,15 @@ export default {
formatMD
(
value
)
{
formatMD
(
value
)
{
const
date
=
new
Date
(
value
*
1000
)
const
date
=
new
Date
(
value
*
1000
)
return
date
.
getMonth
()
+
1
+
'/'
+
date
.
getDate
()
return
date
.
getMonth
()
+
1
+
'/'
+
date
.
getDate
()
},
getActivity
()
{
const
params
=
{
project_id
:
process
.
env
.
projectId
,
type_tag
:
'www_activity'
}
this
.
$axios
.
get
(
'/api/cms/api/v1/articles'
,
{
params
}).
then
(
res
=>
{
this
.
futureList
=
res
.
data
.
data
})
}
}
},
},
async
fetch
()
{
async
fetch
()
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论