Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
T
transport-show-h5
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
transport-show-h5
Commits
522015d1
提交
522015d1
authored
8月 04, 2020
作者:
lihuihui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改切换题操作域的问题
上级
5f85aee5
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
23 行增加
和
5 行删除
+23
-5
ExamTopic.vue
src/modules/exam-module/src/ExamTopic.vue
+20
-2
questionsDetails.vue
src/pages/my/questionsDetails.vue
+3
-3
没有找到文件。
src/modules/exam-module/src/ExamTopic.vue
浏览文件 @
522015d1
...
@@ -74,7 +74,7 @@
...
@@ -74,7 +74,7 @@
</div>
</div>
<!-- v-if="$route.query.id != undefined || questionCount == 1" -->
<!-- v-if="$route.query.id != undefined || questionCount == 1" -->
<
template
v-if=
"$route.query.id == undefined"
>
<
template
v-if=
"$route.query.id == undefined"
>
<div
class=
"btn-box"
>
<div
class=
"btn-box"
id=
"bottom-view-btn"
>
<div
class=
"padd"
v-if=
"!topicCard.isShow"
>
<div
class=
"padd"
v-if=
"!topicCard.isShow"
>
<!--
{{
swiper
.
slides
[
swiper
.
activeIndex
].
attributes
[
'data-dId'
].
nodeValue
}}
-->
<!--
{{
swiper
.
slides
[
swiper
.
activeIndex
].
attributes
[
'data-dId'
].
nodeValue
}}
-->
<div
v-if=
"nextBtnShow"
:class=
"collect.currentPages ? 'icon1 active' : 'icon1'"
@
click=
"collectQuestion()"
></div>
<div
v-if=
"nextBtnShow"
:class=
"collect.currentPages ? 'icon1 active' : 'icon1'"
@
click=
"collectQuestion()"
></div>
...
@@ -90,7 +90,7 @@
...
@@ -90,7 +90,7 @@
</div>
</div>
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
<div
class=
"btn-box"
v-if=
"questionCount != 1"
>
<div
class=
"btn-box"
id=
"bottom-view-btn"
v-if=
"questionCount != 1"
>
<div
class=
"padd"
v-if=
"!topicCard.isShow"
>
<div
class=
"padd"
v-if=
"!topicCard.isShow"
>
<!--
{{
swiper
.
slides
[
swiper
.
activeIndex
].
attributes
[
'data-dId'
].
nodeValue
}}
-->
<!--
{{
swiper
.
slides
[
swiper
.
activeIndex
].
attributes
[
'data-dId'
].
nodeValue
}}
-->
<div
v-if=
"nextBtnShow"
:class=
"collect.currentPages ? 'icon1 active' : 'icon1'"
@
click=
"collectQuestion()"
></div>
<div
v-if=
"nextBtnShow"
:class=
"collect.currentPages ? 'icon1 active' : 'icon1'"
@
click=
"collectQuestion()"
></div>
...
@@ -180,6 +180,7 @@ export default {
...
@@ -180,6 +180,7 @@ export default {
autoHeight
:
true
,
autoHeight
:
true
,
on
:
{
on
:
{
slideChangeTransitionStart
:
function
()
{
slideChangeTransitionStart
:
function
()
{
_this
.
sildesHeightCount
()
_this
.
setCurrentCollect
()
_this
.
setCurrentCollect
()
_this
.
getIsSign
()
_this
.
getIsSign
()
if
(
this
.
activeIndex
===
_this
.
questionsData
.
sheet
.
question_count
)
{
if
(
this
.
activeIndex
===
_this
.
questionsData
.
sheet
.
question_count
)
{
...
@@ -260,6 +261,22 @@ export default {
...
@@ -260,6 +261,22 @@ export default {
this
.
answerInit
()
this
.
answerInit
()
},
},
methods
:
{
methods
:
{
sildesHeightCount
()
{
// slides高度重新赋值
const
computedStyle
=
window
.
getComputedStyle
(
this
.
swiper
.
slides
[
this
.
swiper
.
activeIndex
],
null
)
const
topView
=
document
.
getElementById
(
'top-view'
).
clientHeight
const
bottomView
=
document
.
getElementById
(
'bottom-view-btn'
).
clientHeight
const
slidesClentH
=
document
.
body
.
clientHeight
-
topView
-
bottomView
const
slidesH
=
this
.
swiper
.
slides
[
this
.
swiper
.
activeIndex
].
clientHeight
const
countNum
=
slidesClentH
-
slidesH
const
sliedsRealH
=
slidesClentH
-
(
slidesH
-
parseInt
(
computedStyle
.
paddingBottom
))
if
(
countNum
>=
0
)
{
this
.
swiper
.
slides
[
this
.
swiper
.
activeIndex
].
style
.
paddingBottom
=
`
${
sliedsRealH
}
px`
}
else
{
this
.
swiper
.
slides
[
this
.
swiper
.
activeIndex
].
style
.
paddingBottom
=
'1.2rem'
}
// console.log(this.swiper.slides[this.swiper.activeIndex])
},
collectQuestion
()
{
collectQuestion
()
{
const
queIds
=
this
.
collect
.
currentId
const
queIds
=
this
.
collect
.
currentId
this
.
collect
.
currentPages
?
this
.
removeColl
(
queIds
,
()
=>
{
this
.
collect
.
currentPages
?
this
.
removeColl
(
queIds
,
()
=>
{
...
@@ -644,6 +661,7 @@ export default {
...
@@ -644,6 +661,7 @@ export default {
this
.
setClock
(
times
)
this
.
setClock
(
times
)
}
}
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
sildesHeightCount
()
this
.
examSubmit
(
0
)
this
.
examSubmit
(
0
)
this
.
scrollDom
()
this
.
scrollDom
()
},
1000
)
},
1000
)
...
...
src/pages/my/questionsDetails.vue
浏览文件 @
522015d1
...
@@ -166,7 +166,7 @@ export default {
...
@@ -166,7 +166,7 @@ export default {
_this
.
prevQuestionLoading
()
_this
.
prevQuestionLoading
()
}
}
_this
.
isBtnShow
.
currentPage
=
item
.
num
_this
.
isBtnShow
.
currentPage
=
item
.
num
//
_this.sildesHeightCount()
_this
.
sildesHeightCount
()
},
500
)
},
500
)
},
},
slideChangeTransitionStart
:
function
()
{
slideChangeTransitionStart
:
function
()
{
...
@@ -309,7 +309,7 @@ export default {
...
@@ -309,7 +309,7 @@ export default {
const
itemNum
=
this
.
questionData
.
list
.
find
(
item
=>
{
return
item
.
question_id
===
qId
})
const
itemNum
=
this
.
questionData
.
list
.
find
(
item
=>
{
return
item
.
question_id
===
qId
})
this
.
isBtnShow
.
currentPage
=
itemNum
.
num
this
.
isBtnShow
.
currentPage
=
itemNum
.
num
parseInt
(
this
.
$route
.
query
.
type
)
===
3
?
this
.
isAnalysis
=
true
:
this
.
isAnalysis
=
false
parseInt
(
this
.
$route
.
query
.
type
)
===
3
?
this
.
isAnalysis
=
true
:
this
.
isAnalysis
=
false
//
this.sildesHeightCount()
this
.
sildesHeightCount
()
},
},
sildesHeightCount
()
{
sildesHeightCount
()
{
// slides高度重新赋值
// slides高度重新赋值
...
@@ -337,7 +337,7 @@ export default {
...
@@ -337,7 +337,7 @@ export default {
fIndex
===
-
1
?
item
.
user_answer
.
push
(
opt
.
id
)
:
item
.
user_answer
.
splice
(
fIndex
,
1
)
fIndex
===
-
1
?
item
.
user_answer
.
push
(
opt
.
id
)
:
item
.
user_answer
.
splice
(
fIndex
,
1
)
}
}
this
.
cacheList
[
item
.
question_id
]
=
item
.
user_answer
this
.
cacheList
[
item
.
question_id
]
=
item
.
user_answer
//
this.sildesHeightCount()
this
.
sildesHeightCount
()
}
}
},
},
// 初始化数据 || 翻页请求数据
// 初始化数据 || 翻页请求数据
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论