Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-exam-show
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-exam-show
Commits
70bbbcfb
提交
70bbbcfb
authored
11月 08, 2021
作者:
lihuihui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update
上级
75737f22
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
33 行增加
和
3 行删除
+33
-3
answerCard.vue
src/components/exam/answerCard.vue
+21
-0
question.vue
src/components/exam/question.vue
+1
-1
examAnswer.vue
src/pages/exam/examAnswer.vue
+11
-2
没有找到文件。
src/components/exam/answerCard.vue
浏览文件 @
70bbbcfb
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
<div
class=
"code"
>
{{
info
.
examinee_number
}}
</div>
<div
class=
"code"
>
{{
info
.
examinee_number
}}
</div>
</div>
</div>
</div>
</div>
<div
class=
"order-scroll"
>
<div
class=
"order-num"
>
<div
class=
"order-num"
>
<template
v-for=
"(item, index) in questionParams.question.question_items"
>
<template
v-for=
"(item, index) in questionParams.question.question_items"
>
<div
:key=
"index"
v-if=
"item.question_item_type != 5 && item.question_item_type != 7 && item.question_item_type != 8"
>
<div
:key=
"index"
v-if=
"item.question_item_type != 5 && item.question_item_type != 7 && item.question_item_type != 8"
>
...
@@ -101,6 +102,7 @@
...
@@ -101,6 +102,7 @@
</template>
</template>
</div>
</div>
</div>
</div>
</div>
<!-- <ul class="flag-tips">
<!-- <ul class="flag-tips">
<li>
<li>
<div class="circle1"></div>
<div class="circle1"></div>
...
@@ -129,14 +131,29 @@ export default {
...
@@ -129,14 +131,29 @@ export default {
questionParams
:
{
type
:
Object
,
default
:
()
=>
{}
},
questionParams
:
{
type
:
Object
,
default
:
()
=>
{}
},
info
:
{
type
:
Object
,
default
:
()
=>
{}
}
info
:
{
type
:
Object
,
default
:
()
=>
{}
}
},
},
data
()
{
return
{
}
},
mounted
()
{
mounted
()
{
if
(
!
this
.
isMobile
())
{
Bus
.
$on
(
'monitoringChanges'
,
target
=>
{
Bus
.
$on
(
'monitoringChanges'
,
target
=>
{
this
.
$forceUpdate
()
this
.
$forceUpdate
()
})
})
const
wrapper
=
this
.
$refs
.
wrapper
const
wrapper
=
this
.
$refs
.
wrapper
new
BScroll
(
wrapper
)
new
BScroll
(
wrapper
)
}
},
},
methods
:
{
methods
:
{
isMobile
()
{
const
ua
=
navigator
.
userAgent
const
isWindowsPhone
=
/
(?:
Windows Phone
)
/
.
test
(
ua
)
const
isSymbian
=
/
(?:
SymbianOS
)
/
.
test
(
ua
)
||
isWindowsPhone
const
isAndroid
=
/
(?:
Android
)
/
.
test
(
ua
)
const
isPhone
=
/
(?:
iPhone
)
/
.
test
(
ua
)
const
isPc
=
!
isPhone
&&
!
isAndroid
&&
!
isSymbian
return
isPc
},
goQuestion
(
n
)
{
goQuestion
(
n
)
{
this
.
$emit
(
'switchQuestion'
)
this
.
$emit
(
'switchQuestion'
)
this
.
questionParams
.
questionIndex
=
n
-
1
this
.
questionParams
.
questionIndex
=
n
-
1
...
@@ -175,6 +192,10 @@ export default {
...
@@ -175,6 +192,10 @@ export default {
}
}
}
}
}
}
.order-scroll
{
// max-height: 100px;
// overflow-y: scroll;
}
.order-num
{
.order-num
{
padding-bottom
:
90px
;
padding-bottom
:
90px
;
.tit
{
.tit
{
...
...
src/components/exam/question.vue
浏览文件 @
70bbbcfb
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
<!-- || item.question_item_type == 7 || item.question_item_type == 8 -->
<!-- || item.question_item_type == 7 || item.question_item_type == 8 -->
<div
class=
"title-type"
>
<div
class=
"title-type"
>
<div
class=
"type"
>
{{
questionData
.
question_item_title
}}
</div>
<div
class=
"type"
>
{{
questionData
.
question_item_title
}}
</div>
<div
class=
"num"
>
{{
question
Data
.
q_order
}}
/
{{
questionParams
.
question
.
total_question_count
}}
</div>
<div
class=
"num"
>
{{
question
Params
.
questionIndex
+
1
}}
/
{{
questionParams
.
question
.
total_question_count
}}
</div>
</div>
</div>
<div
class=
"case-que"
>
<div
class=
"case-que"
>
<div
class=
"stem"
v-html=
"questionData.common_content"
></div>
<div
class=
"stem"
v-html=
"questionData.common_content"
></div>
...
...
src/pages/exam/examAnswer.vue
浏览文件 @
70bbbcfb
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
></question>
></question>
</div>
</div>
</div>
</div>
<div
class=
"right
"
ref=
"wrapper"
>
<div
:class=
"isMobile() ? 'right scroll' : 'right hidden'
"
ref=
"wrapper"
>
<answer-card
<answer-card
:questionParams=
"questionParams"
:questionParams=
"questionParams"
:changeTime=
"changeTime"
:changeTime=
"changeTime"
...
@@ -449,7 +449,16 @@ export default {
...
@@ -449,7 +449,16 @@ export default {
width
:
220px
;
width
:
220px
;
background
:
#fff
;
background
:
#fff
;
padding
:
0
20px
;
padding
:
0
20px
;
overflow-y
:
hidden
;
&
.hidden
{
overflow
:
hidden
;
}
&
.scroll
{
overflow-y
:
scroll
;
scrollbar-width
:
none
;
&
:
:-
webkit-scrollbar
{
display
:
none
;
}
}
// scrollbar-width: none;
// scrollbar-width: none;
// &::-webkit-scrollbar {
// &::-webkit-scrollbar {
// display: none;
// display: none;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论