Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
T
transport-show-h5
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
transport-show-h5
Commits
100f7aba
提交
100f7aba
authored
7月 08, 2020
作者:
lihuihui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
updata
上级
c86f6e66
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
33 行增加
和
13 行删除
+33
-13
ExamEnd.vue
src/modules/exam-module/src/ExamEnd.vue
+2
-4
ExamTopic.vue
src/modules/exam-module/src/ExamTopic.vue
+21
-3
index.vue
src/pages/courseExam/index.vue
+5
-0
index.vue
src/pages/mockExam/index.vue
+4
-5
buyCourses.vue
src/pages/my/buyCourses.vue
+1
-1
没有找到文件。
src/modules/exam-module/src/ExamEnd.vue
浏览文件 @
100f7aba
...
...
@@ -136,11 +136,9 @@ export default {
methods
:
{
goAbilityExam
()
{
this
.
$router
.
push
({
path
:
'/exam/
answer
'
,
path
:
'/exam/
index
'
,
query
:
{
type
:
1
,
is_create
:
1
,
papersUrl
:
'zy/v2/examination/examination-papers'
t
:
1
}
})
},
...
...
src/modules/exam-module/src/ExamTopic.vue
浏览文件 @
100f7aba
...
...
@@ -17,7 +17,10 @@
<swiper-slide
:key=
"dIndex+dItem.id"
:data-dId=
"dItem.id"
:data-cId=
"item.id"
>
<!--
<answer
:item=
"item"
:dItem=
"dItem"
:currentNum=
"currentNum"
:questionsData=
"questionsData"
:requestData=
"requestData"
:requestData2=
"requestData2"
></answer>
-->
<div
class=
"title"
>
<div
class=
"type"
>
{{
dItem
.
question_title
}}
</div>
<div
class=
"type"
v-if=
"item.type == 1"
>
单选题
</div>
<div
class=
"type"
v-if=
"item.type == 2"
>
多选题
</div>
<div
class=
"type"
v-if=
"item.type == 5"
>
案例题
</div>
<div
class=
"type"
v-if=
"item.type == 6"
>
判断题
</div>
<div
class=
"count"
>
{{
currentNum
}}
/
{{
questionsData
.
sheet
.
question_count
}}
</div>
</div>
<div
class=
"topic"
v-html=
"dItem.question_content"
>
...
...
@@ -135,6 +138,7 @@ export default {
remainingTime
:
'01:00:00'
,
currentNum
:
1
,
isAnalysis
:
false
,
swiperSign
:
0
,
swiperOptions
:
{
observer
:
true
,
on
:
{
...
...
@@ -149,6 +153,17 @@ export default {
_this
.
isAnalysis
=
false
_this
.
currentNum
=
this
.
activeIndex
+
1
_this
.
currentNum
===
_this
.
questionsData
.
sheet
.
question_count
?
_this
.
nextBtnShow
=
false
:
_this
.
nextBtnShow
=
true
},
slidePrevTransitionEnd
:
function
()
{
if
(
this
.
activeIndex
===
_this
.
questionsData
.
sheet
.
question_count
-
1
)
{
this
.
slideTo
(
_this
.
swiperSign
,
0
,
false
)
_this
.
currentNum
=
this
.
activeIndex
+
1
}
},
slideNextTransitionEnd
:
function
()
{
if
(
this
.
activeIndex
===
_this
.
questionsData
.
sheet
.
question_count
-
1
)
{
_this
.
swiperSign
=
_this
.
questionsData
.
sheet
.
question_count
-
1
}
}
}
},
...
...
@@ -283,6 +298,7 @@ export default {
}
},
showCard
()
{
this
.
swiperSign
=
this
.
swiper
.
activeIndex
document
.
getElementById
(
'bottom-view'
).
scrollTop
=
0
this
.
topicCard
.
isShow
=
true
this
.
swiper
.
slideTo
(
this
.
questionsData
.
sheet
.
question_count
,
0
,
false
)
...
...
@@ -303,7 +319,8 @@ export default {
this
.
requestData
[
itemCid
]
=
{
[
itemDid
]:
{
sign
:
true
,
answer
:
[]
answer
:
[],
opaVal
:
[]
}
}
on
()
...
...
@@ -312,7 +329,8 @@ export default {
if
(
!
this
.
requestData
[
itemCid
][
itemDid
])
{
this
.
requestData
[
itemCid
][
itemDid
]
=
{
sign
:
true
,
answer
:
[]
answer
:
[],
opaVal
:
[]
}
on
()
}
else
{
...
...
src/pages/courseExam/index.vue
浏览文件 @
100f7aba
...
...
@@ -125,6 +125,11 @@ export default {
]
}
},
created
()
{
if
(
this
.
$route
.
query
.
t
===
1
)
{
this
.
goAbilityExam
(
1
)
}
},
mounted
()
{
// this.getCourseChapterList()
this
.
scrollDom
()
...
...
src/pages/mockExam/index.vue
浏览文件 @
100f7aba
<
template
>
<div
class=
"mock-box"
>
<div
class=
"mock-box"
v-if=
"pageShow"
>
<div
class=
"top-tit"
>
<div
class=
"left"
>
考试时间90分钟
</div>
<div
class=
"right"
>
总分100分
</div>
...
...
@@ -44,18 +44,16 @@
<
script
>
import
*
as
api
from
'@/api/courseExam.js'
import
*
as
courseApi
from
'@/api/course.js'
export
default
{
data
()
{
return
{
roleChange
:
1
,
isExamPop
:
false
isExamPop
:
false
,
pageShow
:
false
}
},
mounted
()
{
this
.
abilityExam
()
courseApi
.
getCourseList
().
then
(
response
=>
{
})
},
methods
:
{
changeActive
(
e
)
{
...
...
@@ -69,6 +67,7 @@ export default {
if
(
res
.
status
===
'0'
||
res
.
status
===
'3'
)
{
this
.
isExamPop
=
true
}
this
.
pageShow
=
true
})
},
goAbilityExam
(
n
)
{
...
...
src/pages/my/buyCourses.vue
浏览文件 @
100f7aba
...
...
@@ -18,7 +18,7 @@
</div>
<div
class=
"deti"
>
<div
class=
"val col"
v-if=
"item.status == 1"
>
购买成功
</div>
<div
class=
"val col"
v-else
@
click=
"goBuy"
>
继续
购买
</div>
<div
class=
"val col"
v-else
@
click=
"goBuy"
>
继续
支付
</div>
</div>
</li>
</
template
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论