Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
T
transport-show-h5
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
transport-show-h5
Commits
addff3da
提交
addff3da
authored
7月 16, 2020
作者:
lihuihui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
updata
上级
9d5aa06e
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
29 行增加
和
22 行删除
+29
-22
answerCard.vue
src/modules/exam-module/components/answerCard.vue
+6
-6
ExamEnd.vue
src/modules/exam-module/src/ExamEnd.vue
+6
-6
ExamTopic.vue
src/modules/exam-module/src/ExamTopic.vue
+16
-9
service.vue
src/pages/my/service.vue
+1
-1
没有找到文件。
src/modules/exam-module/components/answerCard.vue
浏览文件 @
addff3da
...
@@ -38,18 +38,18 @@
...
@@ -38,18 +38,18 @@
</
template
>
</
template
>
</ul>
</ul>
</template>
</template>
<
template
v-if=
"answerData['
5
'].data.length !=0"
>
<
template
v-if=
"answerData['
6
'].data.length !=0"
>
<div
class=
"title"
>
{{
answerData
[
'
5
'
].
title
}}
</div>
<div
class=
"title"
>
{{
answerData
[
'
6
'
].
title
}}
</div>
<ul>
<ul>
<template
v-for=
"(item, index) in answerData['
5
'].data"
>
<template
v-for=
"(item, index) in answerData['
6
'].data"
>
<li
@
click=
"go(item.id)"
:data-id=
"item.id"
:key=
"index"
:class=
"item.sign == true ? 'active2' : item.answer == undefined ? 'active3' : item.answer.length == 0 ? 'acitve3' : 'active1'"
>
{{
item
.
num
}}
</li>
<li
@
click=
"go(item.id)"
:data-id=
"item.id"
:key=
"index"
:class=
"item.sign == true ? 'active2' : item.answer == undefined ? 'active3' : item.answer.length == 0 ? 'acitve3' : 'active1'"
>
{{
item
.
num
}}
</li>
</
template
>
</
template
>
</ul>
</ul>
</template>
</template>
<
template
v-if=
"answerData['
6
'].data.length !=0"
>
<
template
v-if=
"answerData['
5
'].data.length !=0"
>
<div
class=
"title"
>
{{
answerData
[
'
6
'
].
title
}}
</div>
<div
class=
"title"
>
{{
answerData
[
'
5
'
].
title
}}
</div>
<ul>
<ul>
<template
v-for=
"(item, index) in answerData['
6
'].data"
>
<template
v-for=
"(item, index) in answerData['
5
'].data"
>
<li
@
click=
"go(item.id)"
:data-id=
"item.id"
:key=
"index"
:class=
"item.sign == true ? 'active2' : item.answer == undefined ? 'active3' : item.answer.length == 0 ? 'acitve3' : 'active1'"
>
{{
item
.
num
}}
</li>
<li
@
click=
"go(item.id)"
:data-id=
"item.id"
:key=
"index"
:class=
"item.sign == true ? 'active2' : item.answer == undefined ? 'active3' : item.answer.length == 0 ? 'acitve3' : 'active1'"
>
{{
item
.
num
}}
</li>
</
template
>
</
template
>
</ul>
</ul>
...
...
src/modules/exam-module/src/ExamEnd.vue
浏览文件 @
addff3da
...
@@ -66,18 +66,18 @@
...
@@ -66,18 +66,18 @@
</
template
>
</
template
>
</ul>
</ul>
</template>
</template>
<
template
v-if=
"answerData['
5
'].data.length !=0"
>
<
template
v-if=
"answerData['
6
'].data.length !=0"
>
<div
class=
"title"
>
{{
answerData
[
'
5
'
].
title
}}
</div>
<div
class=
"title"
>
{{
answerData
[
'
6
'
].
title
}}
</div>
<ul>
<ul>
<template
v-for=
"(item, index) in answerData['
5
'].data"
>
<template
v-for=
"(item, index) in answerData['
6
'].data"
>
<li
@
click=
"go(item.id)"
:data-id=
"item.id"
:key=
"index"
:class=
"item.answer == undefined ? 'active3' : item.is_right ? 'active1' : 'active2'"
>
{{
item
.
num
}}
</li>
<li
@
click=
"go(item.id)"
:data-id=
"item.id"
:key=
"index"
:class=
"item.answer == undefined ? 'active3' : item.is_right ? 'active1' : 'active2'"
>
{{
item
.
num
}}
</li>
</
template
>
</
template
>
</ul>
</ul>
</template>
</template>
<
template
v-if=
"answerData['
6
'].data.length !=0"
>
<
template
v-if=
"answerData['
5
'].data.length !=0"
>
<div
class=
"title"
>
{{
answerData
[
'
6
'
].
title
}}
</div>
<div
class=
"title"
>
{{
answerData
[
'
5
'
].
title
}}
</div>
<ul>
<ul>
<template
v-for=
"(item, index) in answerData['
6
'].data"
>
<template
v-for=
"(item, index) in answerData['
5
'].data"
>
<li
@
click=
"go(item.id)"
:data-id=
"item.id"
:key=
"index"
:class=
"item.answer == undefined ? 'active3' : item.is_right ? 'active1' : 'active2'"
>
{{
item
.
num
}}
</li>
<li
@
click=
"go(item.id)"
:data-id=
"item.id"
:key=
"index"
:class=
"item.answer == undefined ? 'active3' : item.is_right ? 'active1' : 'active2'"
>
{{
item
.
num
}}
</li>
</
template
>
</
template
>
</ul>
</ul>
...
...
src/modules/exam-module/src/ExamTopic.vue
浏览文件 @
addff3da
...
@@ -192,6 +192,9 @@ export default {
...
@@ -192,6 +192,9 @@ export default {
if
(
this
.
activeIndex
===
_this
.
questionsData
.
sheet
.
question_count
-
1
)
{
if
(
this
.
activeIndex
===
_this
.
questionsData
.
sheet
.
question_count
-
1
)
{
_this
.
swiperSign
=
_this
.
questionsData
.
sheet
.
question_count
-
1
_this
.
swiperSign
=
_this
.
questionsData
.
sheet
.
question_count
-
1
}
}
if
(
this
.
activeIndex
===
_this
.
questionsData
.
sheet
.
question_count
)
{
_this
.
requestData
.
answerPage
=
_this
.
questionsData
.
sheet
.
question_count
-
1
}
}
}
}
}
},
},
...
@@ -234,6 +237,7 @@ export default {
...
@@ -234,6 +237,7 @@ export default {
beforeDestroy
()
{
beforeDestroy
()
{
clearInterval
(
this
.
initTime
)
clearInterval
(
this
.
initTime
)
clearInterval
(
this
.
clockCount
)
clearInterval
(
this
.
clockCount
)
this
.
examSubmit
(
0
)
},
},
mounted
()
{
mounted
()
{
const
body
=
document
.
querySelector
(
'body'
)
const
body
=
document
.
querySelector
(
'body'
)
...
@@ -345,11 +349,12 @@ export default {
...
@@ -345,11 +349,12 @@ export default {
document
.
getElementById
(
'bottom-view'
).
scrollTop
=
0
document
.
getElementById
(
'bottom-view'
).
scrollTop
=
0
this
.
swiper
.
slideTo
(
i
,
0
,
false
)
this
.
swiper
.
slideTo
(
i
,
0
,
false
)
this
.
topicCard
.
isShow
=
false
this
.
topicCard
.
isShow
=
false
this
.
currentNum
===
this
.
questionsData
.
sheet
.
question_count
?
this
.
nextBtnShow
=
false
:
this
.
nextBtnShow
=
true
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
requestData
.
answerPage
=
this
.
swiper
.
activeIndex
this
.
currentNum
=
this
.
swiper
.
activeIndex
+
1
this
.
currentNum
=
this
.
swiper
.
activeIndex
+
1
this
.
currentNum
===
this
.
questionsData
.
sheet
.
question_count
?
this
.
nextBtnShow
=
false
:
this
.
nextBtnShow
=
true
},
100
)
},
100
)
this
.
getIsSign
()
this
.
getIsSign
()
},
200
)
},
200
)
...
@@ -357,6 +362,7 @@ export default {
...
@@ -357,6 +362,7 @@ export default {
}
}
},
},
showCard
()
{
showCard
()
{
this
.
requestData
.
answerPage
=
this
.
swiper
.
activeIndex
this
.
clickStatus
=
Date
.
parse
(
new
Date
())
this
.
clickStatus
=
Date
.
parse
(
new
Date
())
if
(
this
.
swiper
.
activeIndex
!==
this
.
questionsData
.
sheet
.
question_count
)
{
if
(
this
.
swiper
.
activeIndex
!==
this
.
questionsData
.
sheet
.
question_count
)
{
this
.
swiperSign
=
this
.
swiper
.
activeIndex
this
.
swiperSign
=
this
.
swiper
.
activeIndex
...
@@ -597,12 +603,13 @@ export default {
...
@@ -597,12 +603,13 @@ export default {
},
100
)
},
100
)
this
.
currentNum
===
this
.
questionsData
.
sheet
.
question_count
?
this
.
nextBtnShow
=
false
:
this
.
nextBtnShow
=
true
this
.
currentNum
===
this
.
questionsData
.
sheet
.
question_count
?
this
.
nextBtnShow
=
false
:
this
.
nextBtnShow
=
true
if
(
res
.
answers
!==
null
)
{
if
(
res
.
answers
!==
null
)
{
if
(
res
.
answers
.
answerPage
!==
undefined
&&
this
.
$route
.
query
.
id
===
undefined
&&
res
.
answers
.
answerPage
!==
this
.
questionsData
.
sheet
.
question_count
)
{
// if (res.answers.answerPage !== undefined && this.$route.query.id === undefined && res.answers.answerPage !== this.questionsData.sheet.question_count) {
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
currentNum
=
res
.
answers
.
answerPage
+
1
this
.
currentNum
=
res
.
answers
.
answerPage
+
1
this
.
swiper
.
slideTo
(
res
.
answers
.
answerPage
,
0
,
false
)
this
.
swiper
.
slideTo
(
res
.
answers
.
answerPage
,
0
,
false
)
},
100
)
this
.
currentNum
===
this
.
questionsData
.
sheet
.
question_count
?
this
.
nextBtnShow
=
false
:
this
.
nextBtnShow
=
true
}
},
100
)
// }
const
datas
=
res
.
answers
const
datas
=
res
.
answers
if
(
datas
.
length
===
0
)
{
if
(
datas
.
length
===
0
)
{
this
.
requestData
=
{}
this
.
requestData
=
{}
...
...
src/pages/my/service.vue
浏览文件 @
addff3da
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
</li>
</li>
</ul>
</ul>
<div
class=
"code"
>
<div
class=
"code"
>
<div
class=
"txt"
>
想了解更多,扫码关注我们
</div>
<div
class=
"txt"
>
想了解更多,
保存二维码图片,
扫码关注我们
</div>
<img
@
click=
"imagePreview"
src=
"https://zws-imgs-pub.ezijing.com/static/public/d720ec7c4eed91788de652fb7962a911.png"
alt=
""
>
<img
@
click=
"imagePreview"
src=
"https://zws-imgs-pub.ezijing.com/static/public/d720ec7c4eed91788de652fb7962a911.png"
alt=
""
>
</div>
</div>
</div>
</div>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论