Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
L
learn-online-pc
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
learn-online-pc
Commits
98202331
提交
98202331
authored
4月 15, 2020
作者:
zyx
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update
上级
857dd5a0
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
22 行增加
和
2 行删除
+22
-2
OtherAction.js
client/src/action/OtherAction.js
+1
-0
base_api.js
client/src/api/base_api.js
+3
-0
other_api.js
client/src/api/other_api.js
+1
-1
myExamination.vue
client/src/pages/examination/myExamination.vue
+17
-1
没有找到文件。
client/src/action/OtherAction.js
浏览文件 @
98202331
...
...
@@ -23,6 +23,7 @@ export default class OtherAction extends BaseACTION {
*/
getInfo
()
{
return
Other
.
getInfo
().
then
(
res
=>
res
)
}
examAutoLogin
(
obj
)
{
return
Other
.
examAutoLogin
(
obj
).
then
(
res
=>
res
)
}
/* 调用退出登录接口 */
outLogin
()
{
return
Other
.
outLogin
().
then
(
res
=>
res
)
}
/**
...
...
client/src/api/base_api.js
浏览文件 @
98202331
...
...
@@ -95,6 +95,9 @@ export default class API {
const
_vIn
=
this
.
getVueInstance
()
const
{
status
,
data
}
=
res
if
(
status
===
200
)
{
if
(
/util
\/
kaosx/gi
.
test
(
res
.
config
.
url
))
{
return
data
}
/* 针对 不同的 接口做一下 统一处理 */
/* 带 code 参数,新接口模型 */
if
(
data
&&
data
.
code
!==
undefined
)
{
...
...
client/src/api/other_api.js
浏览文件 @
98202331
...
...
@@ -11,7 +11,7 @@ export default class OtherAPI extends BaseAPI {
*/
getMyMsg
=
()
=>
this
.
get
(
'/v2/education/message/my'
,
{})
/* 支持三方登录 */
examAutoLogin
=
(
obj
)
=>
this
.
post
(
'
https://api.kaoshixing.com/api/company/data/177165/?jwt=
'
,
obj
,
{
headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
})
examAutoLogin
=
(
obj
)
=>
this
.
post
(
'
/util/kaosx
'
,
obj
,
{
headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
})
/**
* 调用退出登录
*/
...
...
client/src/pages/examination/myExamination.vue
浏览文件 @
98202331
...
...
@@ -28,7 +28,7 @@
</div>
</div>
<div
class=
"btn-block"
>
<div>
我已阅读,开始考试
</div>
<div
@
click=
"goExam"
>
我已阅读,开始考试
</div>
</div>
</div>
</div>
...
...
@@ -36,6 +36,8 @@
</
template
>
<
script
>
import
cAction
from
'@action'
export
default
{
data
()
{
return
{
...
...
@@ -66,6 +68,20 @@ export default {
},
popHide
()
{
this
.
dialogVisible
=
false
},
goExam
()
{
const
loading
=
this
.
$loading
({
lock
:
true
,
text
:
''
,
spinner
:
''
,
background
:
'rgba(255, 255, 255, 0.9)'
})
cAction
.
Other
.
examAutoLogin
({
user_id
:
window
.
G
.
UserInfo
.
id
,
user_name
:
(
window
.
G
.
UserInfo
&&
window
.
G
.
UserInfo
.
student_info
&&
window
.
G
.
UserInfo
.
student_info
.
personal_name
)
||
'匿名'
,
password
:
md5
(
'000000'
),
department
:
'部门分类'
}).
then
(
res
=>
{
loading
.
close
()
if
(
res
.
msg
===
'success'
)
{
window
.
open
(
res
.
url
)
}
})
}
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论