Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
T
transport-show-h5
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
transport-show-h5
Commits
f67d5357
提交
f67d5357
authored
7月 05, 2020
作者:
lihuihui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
updata
上级
f95fefa0
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
36 行增加
和
19 行删除
+36
-19
.config.dev.js
.config.dev.js
+7
-7
answerCard.vue
src/modules/exam-module/components/answerCard.vue
+1
-2
ExamTopic.vue
src/modules/exam-module/src/ExamTopic.vue
+28
-10
没有找到文件。
.config.dev.js
浏览文件 @
f67d5357
module
.
exports
=
{
demain
:
'dev.ezijing.com'
,
url
:
'https://transport.ezijing.com/api'
,
url
:
'https://transport
2
.ezijing.com/api'
,
// apiBaseURL: 'https://zy2.ezijing.com/',
webpack
:
{
externals
:
{
...
...
@@ -19,12 +19,12 @@ module.exports = {
// '^/api/passport': '/' // 需要rewrite重写的
// }
// },
'/usercenter'
:
{
target
:
'https://api-usercenter.ezijing.com'
,
pathRewrite
:
{
'^/usercenter'
:
'/'
// 需要rewrite重写的
}
}
//
'/usercenter': {
//
target: 'https://api-usercenter.ezijing.com',
//
pathRewrite: {
//
'^/usercenter': '/' // 需要rewrite重写的
//
}
//
}
/* 多个代理 */
// '/api': {
// target: $GLOBAL.webConf.url,
...
...
src/modules/exam-module/components/answerCard.vue
浏览文件 @
f67d5357
...
...
@@ -2,7 +2,6 @@
<div
class=
"card_box"
>
<div
class=
"head"
id=
"top-view2"
>
<i
class=
"el-icon-arrow-left"
></i>
<div
class=
"title"
@
click=
"$emit('showCard')"
>
答题卡
</div>
</div>
<div
id=
"bottom-view2"
>
<div
class=
"card_con"
>
...
...
@@ -71,7 +70,7 @@ export default {
}
},
mounted
()
{
this
.
scrollDom
()
//
this.scrollDom()
},
data
()
{
return
{
...
...
src/modules/exam-module/src/ExamTopic.vue
浏览文件 @
f67d5357
<
template
>
<div
class=
"exam-box"
>
<div
id=
"top-view"
>
<div
id=
"top-view"
v-show=
"!topicCard.isShow"
>
<div
class=
"tool-box"
>
<div
class=
"time"
>
{{
remainingTime
}}
</div>
<div
class=
"tag-box"
>
...
...
@@ -56,16 +56,18 @@
</swiper-slide>
</template>
</template>
<swiper-slide>
<card
@
cardChange=
"cardChange"
@
showCard=
"showCard"
:questionsData=
"questionsData"
:requestData=
"requestData"
></card>
</swiper-slide>
</swiper>
</div>
<div
class=
"btn-box"
>
<div
class=
"btn-box"
v-show=
"!topicCard.isShow"
>
<div
class=
"padd"
>
<div
class=
"analysis"
@
click=
"analyShow"
v-if=
"$route.query.id || $route.query.course_id || $route.query.chapter_id"
>
查看解析
</div>
<div
class=
"btn left"
@
click=
"switchQuestions('left')"
>
上一题
</div>
<div
class=
"btn right"
@
click=
"switchQuestions('right')"
>
下一题
</div>
<div
class=
"btn left"
@
click=
"switchQuestions('left')"
v-show=
"currentNum !== 1"
>
上一题
</div>
<div
class=
"btn right"
@
click=
"switchQuestions('right')"
v-show=
"nextBtnShow"
>
下一题
</div>
</div>
</div>
<card
v-if=
"isCard"
@
cardChange=
"cardChange"
@
showCard=
"showCard"
:questionsData=
"questionsData"
:requestData=
"requestData"
></card>
<!-- <exam-end @cardChange="cardChange;examIsShow = false;isExamSubPop = false" @examEndBack="examEndBack" v-if="examIsShow" :questionsData="questionsData" :requestData="requestData"></exam-end> -->
<div
class=
"exam_submit"
v-if=
"isExamSubPop"
>
<div
class=
"pop"
>
...
...
@@ -82,7 +84,7 @@
<div
class=
"tit"
>
提示
</div>
<img
src=
"../assets/images/time.png"
alt=
""
>
<div
class=
"txt"
>
考试时间到!答题结束
</div>
<div
class=
"btn"
@
click=
"goExamResult ;examSubmit(1, true)"
>
确定
</div>
<div
class=
"btn"
@
click=
"
submitShowPop;
goExamResult ;examSubmit(1, true)"
>
确定
</div>
</div>
</div>
</div>
...
...
@@ -110,6 +112,7 @@ export default {
data
()
{
const
_this
=
this
return
{
nextBtnShow
:
true
,
isCard
:
false
,
opaKey
:
[
'A'
,
'B'
,
'C'
,
'D'
,
'E'
,
'F'
,
'G'
],
remainingTime
:
'01:00:00'
,
...
...
@@ -119,9 +122,15 @@ export default {
observer
:
true
,
on
:
{
slideChangeTransitionStart
:
function
()
{
if
(
this
.
activeIndex
===
_this
.
questionsData
.
sheet
.
question_count
)
{
_this
.
topicCard
.
isShow
=
true
}
else
{
_this
.
topicCard
.
isShow
=
false
}
document
.
getElementById
(
'bottom-view'
).
scrollTop
=
0
_this
.
isAnalysis
=
false
_this
.
currentNum
=
this
.
activeIndex
+
1
_this
.
currentNum
===
_this
.
questionsData
.
sheet
.
question_count
?
_this
.
nextBtnShow
=
false
:
_this
.
nextBtnShow
=
true
}
}
},
...
...
@@ -136,7 +145,10 @@ export default {
isExamSubPop
:
false
,
timePopIsShow
:
false
,
initTime
:
null
,
cache
:
null
cache
:
null
,
topicCard
:
{
isShow
:
false
}
}
},
computed
:
{
...
...
@@ -205,13 +217,18 @@ export default {
cardChange
(
e
)
{
for
(
let
i
=
0
;
i
<
this
.
questionsData
.
sheet
.
question_count
;
i
++
)
{
if
(
this
.
swiper
.
slides
[
i
].
attributes
[
'data-dId'
].
nodeValue
===
e
)
{
this
.
swiper
.
slideTo
(
i
,
0
,
false
)
this
.
currentNum
=
this
.
swiper
.
activeIndex
+
1
setTimeout
(()
=>
{
this
.
swiper
.
slideTo
(
i
,
0
,
false
)
this
.
currentNum
=
this
.
swiper
.
activeIndex
+
1
this
.
topicCard
.
isShow
=
false
this
.
currentNum
===
this
.
questionsData
.
sheet
.
question_count
?
this
.
nextBtnShow
=
false
:
this
.
nextBtnShow
=
true
},
100
)
}
}
},
showCard
()
{
this
.
isCard
=
!
this
.
isCard
this
.
topicCard
.
isShow
=
true
this
.
swiper
.
slideTo
(
this
.
questionsData
.
sheet
.
question_count
,
0
,
false
)
},
// 标记
signQuestion
()
{
...
...
@@ -568,6 +585,7 @@ export default {
font-weight
:
bold
;
padding
:
.35rem
.2rem
;
margin-bottom
:
.2rem
;
word-wrap
:break-word
;
}
.active
{
color
:
#fff
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论