Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
project-www-pc
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
project-www-pc
Commits
215b5bd8
提交
215b5bd8
authored
7月 08, 2021
作者:
lihuihui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改文字分页
上级
9024a985
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
33 行增加
和
9 行删除
+33
-9
zh-CN.js
langs/zh-CN.js
+1
-1
index.vue
pages/about/news/index.vue
+32
-8
没有找到文件。
langs/zh-CN.js
浏览文件 @
215b5bd8
...
@@ -80,7 +80,7 @@ export default {
...
@@ -80,7 +80,7 @@ export default {
high
:
'实习就业'
,
high
:
'实习就业'
,
online
:
'在线教育<br />解决方案'
,
online
:
'在线教育<br />解决方案'
,
career
:
'新职业'
,
career
:
'新职业'
,
more
:
'
more
'
more
:
'
更多
'
},
},
bulletin
:
{
bulletin
:
{
title
:
'项目公告'
title
:
'项目公告'
...
...
pages/about/news/index.vue
浏览文件 @
215b5bd8
...
@@ -21,15 +21,15 @@
...
@@ -21,15 +21,15 @@
</li>
</li>
</
template
>
</
template
>
</ul>
</ul>
<
!-- <
div class="pages-box">
<div
class=
"pages-box"
>
<el-pagination
<el-pagination
layout=
"prev, pager, next"
layout=
"prev, pager, next"
@
current-change=
"handleCurrentChange"
@
current-change=
"handleCurrentChange"
page-size="10
"
:page-size=
"limit
"
:total="
pages.
total"
:total=
"total"
>
>
</el-pagination>
</el-pagination>
</div>
-->
</div>
</div>
</div>
</div>
</div>
</template>
</template>
...
@@ -41,29 +41,53 @@ export default {
...
@@ -41,29 +41,53 @@ export default {
data
()
{
data
()
{
return
{
return
{
listData
:
[],
listData
:
[],
pages
:
{}
currentPaeg
:
1
,
total
:
0
,
limit
:
10
}
}
},
},
async
fetch
()
{
async
fetch
()
{
const
params
=
{
const
params
=
{
project_id
:
process
.
env
.
projectId
,
project_id
:
process
.
env
.
projectId
,
type_tag
:
this
.
$route
.
query
.
type
||
'article_news'
type_tag
:
this
.
$route
.
query
.
type
||
'article_news'
,
page
:
this
.
currentPaeg
,
limit
:
10
}
}
this
.
listData
=
await
this
.
$axios
.
get
(
'/api/cms/api/v1/articles'
,
{
params
}).
then
(
res
=>
{
this
.
listData
=
await
this
.
$axios
.
get
(
'/api/cms/api/v1/articles'
,
{
params
}).
then
(
res
=>
{
this
.
total
=
res
.
data
.
total
return
res
.
data
.
data
return
res
.
data
.
data
})
})
},
},
methods
:
{
methods
:
{
handleCurrentChange
()
{},
handleCurrentChange
(
num
)
{
this
.
initData
(
num
)
},
initData
(
num
)
{
const
params
=
{
project_id
:
process
.
env
.
projectId
,
type_tag
:
this
.
$route
.
query
.
type
||
'article_news'
,
page
:
num
,
limit
:
10
}
this
.
listData
=
this
.
$axios
.
get
(
'/api/cms/api/v1/articles'
,
{
params
}).
then
(
res
=>
{
this
.
total
=
parseInt
(
res
.
data
.
total
)
this
.
listData
=
res
.
data
.
data
})
},
formatDate
(
value
)
{
formatDate
(
value
)
{
const
date
=
new
Date
(
value
*
1000
)
const
date
=
new
Date
(
value
*
1000
)
console
.
log
(
date
.
getMonth
())
return
date
.
getFullYear
()
+
'/'
+
(
date
.
getMonth
()
+
1
)
+
'/'
+
date
.
getDate
()
return
date
.
getFullYear
()
+
'/'
+
(
date
.
getMonth
()
+
1
)
+
'/'
+
date
.
getDate
()
}
}
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.pages-box
{
display
:
flex
;
padding-bottom
:
50px
;
background
:
#fff
;
justify-content
:
center
;
}
.news-content
{
.news-content
{
width
:
1200px
;
width
:
1200px
;
margin
:
0
auto
;
margin
:
0
auto
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论