Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
T
transport-show-h5
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
transport-show-h5
Commits
bdabdbb9
提交
bdabdbb9
authored
7月 13, 2020
作者:
lihuihui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
updata
上级
8cc9bc90
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
16 行增加
和
12 行删除
+16
-12
ExamTopic.vue
src/modules/exam-module/src/ExamTopic.vue
+8
-1
index.vue
src/pages/courseExam/index.vue
+7
-11
index.vue
src/pages/home/index.vue
+1
-0
没有找到文件。
src/modules/exam-module/src/ExamTopic.vue
浏览文件 @
bdabdbb9
...
...
@@ -157,6 +157,7 @@ export default {
_this
.
isAnalysis
=
false
_this
.
currentNum
=
this
.
activeIndex
+
1
_this
.
currentNum
===
_this
.
questionsData
.
sheet
.
question_count
?
_this
.
nextBtnShow
=
false
:
_this
.
nextBtnShow
=
true
_this
.
requestData
.
answerPage
=
this
.
activeIndex
},
slidePrevTransitionEnd
:
function
()
{
console
.
log
(
this
.
activeIndex
,
_this
.
questionsData
.
sheet
.
question_count
-
1
)
...
...
@@ -543,6 +544,12 @@ export default {
this
.
cardChange
(
this
.
$route
.
query
.
id
)
},
100
)
this
.
currentNum
===
this
.
questionsData
.
sheet
.
question_count
?
this
.
nextBtnShow
=
false
:
this
.
nextBtnShow
=
true
if
(
res
.
answers
.
answerPage
!==
undefined
)
{
setTimeout
(()
=>
{
this
.
currentNum
=
res
.
answers
.
answerPage
+
1
this
.
swiper
.
slideTo
(
res
.
answers
.
answerPage
,
0
,
false
)
},
100
)
}
if
(
res
.
answers
!==
null
)
{
const
datas
=
res
.
answers
if
(
datas
.
length
===
0
)
{
...
...
@@ -550,7 +557,7 @@ export default {
this
.
requestData2
=
0
return
false
}
this
.
requestData
=
res
.
answer
s
this
.
requestData
=
data
s
this
.
requestData2
=
Object
.
keys
(
datas
).
length
}
else
{
this
.
requestData
=
{}
...
...
src/pages/courseExam/index.vue
浏览文件 @
bdabdbb9
...
...
@@ -84,7 +84,7 @@ png图片,可以方便你直接应用到自己的设计作品中,我们
<div
class=
"tit"
>
能力自测
</div>
<div
class=
"txt"
>
考试还未结束确定退出考试?
</div>
<div
class=
"btn_box"
>
<div
class=
"btn"
@
click=
"isExamPopTo = false"
>
看看其他
</div>
<div
class=
"btn"
@
click=
"isExamPopTo = false"
>
退出考试
</div>
<div
class=
"btn btn2"
@
click=
"goAbilityExam(0)"
>
继续考试
</div>
</div>
</div>
...
...
@@ -135,12 +135,16 @@ export default {
this
.
getCourseChapterList
()
this
.
tabNav
.
navIndex
=
1
}
else
{
this
.
init
()
if
(
window
.
localStorage
.
isExamEnd
===
'true'
||
window
.
localStorage
.
isExamEnd
===
true
)
{
this
.
init
()
}
this
.
tabNav
.
navIndex
=
0
}
// this.getCourseChapterList()
this
.
scrollDom
()
},
// beforeMount() {
// },
methods
:
{
courseNodeDetail
(
id
)
{
const
path
=
`/exam/courseNode?id=
${
id
}
`
...
...
@@ -215,16 +219,8 @@ export default {
})
},
goAbilityExam
(
n
)
{
window
.
localStorage
.
isExamEnd
=
true
window
.
localStorage
.
examTab
=
0
// const path = `/exam/answer?type=1&is_create=${n}&papersUrl=zy/v2/examination/examination-papers`
// if (this.isWeapp) {
// const src = encodeURIComponent(`${window.location.origin}${path}`)
// wx.miniProgram.navigateTo({
// url: `/pages/web/index?src=${src}`
// })
// } else {
// this.$router.push({ path })
// }
this
.
$router
.
push
({
path
:
'/exam/answer'
,
query
:
{
...
...
src/pages/home/index.vue
浏览文件 @
bdabdbb9
...
...
@@ -111,6 +111,7 @@ export default {
this
.
$router
.
push
({
name
})
}
window
.
localStorage
.
examTab
=
0
window
.
localStorage
.
isExamEnd
=
false
}
},
beforeMount
()
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论