Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
T
transport-show-h5
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
transport-show-h5
Commits
25a4b287
提交
25a4b287
authored
7月 15, 2020
作者:
lihuihui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
updata
上级
c78c9ef6
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
30 行增加
和
14 行删除
+30
-14
answerCard.vue
src/modules/exam-module/components/answerCard.vue
+18
-3
ExamTopic.vue
src/modules/exam-module/src/ExamTopic.vue
+12
-11
没有找到文件。
src/modules/exam-module/components/answerCard.vue
浏览文件 @
25a4b287
...
...
@@ -71,7 +71,6 @@ export default {
}
},
mounted
()
{
// this.scrollDom()
},
data
()
{
return
{
...
...
@@ -85,6 +84,18 @@ export default {
}
},
methods
:
{
duplicates
(
arr
)
{
const
newarr
=
[]
for
(
let
j
=
0
;
j
<
arr
.
length
;
j
++
)
{
for
(
let
i
=
j
+
1
;
i
<
arr
.
length
;
i
++
)
{
if
(
arr
[
j
].
type
===
arr
[
i
].
type
)
{
arr
[
j
].
question_list
=
arr
[
j
].
question_list
.
concat
(
arr
[
i
].
question_list
)
newarr
.
push
(
arr
[
j
])
}
}
}
return
Array
.
from
(
new
Set
(
newarr
))
},
go
(
id
)
{
this
.
$emit
(
'cardChange'
,
id
)
this
.
$emit
(
'showCard'
)
...
...
@@ -94,7 +105,6 @@ export default {
const
clientHeight
=
document
.
documentElement
.
clientHeight
const
bottomView
=
document
.
getElementById
(
'bottom-view2'
)
bottomView
.
style
.
height
=
(
clientHeight
-
topViewH
)
+
'px'
console
.
log
(
bottomView
.
style
.
height
)
}
},
computed
:
{
...
...
@@ -104,7 +114,6 @@ export default {
dataList
()
{
let
num
=
1
return
this
.
questionsData
.
questions
.
map
(
item
=>
{
// console.log(this.questionsData.questions.find(items => { return items.type }))
item
.
question_list
.
map
((
subitem
,
index
)
=>
{
subitem
.
num
=
num
+
index
return
subitem
...
...
@@ -120,6 +129,12 @@ export default {
this
.
$forceUpdate
()
},
deep
:
true
},
questionsData
:
{
handler
(
newV
,
oldV
)
{
// console.log(this.duplicates(this.questionsData.questions))
// this.questionsData.questions =
}
}
}
}
...
...
src/modules/exam-module/src/ExamTopic.vue
浏览文件 @
25a4b287
...
...
@@ -165,9 +165,10 @@ export default {
swiperSign
:
0
,
swiperOptions
:
{
observer
:
true
,
autoHeight
:
true
,
on
:
{
slideChangeTransitionStart
:
function
()
{
_this
.
scrollDom
()
//
_this.scrollDom()
_this
.
getIsSign
()
if
(
this
.
activeIndex
===
_this
.
questionsData
.
sheet
.
question_count
)
{
_this
.
topicCard
.
isShow
=
true
...
...
@@ -359,7 +360,7 @@ export default {
document
.
getElementById
(
'bottom-view'
).
scrollTop
=
0
this
.
topicCard
.
isShow
=
true
this
.
swiper
.
slideTo
(
this
.
questionsData
.
sheet
.
question_count
,
0
,
false
)
this
.
scrollDom
()
//
this.scrollDom()
},
// 标记
signQuestion
()
{
...
...
@@ -463,9 +464,9 @@ export default {
// 显示隐藏解析
analyShow
()
{
this
.
isAnalysis
=
!
this
.
isAnalysis
setTimeout
(()
=>
{
this
.
scrollDom
()
},
500
)
//
setTimeout(() => {
//
this.scrollDom()
//
}, 500)
},
// 单选事件 判断题事件
selectRadio
(
cData
,
checkId
,
index
,
oData
)
{
...
...
@@ -551,13 +552,13 @@ export default {
const
topViewH
=
document
.
getElementById
(
'top-view'
).
offsetHeight
const
clientHeight
=
document
.
documentElement
.
clientHeight
const
bottomView
=
document
.
getElementById
(
'bottom-view'
)
const
domH
=
this
.
swiper
.
slides
[
this
.
swiper
.
activeIndex
].
clientHeight
//
const domH = this.swiper.slides[this.swiper.activeIndex].clientHeight
bottomView
.
style
.
height
=
(
clientHeight
-
topViewH
)
+
'px'
if
(
domH
-
50
>=
(
clientHeight
-
topViewH
))
{
this
.
classHide
=
true
}
else
{
this
.
classHide
=
false
}
//
if (domH - 50 >= (clientHeight - topViewH)) {
//
this.classHide = true
//
} else {
//
this.classHide = false
//
}
},
initData
(
n
)
{
const
param
=
this
.
requestParam
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论