Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
T
transport-show-h5
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
transport-show-h5
Commits
507be808
提交
507be808
authored
8月 14, 2020
作者:
lihuihui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改购买页
上级
21704d98
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
33 行增加
和
31 行删除
+33
-31
c4.png
src/assets/images/pay/c4.png
+0
-0
c5.png
src/assets/images/pay/c5.png
+0
-0
answerCard.vue
src/modules/exam-module/components/answerCard.vue
+6
-7
ExamTopic.vue
src/modules/exam-module/src/ExamTopic.vue
+23
-20
index.vue
src/pages/pay/index.vue
+2
-2
payPage.vue
src/pages/pay/payPage.vue
+2
-2
没有找到文件。
src/assets/images/pay/c4.png
查看替换文件 @
21704d98
浏览文件 @
507be808
159.7 KB
|
W:
|
H:
94.0 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/assets/images/pay/c5.png
查看替换文件 @
21704d98
浏览文件 @
507be808
279.4 KB
|
W:
|
H:
179.4 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/modules/exam-module/components/answerCard.vue
浏览文件 @
507be808
...
...
@@ -26,7 +26,7 @@
<div
class=
"title"
>
{{
answerData
[
'1'
].
title
}}
</div>
<ul>
<template
v-for=
"(item, index) in answerData['1'].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 ? 'active3' : 'active1'"
>
{{
item
.
num
}}
</li>
<li
@
click=
"go(item.id
, item.num
)"
:data-id=
"item.id"
:key=
"index"
:class=
"item.sign == true ? 'active2' : item.answer == undefined ? 'active3' : item.answer.length == 0 ? 'active3' : 'active1'"
>
{{
item
.
num
}}
</li>
</
template
>
</ul>
</template>
...
...
@@ -34,7 +34,7 @@
<div
class=
"title"
>
{{
answerData
[
'2'
].
title
}}
</div>
<ul>
<template
v-for=
"(item, index) in answerData['2'].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 ? 'active3' : 'active1'"
>
{{
item
.
num
}}
</li>
<li
@
click=
"go(item.id
, item.num
)"
:data-id=
"item.id"
:key=
"index"
:class=
"item.sign == true ? 'active2' : item.answer == undefined ? 'active3' : item.answer.length == 0 ? 'active3' : 'active1'"
>
{{
item
.
num
}}
</li>
</
template
>
</ul>
</template>
...
...
@@ -42,7 +42,7 @@
<div
class=
"title"
>
{{
answerData
[
'6'
].
title
}}
</div>
<ul>
<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 ? 'active3' : 'active1'"
>
{{
item
.
num
}}
</li>
<li
@
click=
"go(item.id
, item.num
)"
:data-id=
"item.id"
:key=
"index"
:class=
"item.sign == true ? 'active2' : item.answer == undefined ? 'active3' : item.answer.length == 0 ? 'active3' : 'active1'"
>
{{
item
.
num
}}
</li>
</
template
>
</ul>
</template>
...
...
@@ -50,7 +50,7 @@
<div
class=
"title"
>
{{
answerData
[
'5'
].
title
}}
</div>
<ul>
<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 ? 'active3' : 'active1'"
>
{{
item
.
num
}}
</li>
<li
@
click=
"go(item.id
, item.num
)"
:data-id=
"item.id"
:key=
"index"
:class=
"item.sign == true ? 'active2' : item.answer == undefined ? 'active3' : item.answer.length == 0 ? 'active3' : 'active1'"
>
{{
item
.
num
}}
</li>
</
template
>
</ul>
</template>
...
...
@@ -114,12 +114,11 @@ export default {
}
},
methods
:
{
go
(
id
)
{
console
.
log
(
id
)
go
(
id
,
num
)
{
setTimeout
(()
=>
{
this
.
$emit
(
'showCard'
)
},
200
)
this
.
$emit
(
'cardChange'
,
id
)
this
.
$emit
(
'cardChange'
,
{
id
:
id
,
num
:
parseInt
(
num
/
10
)
}
)
},
scrollDom
()
{
const
topViewH
=
document
.
getElementById
(
'top-view2'
).
offsetHeight
...
...
src/modules/exam-module/src/ExamTopic.vue
浏览文件 @
507be808
...
...
@@ -14,10 +14,13 @@
<swiper
ref=
"mySwiper"
:options=
"swiperOptions"
>
<template
v-for=
"(item) in questionsData.questions"
>
<template
v-for=
"(dItem, dIndex) in item.question_list"
>
<swiper-slide
:key=
"dIndex+dItem.id"
:data-dId=
"dItem.id"
:data-cId=
"item.id"
:indexs=
"dItem.num"
>
<!-- v-if="dItem.num
<
=
(
countPage
.
currentPage
+
1
)
*
countPage
.
showQuestionNum
&&
dItem
.
num
>
= ((countPage.currentPage == 1 ? 0 : countPage.currentPage) - 2) * countPage.showQuestionNum" -->
<swiper-slide
:key=
"dIndex+dItem.id"
:data-dId=
"dItem.id"
:data-cId=
"item.id"
:indexs=
"dItem.num"
>
<!-- v-if="dItem.num
<
=
countPage
.
currentPage
*
countPage
.
showQuestionNum
&&
dItem
.
num
>
= countPage.currentPage * countPage.showQuestionNum - 20" -->
<div
class=
"title"
>
<!--
{{
dItem
.
num
}}
-
{{
(
countPage
.
currentPage
+
1
)
*
countPage
.
showQuestionNum
}}
===
{{
dItem
.
num
}}
-
{{
((
countPage
.
currentPage
==
1
?
0
:
countPage
.
currentPage
)
-
2
)
*
countPage
.
showQuestionNum
}}
-->
<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>
...
...
@@ -254,6 +257,9 @@ export default {
_this
.
requestData
.
answerPage
=
this
.
activeIndex
},
slidePrevTransitionEnd
:
function
()
{
// if (this.activeIndex === 0) {
// _this.prevQuestionLoading()
// }
if
(
this
.
activeIndex
===
_this
.
questionsData
.
sheet
.
question_count
-
1
)
{
this
.
slideTo
(
_this
.
swiperSign
,
0
,
false
)
_this
.
currentNum
=
this
.
activeIndex
+
1
...
...
@@ -261,10 +267,6 @@ export default {
_this
.
sildesHeightCount
()
_this
.
setCurrentCollect
()
_this
.
getIsSign
()
}
else
{
// if (this.activeIndex === 0) {
// _this.prevQuestionLoading()
// }
}
},
slideNextTransitionEnd
:
function
()
{
...
...
@@ -332,28 +334,27 @@ export default {
},
methods
:
{
prevQuestionLoading
()
{
const
qId
=
this
.
swiper
.
slides
[
this
.
swiper
.
activeIndex
].
attributes
[
'data-cId'
].
nodeValue
console
.
log
(
qId
,
this
.
questionsData
.
questions
)
// const item = this.questionData.list.find(item => { return item.question_id === qId })
const
dId
=
this
.
swiper
.
slides
[
this
.
swiper
.
activeIndex
].
attributes
[
'data-dId'
].
nodeValue
this
.
countPage
.
currentPage
--
this
.
$nextTick
(()
=>
{
for
(
let
i
=
0
;
i
<
this
.
swiper
.
slides
.
length
;
i
++
)
{
if
(
this
.
swiper
.
slides
[
i
].
attributes
[
'data-dId'
])
{
this
.
swiper
.
slides
[
i
].
attributes
[
'data-dId'
].
nodeValue
===
dId
&&
(
this
.
swiper
.
slideTo
(
i
,
0
,
false
))
}
this
.
currentNum
=
this
.
swiper
.
activeIndex
}
})
},
nextQuestionLoading
()
{
// countPage: {
// currentPage: 1,
// showQuestionNum: 10
// },
const
dId
=
this
.
swiper
.
slides
[
this
.
swiper
.
activeIndex
].
attributes
[
'data-dId'
].
nodeValue
this
.
countPage
.
currentPage
+=
this
.
countPage
.
currentPage
this
.
countPage
.
currentPage
++
this
.
$nextTick
(()
=>
{
for
(
let
i
=
0
;
i
<
this
.
swiper
.
slides
.
length
;
i
++
)
{
console
.
log
(
i
)
if
(
this
.
swiper
.
slides
[
i
].
attributes
[
'data-dId'
])
{
this
.
swiper
.
slides
[
i
].
attributes
[
'data-dId'
].
nodeValue
===
dId
&&
(
this
.
swiper
.
slideTo
(
i
,
0
,
false
))
}
}
})
// console.log(dId, this.questionsData.questions)
// this.swiper.slideTo(0, 0, false)
// console.log(this.swiper.slides.length)
},
sildesHeightCount
()
{
// slides高度重新赋值
...
...
@@ -490,7 +491,9 @@ export default {
this
.
isExamEnd
=
false
},
// 答题卡点击跳题
cardChange
(
e
)
{
cardChange
(
data
)
{
const
e
=
data
.
id
this
.
countPage
.
currentPage
=
data
.
num
for
(
let
i
=
0
;
i
<
this
.
questionsData
.
sheet
.
question_count
;
i
++
)
{
if
(
this
.
swiper
.
slides
[
i
].
attributes
[
'data-dId'
].
nodeValue
===
e
)
{
setTimeout
(()
=>
{
...
...
src/pages/pay/index.vue
浏览文件 @
507be808
...
...
@@ -203,9 +203,9 @@ export default {
right
:
0
;
width
:
3
.3rem
;
height
:
1rem
;
background
:linear-gradient
(
-90deg
,
rgba
(
204
,
15
8
,
94
,
1
),
rgba
(
247
,
214
,
161
,
1
))
;
background
:linear-gradient
(
-90deg
,
rgba
(
204
,
15
7
,
93
,
1
),
rgba
(
247
,
213
,
161
,
1
))
;
font-size
:
.37rem
;
color
:rgba
(
8
1
,
42
,
4
,
1
)
;
color
:rgba
(
8
0
,
41
,
3
,
1
)
;
line-height
:
1rem
;
text-align
:
center
;
}
...
...
src/pages/pay/payPage.vue
浏览文件 @
507be808
...
...
@@ -203,9 +203,9 @@ export default {
right
:
0
;
width
:
3
.3rem
;
height
:
1rem
;
background
:linear-gradient
(
-90deg
,
rgba
(
204
,
15
8
,
94
,
1
),
rgba
(
247
,
214
,
161
,
1
))
;
background
:linear-gradient
(
-90deg
,
rgba
(
204
,
15
7
,
93
,
1
),
rgba
(
247
,
213
,
161
,
1
))
;
font-size
:
.37rem
;
color
:rgba
(
8
1
,
42
,
4
,
1
)
;
color
:rgba
(
8
0
,
41
,
3
,
1
)
;
line-height
:
1rem
;
text-align
:
center
;
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论