Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
project-online-old
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
project-online-old
Commits
c67480b4
提交
c67480b4
authored
3月 15, 2021
作者:
pengxiaohui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复从首页跳至通知公告页数据不统一的bug
上级
c6597be8
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
15 行增加
和
13 行删除
+15
-13
article_api.js
src/api/article_api.js
+7
-7
report_api.js
src/api/report_api.js
+4
-4
index.vue
src/pages/news/index.vue
+4
-2
没有找到文件。
src/api/article_api.js
浏览文件 @
c67480b4
...
@@ -2,17 +2,17 @@ import BaseAPI from './base_api'
...
@@ -2,17 +2,17 @@ import BaseAPI from './base_api'
export
default
class
ScoreAPI
extends
BaseAPI
{
export
default
class
ScoreAPI
extends
BaseAPI
{
// 获取文章分类
// 获取文章分类
getAllClassify
=
(
obj
=
{})
=>
this
.
get
(
'/microservices/api/category/articles'
,
obj
,
{})
getAllClassify
=
(
obj
=
{})
=>
this
.
get
(
'/
api/
microservices/api/category/articles'
,
obj
,
{})
// 获取文章
// 获取文章
getArticle
=
(
obj
=
{})
=>
this
.
get
(
'/microservices/api/article/list'
,
obj
,
{})
getArticle
=
(
obj
=
{})
=>
this
.
get
(
'/
api/
microservices/api/article/list'
,
obj
,
{})
// 获取文章详情
// 获取文章详情
getArticleDetail
=
(
id
)
=>
this
.
get
(
`/microservices/api/article/
${
id
}
/info`
)
getArticleDetail
=
(
id
)
=>
this
.
get
(
`/microservices/api/article/
${
id
}
/info`
)
// formCommit = (data) => this.post('/microservices/api/form/commit', data)
// formCommit = (data) => this.post('/
api/
microservices/api/form/commit', data)
formCommit
=
(
data
)
=>
this
.
post
(
'/microservices/api/apply/teacher-form'
,
data
)
formCommit
=
(
data
)
=>
this
.
post
(
'/
api/
microservices/api/apply/teacher-form'
,
data
)
// 获取轮播
// 获取轮播
getBanner
=
(
obj
=
{})
=>
this
.
get
(
'/microservices/api/carousel/list'
,
obj
,
{})
getBanner
=
(
obj
=
{})
=>
this
.
get
(
'/
api/
microservices/api/carousel/list'
,
obj
,
{})
// 发送验证码
// 发送验证码
sendCheckedCode
=
(
obj
=
{})
=>
this
.
post
(
'/usercenter/user/send-code'
,
obj
)
sendCheckedCode
=
(
obj
=
{})
=>
this
.
post
(
'/
api/
usercenter/user/send-code'
,
obj
)
// 注册
// 注册
register
=
(
obj
=
{})
=>
this
.
post
(
'/usercenter/user/register'
,
obj
)
register
=
(
obj
=
{})
=>
this
.
post
(
'/
api/
usercenter/user/register'
,
obj
)
}
}
src/api/report_api.js
浏览文件 @
c67480b4
...
@@ -7,20 +7,20 @@ export default class ScoreAPI extends BaseAPI {
...
@@ -7,20 +7,20 @@ export default class ScoreAPI extends BaseAPI {
*/
*/
getContent
=
name
=>
getContent
=
name
=>
this
.
get
(
this
.
get
(
`zws/v1/cms/projects/1000/contents/
${
encodeURIComponent
(
decodeURIComponent
(
name
))}
?sites=sofia.ezijing.com`
,
`
/api/
zws/v1/cms/projects/1000/contents/
${
encodeURIComponent
(
decodeURIComponent
(
name
))}
?sites=sofia.ezijing.com`
,
{}
{}
)
)
/**
/**
* zws新闻/消息获取
* zws新闻/消息获取
*/
*/
getNews
=
(
obj
=
{})
=>
this
.
get
(
'/zws/v1/cms/news'
,
obj
,
{})
getNews
=
(
obj
=
{})
=>
this
.
get
(
'/
api/
zws/v1/cms/news'
,
obj
,
{})
/**
/**
* 获取当前状态值
* 获取当前状态值
* project_id [int] 项目id
* project_id [int] 项目id
*/
*/
getStatus
=
(
obj
=
{})
=>
this
.
get
(
'zws/v1/enrollment/submissions'
,
obj
,
{})
getStatus
=
(
obj
=
{})
=>
this
.
get
(
'
/api/
zws/v1/enrollment/submissions'
,
obj
,
{})
/**
/**
* 获取测评系统测试地址
* 获取测评系统测试地址
*/
*/
getexamTestUrl
=
()
=>
this
.
get
(
'usercenter/v1/evaluation/get-address'
,
{},
{})
getexamTestUrl
=
()
=>
this
.
get
(
'
/api/
usercenter/v1/evaluation/get-address'
,
{},
{})
}
}
src/pages/news/index.vue
浏览文件 @
c67480b4
...
@@ -55,8 +55,8 @@ export default {
...
@@ -55,8 +55,8 @@ export default {
},
},
created
()
{
created
()
{
if
(
this
.
$route
.
query
.
type
)
{
if
(
this
.
$route
.
query
.
type
)
{
this
.
tabsData
.
index
=
this
.
$route
.
query
.
type
this
.
tabsData
.
index
=
Number
(
this
.
$route
.
query
.
type
)
this
.
tabsDataIndex
=
this
.
$route
.
query
.
type
this
.
tabsDataIndex
=
Number
(
this
.
$route
.
query
.
type
)
}
}
this
.
newsList
()
this
.
newsList
()
},
},
...
@@ -80,6 +80,8 @@ export default {
...
@@ -80,6 +80,8 @@ export default {
this
.
newsList
()
this
.
newsList
()
},
2000
)
},
2000
)
}
else
{
}
else
{
console
.
log
(
this
.
tabsDataIndex
)
console
.
log
(
this
.
articleClassify
[
0
].
children
)
const
findId
=
this
.
articleClassify
[
0
].
children
.
find
(
item
=>
{
const
findId
=
this
.
articleClassify
[
0
].
children
.
find
(
item
=>
{
return
item
.
display_name
===
(
this
.
tabsDataIndex
?
'工作动态'
:
'新闻动态'
)
return
item
.
display_name
===
(
this
.
tabsDataIndex
?
'工作动态'
:
'新闻动态'
)
})
})
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论