Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-exam-show
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-exam-show
Commits
ef2b6d37
提交
ef2b6d37
authored
7月 22, 2021
作者:
lihuihui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update: feat: 手机是否为横屏
上级
2e12076e
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
32 行增加
和
13 行删除
+32
-13
index.html
src/index.html
+1
-1
examAnswer.vue
src/pages/exam/examAnswer.vue
+8
-8
index.vue
src/pages/login/index.vue
+23
-4
没有找到文件。
src/index.html
浏览文件 @
ef2b6d37
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
<!-- <meta http-equiv="Pragma" content="no-cache" /> -->
<!-- <meta http-equiv="Pragma" content="no-cache" /> -->
<!-- <meta http-equiv="Expires" content="0" /> -->
<!-- <meta http-equiv="Expires" content="0" /> -->
<title>
标题
</title>
<title>
标题
</title>
<meta
name=
"viewport"
id=
"viewport"
content=
"initial-scale=-1,maximum-scale=1,shrink-to-fit=no"
/>
<meta
name=
"viewport"
id=
"viewport"
content=
"initial-scale=-1,maximum-scale=1,shrink-to-fit=no
,user-scalable=no
"
/>
</head>
</head>
<body>
<body>
<div
id=
"app"
></div>
<div
id=
"app"
></div>
...
...
src/pages/exam/examAnswer.vue
浏览文件 @
ef2b6d37
...
@@ -127,13 +127,16 @@ export default {
...
@@ -127,13 +127,16 @@ export default {
this
.
countHeight
()
this
.
countHeight
()
}
}
const
wrapper
=
this
.
$refs
.
wrapper
const
wrapper
=
this
.
$refs
.
wrapper
new
BScroll
(
wrapper
)
new
BScroll
(
wrapper
,
{
click
:
true
})
this
.
initBscroll
()
},
methods
:
{
initBscroll
()
{
setTimeout
(()
=>
{
setTimeout
(()
=>
{
const
wrapper2
=
this
.
$refs
.
wrapper2
const
wrapper2
=
this
.
$refs
.
wrapper2
new
BScroll
(
wrapper2
)
new
BScroll
(
wrapper2
,
{
click
:
true
,
bounce
:
false
,
startY
:
0
}
)
},
3
000
)
},
1
000
)
},
},
methods
:
{
sendExamInfo
(
status
)
{
sendExamInfo
(
status
)
{
const
param
=
{
const
param
=
{
student_id
:
this
.
sInfo
.
info
.
student_id
,
student_id
:
this
.
sInfo
.
info
.
student_id
,
...
@@ -299,10 +302,7 @@ export default {
...
@@ -299,10 +302,7 @@ export default {
this
.
questionParams
.
questionIndex
+
1
!==
this
.
questionParams
.
question
.
total_question_count
&&
this
.
questionParams
.
questionIndex
+
1
!==
this
.
questionParams
.
question
.
total_question_count
&&
this
.
questionParams
.
questionIndex
++
this
.
questionParams
.
questionIndex
++
}
}
setTimeout
(()
=>
{
this
.
initBscroll
()
const
wrapper2
=
this
.
$refs
.
wrapper2
new
BScroll
(
wrapper2
)
},
3000
)
},
},
getTopic
()
{
getTopic
()
{
action
.
Exam
.
getTopic
(
this
.
$route
.
params
.
examId
)
action
.
Exam
.
getTopic
(
this
.
$route
.
params
.
examId
)
...
...
src/pages/login/index.vue
浏览文件 @
ef2b6d37
...
@@ -67,8 +67,29 @@ export default {
...
@@ -67,8 +67,29 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
action
.
Login
.
getExamInfo
(
this
.
$route
.
params
.
examId
)
this
.
getExamInfo
()
.
then
(
res
=>
{
this
.
tipsMobileAngle
()
window
.
onresize
=
()
=>
{
this
.
tipsMobileAngle
()
}
},
methods
:
{
tipsMobileAngle
()
{
if
(
this
.
isMobile
())
{
if
(
window
.
orientation
===
180
||
window
.
orientation
===
0
)
{
console
.
log
(
1
)
this
.
$message
({
message
:
'请横屏预览'
,
type
:
'warning'
})
}
}
},
isMobile
()
{
return
/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i
.
test
(
navigator
.
userAgent
)
},
getExamInfo
()
{
action
.
Login
.
getExamInfo
(
this
.
$route
.
params
.
examId
).
then
(
res
=>
{
window
.
localStorage
.
setItem
(
'examInfo'
,
JSON
.
stringify
(
res
))
window
.
localStorage
.
setItem
(
'examInfo'
,
JSON
.
stringify
(
res
))
this
.
data
=
res
this
.
data
=
res
if
(
this
.
getEnabledTime
()
<
0
)
{
if
(
this
.
getEnabledTime
()
<
0
)
{
...
@@ -86,9 +107,7 @@ export default {
...
@@ -86,9 +107,7 @@ export default {
this
.
loginParam
.
is
=
false
this
.
loginParam
.
is
=
false
}
}
})
})
.
finally
(
res
=>
{})
},
},
methods
:
{
sendExamInfo
(
studentId
)
{
sendExamInfo
(
studentId
)
{
const
param
=
{
const
param
=
{
student_id
:
studentId
,
student_id
:
studentId
,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论