Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
educationStu
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
向伟
educationStu
Commits
d636ab64
Commit
d636ab64
authored
Sep 22, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
95dc6497
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
1593 additions
and
980 deletions
+1593
-980
Calculation.vue
src/components/subject/Calculation.vue
+61
-25
Cloze.vue
src/components/subject/Cloze.vue
+44
-6
Dataquestion.vue
src/components/subject/Dataquestion.vue
+67
-30
EntryProblem.vue
src/components/subject/EntryProblem.vue
+67
-30
FillInTheBlanks.vue
src/components/subject/FillInTheBlanks.vue
+66
-29
ListenTopic.vue
src/components/subject/ListenTopic.vue
+516
-557
MultipleChoice.vue
src/components/subject/MultipleChoice.vue
+75
-39
Other.vue
src/components/subject/Other.vue
+66
-29
SharingChoose.vue
src/components/subject/SharingChoose.vue
+40
-2
SingleChoice.vue
src/components/subject/SingleChoice.vue
+66
-32
SingleChoiceNumber.vue
src/components/subject/SingleChoiceNumber.vue
+74
-37
SortingProblem.vue
src/components/subject/SortingProblem.vue
+40
-2
Spoken.vue
src/components/subject/Spoken.vue
+59
-22
easyQuestion.vue
src/components/subject/easyQuestion.vue
+61
-25
judge.vue
src/components/subject/judge.vue
+63
-27
nounExplanation.vue
src/components/subject/nounExplanation.vue
+61
-25
readingCompre.vue
src/components/subject/readingCompre.vue
+95
-38
shortAnswer.vue
src/components/subject/shortAnswer.vue
+61
-24
examScore.vue
src/pages/exam/examScore.vue
+11
-1
No files found.
src/components/subject/Calculation.vue
View file @
d636ab64
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
>
>
<swiper-item
v-if=
"sortIndex != 1"
></swiper-item>
<swiper-item
v-if=
"sortIndex != 1"
></swiper-item>
<swiper-item
v-for=
"(item1, index1) in data.DetailsList"
:key=
"index1"
>
<swiper-item
v-for=
"(item1, index1) in data.DetailsList"
:key=
"index1"
>
<view
class=
"item1"
>
<view
class=
"item1"
:style=
"
{height: `calc(100vh - 390rpx - ${statusBarHeight}px)`}"
>
<view
class=
"flex"
>
<view
class=
"flex"
>
<view>
{{
index1
+
1
}}
、
</view>
<view>
{{
index1
+
1
}}
、
</view>
<view
class=
"num"
v-html=
"item1.Title"
></view><text
class=
"Exam_Score"
>
(
{{
item1
.
Score
}}
)
</text>
<view
class=
"num"
v-html=
"item1.Title"
></view><text
class=
"Exam_Score"
>
(
{{
item1
.
Score
}}
)
</text>
...
@@ -47,7 +47,6 @@
...
@@ -47,7 +47,6 @@
item1
.
Answer
item1
.
Answer
}}
</view>
}}
</view>
</
template
>
</
template
>
</view>
<view
<view
class=
"AnswerContent"
class=
"AnswerContent"
v-if=
"!isOperate"
v-if=
"!isOperate"
...
@@ -72,6 +71,11 @@
...
@@ -72,6 +71,11 @@
></view>
></view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"AnswerBtn clear"
>
<view
class=
"AnswerBtnFirst"
@
click=
"getBeforeExam()"
v-if=
"ExamIndex!=1||sortIndex!=1"
>
上一题
</view>
<view
class=
"AnswerBtnSecond"
v-if=
"sortIndex != sortTotal"
@
click=
"getNextExam()"
>
下一题
</view>
</view>
</swiper-item>
</swiper-item>
<swiper-item
v-if=
"sortIndex != sortTotal"
></swiper-item>
<swiper-item
v-if=
"sortIndex != sortTotal"
></swiper-item>
</swiper>
</swiper>
...
@@ -162,6 +166,14 @@ export default {
...
@@ -162,6 +166,14 @@ export default {
}
}
context
.
emit
(
"answerChange"
,
data
.
data
);
context
.
emit
(
"answerChange"
,
data
.
data
);
},
},
//点击上一题
getBeforeExam
(){
data
.
current
=
data
.
current
-
1
;
},
//点击下一题
getNextExam
(){
data
.
current
=
data
.
current
+
1
;
}
};
};
onMounted
(()
=>
{
onMounted
(()
=>
{
if
(
props
.
isLast
)
{
if
(
props
.
isLast
)
{
...
@@ -182,6 +194,30 @@ export default {
...
@@ -182,6 +194,30 @@ export default {
};
};
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.AnswerBtn
{
margin-top
:
20
rpx
;
}
.clear
{
clear
:
both
}
.AnswerBtnFirst
{
width
:
250
rpx
;
height
:
60
rpx
;
text-align
:
center
;
line-height
:
60
rpx
;
border-radius
:
10
rpx
;
border
:
1px
solid
#00ACF9
;
color
:
#00ACF9
;
float
:
left
;
}
.AnswerBtnSecond
{
width
:
250
rpx
;
height
:
60
rpx
;
text-align
:
center
;
line-height
:
60
rpx
;
border-radius
:
10
rpx
;
background-color
:
#00ACF9
;
color
:
#fff
;
float
:
right
;
}
.name
{
.name
{
height
:
90
rpx
;
height
:
90
rpx
;
font-size
:
30
rpx
;
font-size
:
30
rpx
;
...
@@ -226,7 +262,7 @@ export default {
...
@@ -226,7 +262,7 @@ export default {
}
}
.Single_Before
{
.Single_Before
{
font-size
:
28
rpx
;
font-size
:
30
rpx
;
font-weight
:
bold
;
font-weight
:
bold
;
color
:
#da7878
;
color
:
#da7878
;
}
}
...
...
src/components/subject/Cloze.vue
View file @
d636ab64
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
}" :autoplay="autoplay" :current="current" @change="onchange">
}" :autoplay="autoplay" :current="current" @change="onchange">
<swiper-item
v-if=
"sortIndex != 1"
></swiper-item>
<swiper-item
v-if=
"sortIndex != 1"
></swiper-item>
<swiper-item
v-for=
"(item1, index1) in data.DetailsList"
:key=
"index1"
>
<swiper-item
v-for=
"(item1, index1) in data.DetailsList"
:key=
"index1"
>
<view
class=
"item1"
>
<view
class=
"item1"
:style=
"
{height: `calc(100vh - 390rpx - ${statusBarHeight}px)`}"
>
<view
class=
"flex"
>
<view
class=
"flex"
>
<view>
{{
index1
+
1
}}
、
</view>
<view>
{{
index1
+
1
}}
、
</view>
<view
class=
"num"
v-html=
"item1.Title"
></view><text
class=
"Exam_Score"
>
(
{{
item1
.
Score
}}
)
</text>
<view
class=
"num"
v-html=
"item1.Title"
></view><text
class=
"Exam_Score"
>
(
{{
item1
.
Score
}}
)
</text>
...
@@ -69,12 +69,16 @@
...
@@ -69,12 +69,16 @@
</view>
</view>
</template>
</template>
</view>
</view>
</view>
<view
class=
"AnswerContent"
v-if=
"!isOperate&&item1.AnswerParse"
style=
"margin-top:20px;"
>
<view
class=
"AnswerContent"
v-if=
"!isOperate&&item1.AnswerParse"
style=
"margin-top:20px;"
>
<view
style=
"margin-top: 20rpx; word-wrap: break-word"
>
<view
style=
"word-wrap: break-word;display: flex;align-items: center;"
>
<text
style=
"color: #8c8a94"
>
解析:
</text>
<text
style=
"color: #8c8a94"
>
解析:
</text>
<text
style=
"color: #000"
>
{{ item1.AnswerParse }}
</text>
<view
style=
"color: #000"
v-html=
"item1.AnswerParse"
></view>
</view>
</view>
</view>
</view>
<view
class=
"AnswerBtn clear"
>
<view
class=
"AnswerBtnFirst"
@
click=
"getBeforeExam()"
v-if=
"ExamIndex!=1||sortIndex!=1"
>
上一题
</view>
<view
class=
"AnswerBtnSecond"
v-if=
"sortIndex != sortTotal"
@
click=
"getNextExam()"
>
下一题
</view>
</view>
</view>
</swiper-item>
</swiper-item>
<swiper-item
v-if=
"sortIndex != sortTotal"
></swiper-item>
<swiper-item
v-if=
"sortIndex != sortTotal"
></swiper-item>
...
@@ -174,6 +178,14 @@
...
@@ -174,6 +178,14 @@
}
}
});
});
});
});
},
//点击上一题
getBeforeExam
(){
data
.
current
=
data
.
current
-
1
;
},
//点击下一题
getNextExam
(){
data
.
current
=
data
.
current
+
1
;
}
}
};
};
onMounted
(()
=>
{
onMounted
(()
=>
{
...
@@ -195,6 +207,31 @@
...
@@ -195,6 +207,31 @@
};
};
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.AnswerBtn
{
margin-top
:
20
rpx
;
}
.clear
{
clear
:
both
}
.AnswerBtnFirst
{
width
:
250
rpx
;
height
:
60
rpx
;
text-align
:
center
;
line-height
:
60
rpx
;
border-radius
:
10
rpx
;
border
:
1px
solid
#00ACF9
;
color
:
#00ACF9
;
float
:
left
;
}
.AnswerBtnSecond
{
width
:
250
rpx
;
height
:
60
rpx
;
text-align
:
center
;
line-height
:
60
rpx
;
border-radius
:
10
rpx
;
background-color
:
#00ACF9
;
color
:
#fff
;
float
:
right
;
}
.name
{
.name
{
height
:
90
rpx
;
height
:
90
rpx
;
font-size
:
30
rpx
;
font-size
:
30
rpx
;
...
@@ -265,6 +302,7 @@
...
@@ -265,6 +302,7 @@
.item1
{
.item1
{
align-items
:
center
;
align-items
:
center
;
overflow
:
auto
;
}
}
.item2
{
.item2
{
...
...
src/components/subject/Dataquestion.vue
View file @
d636ab64
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
>
>
<swiper-item
v-if=
"sortIndex != 1"
></swiper-item>
<swiper-item
v-if=
"sortIndex != 1"
></swiper-item>
<swiper-item
v-for=
"(item1, index1) in data.DetailsList"
:key=
"index1"
>
<swiper-item
v-for=
"(item1, index1) in data.DetailsList"
:key=
"index1"
>
<view
class=
"item1"
>
<view
class=
"item1"
:style=
"
{height: `calc(100vh - 390rpx - ${statusBarHeight}px)`}"
>
<view
class=
"flex"
>
<view
class=
"flex"
>
<view>
{{
index1
+
1
}}
、
</view>
<view>
{{
index1
+
1
}}
、
</view>
<view
class=
"num"
v-html=
"item1.Title"
></view><text
class=
"Exam_Score"
>
(
{{
item1
.
Score
}}
)
</text>
<view
class=
"num"
v-html=
"item1.Title"
></view><text
class=
"Exam_Score"
>
(
{{
item1
.
Score
}}
)
</text>
...
@@ -51,7 +51,6 @@
...
@@ -51,7 +51,6 @@
<view
class=
"viewAnswerContent"
v-html=
"item2.Content"
></view>
<view
class=
"viewAnswerContent"
v-html=
"item2.Content"
></view>
</
template
>
</
template
>
</view>
</view>
</view>
<view
class=
"AnswerContent"
v-if=
"!isOperate"
>
<view
class=
"AnswerContent"
v-if=
"!isOperate"
>
<view>
<view>
您的答案:
您的答案:
...
@@ -81,6 +80,11 @@
...
@@ -81,6 +80,11 @@
></view>
></view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"AnswerBtn clear"
>
<view
class=
"AnswerBtnFirst"
@
click=
"getBeforeExam()"
v-if=
"ExamIndex!=1||sortIndex!=1"
>
上一题
</view>
<view
class=
"AnswerBtnSecond"
v-if=
"sortIndex != sortTotal"
@
click=
"getNextExam()"
>
下一题
</view>
</view>
</swiper-item>
</swiper-item>
<swiper-item
v-if=
"sortIndex != sortTotal"
></swiper-item>
<swiper-item
v-if=
"sortIndex != sortTotal"
></swiper-item>
</swiper>
</swiper>
...
@@ -169,6 +173,14 @@ export default {
...
@@ -169,6 +173,14 @@ export default {
});
});
context
.
emit
(
"answerChange"
,
data
.
data
);
context
.
emit
(
"answerChange"
,
data
.
data
);
},
},
//点击上一题
getBeforeExam
(){
data
.
current
=
data
.
current
-
1
;
},
//点击下一题
getNextExam
(){
data
.
current
=
data
.
current
+
1
;
}
};
};
onMounted
(()
=>
{
onMounted
(()
=>
{
if
(
props
.
isLast
)
{
if
(
props
.
isLast
)
{
...
@@ -189,6 +201,30 @@ export default {
...
@@ -189,6 +201,30 @@ export default {
};
};
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.AnswerBtn
{
margin-top
:
20
rpx
;
}
.clear
{
clear
:
both
}
.AnswerBtnFirst
{
width
:
250
rpx
;
height
:
60
rpx
;
text-align
:
center
;
line-height
:
60
rpx
;
border-radius
:
10
rpx
;
border
:
1px
solid
#00ACF9
;
color
:
#00ACF9
;
float
:
left
;
}
.AnswerBtnSecond
{
width
:
250
rpx
;
height
:
60
rpx
;
text-align
:
center
;
line-height
:
60
rpx
;
border-radius
:
10
rpx
;
background-color
:
#00ACF9
;
color
:
#fff
;
float
:
right
;
}
.name
{
.name
{
height
:
90
rpx
;
height
:
90
rpx
;
font-size
:
30
rpx
;
font-size
:
30
rpx
;
...
@@ -255,6 +291,7 @@ export default {
...
@@ -255,6 +291,7 @@ export default {
.item1
{
.item1
{
align-items
:
center
;
align-items
:
center
;
overflow-y
:
auto
;
}
}
.item2
{
.item2
{
...
@@ -276,7 +313,7 @@ export default {
...
@@ -276,7 +313,7 @@ export default {
}
}
.chooseName
{
.chooseName
{
font-size
:
28
rpx
;
font-size
:
30
rpx
;
font-family
:
PingFang
SC
;
font-family
:
PingFang
SC
;
font-weight
:
500
;
font-weight
:
500
;
color
:
#111111
;
color
:
#111111
;
...
...
src/components/subject/EntryProblem.vue
View file @
d636ab64
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
>
>
<swiper-item
v-if=
"sortIndex != 1"
></swiper-item>
<swiper-item
v-if=
"sortIndex != 1"
></swiper-item>
<swiper-item
v-for=
"(item1, index1) in data.DetailsList"
:key=
"index1"
>
<swiper-item
v-for=
"(item1, index1) in data.DetailsList"
:key=
"index1"
>
<view
class=
"item1"
>
<view
class=
"item1"
:style=
"
{height: `calc(100vh - 390rpx - ${statusBarHeight}px)`}"
>
<view
class=
"flex"
>
<view
class=
"flex"
>
<view>
{{
index1
+
1
}}
、
</view>
<view>
{{
index1
+
1
}}
、
</view>
<view
class=
"num"
v-html=
"item1.Title"
></view><text
class=
"Exam_Score"
>
(
{{
item1
.
Score
}}
)
</text>
<view
class=
"num"
v-html=
"item1.Title"
></view><text
class=
"Exam_Score"
>
(
{{
item1
.
Score
}}
)
</text>
...
@@ -51,7 +51,6 @@
...
@@ -51,7 +51,6 @@
<view
class=
"viewAnswerContent"
v-html=
"item2.Content"
></view>
<view
class=
"viewAnswerContent"
v-html=
"item2.Content"
></view>
</
template
>
</
template
>
</view>
</view>
</view>
<view
class=
"AnswerContent"
v-if=
"!isOperate"
>
<view
class=
"AnswerContent"
v-if=
"!isOperate"
>
<view>
<view>
您的答案:
您的答案:
...
@@ -81,6 +80,11 @@
...
@@ -81,6 +80,11 @@
></view>
></view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"AnswerBtn clear"
>
<view
class=
"AnswerBtnFirst"
@
click=
"getBeforeExam()"
v-if=
"ExamIndex!=1||sortIndex!=1"
>
上一题
</view>
<view
class=
"AnswerBtnSecond"
v-if=
"sortIndex != sortTotal"
@
click=
"getNextExam()"
>
下一题
</view>
</view>
</swiper-item>
</swiper-item>
<swiper-item
v-if=
"sortIndex != sortTotal"
></swiper-item>
<swiper-item
v-if=
"sortIndex != sortTotal"
></swiper-item>
</swiper>
</swiper>
...
@@ -174,6 +178,14 @@ export default {
...
@@ -174,6 +178,14 @@ export default {
});
});
context
.
emit
(
"answerChange"
,
data
.
data
);
context
.
emit
(
"answerChange"
,
data
.
data
);
},
},
//点击上一题
getBeforeExam
(){
data
.
current
=
data
.
current
-
1
;
},
//点击下一题
getNextExam
(){
data
.
current
=
data
.
current
+
1
;
}
};
};
onMounted
(()
=>
{
onMounted
(()
=>
{
if
(
props
.
isLast
)
{
if
(
props
.
isLast
)
{
...
@@ -194,6 +206,30 @@ export default {
...
@@ -194,6 +206,30 @@ export default {
};
};
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.AnswerBtn
{
margin-top
:
20
rpx
;
}
.clear
{
clear
:
both
}
.AnswerBtnFirst
{
width
:
250
rpx
;
height
:
60
rpx
;
text-align
:
center
;
line-height
:
60
rpx
;
border-radius
:
10
rpx
;
border
:
1px
solid
#00ACF9
;
color
:
#00ACF9
;
float
:
left
;
}
.AnswerBtnSecond
{
width
:
250
rpx
;
height
:
60
rpx
;
text-align
:
center
;
line-height
:
60
rpx
;
border-radius
:
10
rpx
;
background-color
:
#00ACF9
;
color
:
#fff
;
float
:
right
;
}
.name
{
.name
{
height
:
90
rpx
;
height
:
90
rpx
;
font-size
:
30
rpx
;
font-size
:
30
rpx
;
...
@@ -236,7 +272,7 @@ export default {
...
@@ -236,7 +272,7 @@ export default {
}
}
.Single_Before
{
.Single_Before
{
font-size
:
28
rpx
;
font-size
:
30
rpx
;
font-weight
:
bold
;
font-weight
:
bold
;
color
:
#da7878
;
color
:
#da7878
;
}
}
...
@@ -258,6 +294,7 @@ export default {
...
@@ -258,6 +294,7 @@ export default {
.item1
{
.item1
{
align-items
:
center
;
align-items
:
center
;
overflow-y
:
auto
;
}
}
.item2
{
.item2
{
...
...
src/components/subject/FillInTheBlanks.vue
View file @
d636ab64
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
>
>
<swiper-item
v-if=
"sortIndex != 1"
></swiper-item>
<swiper-item
v-if=
"sortIndex != 1"
></swiper-item>
<swiper-item
v-for=
"(item1, index1) in data.DetailsList"
:key=
"index1"
>
<swiper-item
v-for=
"(item1, index1) in data.DetailsList"
:key=
"index1"
>
<view
class=
"item1"
>
<view
class=
"item1"
:style=
"
{height: `calc(100vh - 390rpx - ${statusBarHeight}px)`}"
>
<view
class=
"flex"
>
<view
class=
"flex"
>
<view>
{{
index1
+
1
}}
、
</view>
<view>
{{
index1
+
1
}}
、
</view>
<view
class=
"num"
v-html=
"item1.Title"
></view><text
class=
"Exam_Score"
>
(
{{
item1
.
Score
}}
)
</text>
<view
class=
"num"
v-html=
"item1.Title"
></view><text
class=
"Exam_Score"
>
(
{{
item1
.
Score
}}
)
</text>
...
@@ -47,7 +47,6 @@
...
@@ -47,7 +47,6 @@
<view
class=
"viewAnswerContent"
v-html=
"item2.Content"
></view>
<view
class=
"viewAnswerContent"
v-html=
"item2.Content"
></view>
</
template
>
</
template
>
</view>
</view>
</view>
<view
class=
"AnswerContent"
v-if=
"!isOperate"
>
<view
class=
"AnswerContent"
v-if=
"!isOperate"
>
<view>
<view>
您的答案:
您的答案:
...
@@ -77,6 +76,11 @@
...
@@ -77,6 +76,11 @@
></view>
></view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"AnswerBtn clear"
>
<view
class=
"AnswerBtnFirst"
@
click=
"getBeforeExam()"
v-if=
"ExamIndex!=1||sortIndex!=1"
>
上一题
</view>
<view
class=
"AnswerBtnSecond"
v-if=
"sortIndex != sortTotal"
@
click=
"getNextExam()"
>
下一题
</view>
</view>
</swiper-item>
</swiper-item>
<swiper-item
v-if=
"sortIndex != sortTotal"
></swiper-item>
<swiper-item
v-if=
"sortIndex != sortTotal"
></swiper-item>
</swiper>
</swiper>
...
@@ -162,6 +166,14 @@ export default {
...
@@ -162,6 +166,14 @@ export default {
return
e
.
Content
!=
""
&&
e
.
Content
;
return
e
.
Content
!=
""
&&
e
.
Content
;
});
});
},
},
//点击上一题
getBeforeExam
(){
data
.
current
=
data
.
current
-
1
;
},
//点击下一题
getNextExam
(){
data
.
current
=
data
.
current
+
1
;
}
};
};
onMounted
(()
=>
{
onMounted
(()
=>
{
if
(
props
.
isLast
)
{
if
(
props
.
isLast
)
{
...
@@ -181,6 +193,30 @@ export default {
...
@@ -181,6 +193,30 @@ export default {
};
};
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.AnswerBtn
{
margin-top
:
20
rpx
;
}
.clear
{
clear
:
both
}
.AnswerBtnFirst
{
width
:
250
rpx
;
height
:
60
rpx
;
text-align
:
center
;
line-height
:
60
rpx
;
border-radius
:
10
rpx
;
border
:
1px
solid
#00ACF9
;
color
:
#00ACF9
;
float
:
left
;
}
.AnswerBtnSecond
{
width
:
250
rpx
;
height
:
60
rpx
;
text-align
:
center
;
line-height
:
60
rpx
;
border-radius
:
10
rpx
;
background-color
:
#00ACF9
;
color
:
#fff
;
float
:
right
;
}
.name
{
.name
{
height
:
90
rpx
;
height
:
90
rpx
;
font-size
:
30
rpx
;
font-size
:
30
rpx
;
...
@@ -243,6 +279,7 @@ export default {
...
@@ -243,6 +279,7 @@ export default {
.item1
{
.item1
{
align-items
:
center
;
align-items
:
center
;
overflow
:
auto
;
}
}
.item2
{
.item2
{
...
...
src/components/subject/ListenTopic.vue
View file @
d636ab64
This diff is collapsed.
Click to expand it.
src/components/subject/MultipleChoice.vue
View file @
d636ab64
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
>
>
<swiper-item
v-if=
"sortIndex != 1"
></swiper-item>
<swiper-item
v-if=
"sortIndex != 1"
></swiper-item>
<swiper-item
v-for=
"(item1, index1) in data.DetailsList"
:key=
"index1"
>
<swiper-item
v-for=
"(item1, index1) in data.DetailsList"
:key=
"index1"
>
<view
class=
"item1"
>
<view
class=
"item1"
:style=
"
{height: `calc(100vh - 390rpx - ${statusBarHeight}px)`}"
>
<view
class=
"flex"
>
<view
class=
"flex"
>
<view
class=
"num"
v-html=
"item1.Title"
></view><text
class=
"Exam_Score"
>
(
{{
item1
.
Score
}}
)
</text>
<view
class=
"num"
v-html=
"item1.Title"
></view><text
class=
"Exam_Score"
>
(
{{
item1
.
Score
}}
)
</text>
</view>
</view>
...
@@ -61,7 +61,6 @@
...
@@ -61,7 +61,6 @@
</view>
</view>
</
template
>
</
template
>
</view>
</view>
</view>
<view
class=
"AnswerContent"
v-if=
"!isOperate"
>
<view
class=
"AnswerContent"
v-if=
"!isOperate"
>
<view>
<view>
<text
style=
"color: #8c8a94"
>
正确答案:
</text>
<text
style=
"color: #8c8a94"
>
正确答案:
</text>
...
@@ -100,6 +99,11 @@
...
@@ -100,6 +99,11 @@
></view>
></view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"AnswerBtn clear"
>
<view
class=
"AnswerBtnFirst"
@
click=
"getBeforeExam()"
v-if=
"ExamIndex!=1||sortIndex!=1"
>
上一题
</view>
<view
class=
"AnswerBtnSecond"
v-if=
"sortIndex != sortTotal"
@
click=
"getNextExam()"
>
下一题
</view>
</view>
</swiper-item>
</swiper-item>
<swiper-item
v-if=
"sortIndex != sortTotal"
></swiper-item>
<swiper-item
v-if=
"sortIndex != sortTotal"
></swiper-item>
</swiper>
</swiper>
...
@@ -188,6 +192,14 @@ export default {
...
@@ -188,6 +192,14 @@ export default {
this
.
$emit
(
"getBeforeTopic"
);
this
.
$emit
(
"getBeforeTopic"
);
}
}
},
},
//点击上一题
getBeforeExam
(){
data
.
current
=
data
.
current
-
1
;
},
//点击下一题
getNextExam
(){
data
.
current
=
data
.
current
+
1
;
}
};
};
onMounted
(()
=>
{
onMounted
(()
=>
{
if
(
props
.
isLast
)
{
if
(
props
.
isLast
)
{
...
@@ -209,6 +221,30 @@ export default {
...
@@ -209,6 +221,30 @@ export default {
};
};
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.AnswerBtn
{
margin-top
:
20
rpx
;
}
.clear
{
clear
:
both
}
.AnswerBtnFirst
{
width
:
250
rpx
;
height
:
60
rpx
;
text-align
:
center
;
line-height
:
60
rpx
;
border-radius
:
10
rpx
;
border
:
1px
solid
#00ACF9
;
color
:
#00ACF9
;
float
:
left
;
}
.AnswerBtnSecond
{
width
:
250
rpx
;
height
:
60
rpx
;
text-align
:
center
;
line-height
:
60
rpx
;
border-radius
:
10
rpx
;
background-color
:
#00ACF9
;
color
:
#fff
;
float
:
right
;
}
.name
{
.name
{
height
:
90
rpx
;
height
:
90
rpx
;
font-size
:
30
rpx
;
font-size
:
30
rpx
;
...
...
src/components/subject/Other.vue
View file @
d636ab64
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
}" :autoplay="autoplay" :current="current" @change="onchange">
}" :autoplay="autoplay" :current="current" @change="onchange">
<swiper-item
v-if=
"sortIndex != 1"
></swiper-item>
<swiper-item
v-if=
"sortIndex != 1"
></swiper-item>
<swiper-item
v-for=
"(item1, index1) in data.DetailsList"
:key=
"index1"
>
<swiper-item
v-for=
"(item1, index1) in data.DetailsList"
:key=
"index1"
>
<view
class=
"item1"
>
<view
class=
"item1"
:style=
"
{height: `calc(100vh - 390rpx - ${statusBarHeight}px)`}"
>
<view
class=
"flex"
>
<view
class=
"flex"
>
<view>
{{
index1
+
1
}}
、
</view>
<view>
{{
index1
+
1
}}
、
</view>
<view
class=
"num"
v-html=
"item1.Title"
></view><text
class=
"Exam_Score"
>
(
{{
item1
.
Score
}}
)
</text>
<view
class=
"num"
v-html=
"item1.Title"
></view><text
class=
"Exam_Score"
>
(
{{
item1
.
Score
}}
)
</text>
...
@@ -29,9 +29,8 @@
...
@@ -29,9 +29,8 @@
</view>
</view>
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
<view
class=
"viewAnswerContent"
style=
"margin
-top:20px
;"
v-html=
"item1.Answer"
></view>
<view
class=
"viewAnswerContent"
style=
"margin
:20px 0
;"
v-html=
"item1.Answer"
></view>
</
template
>
</
template
>
</view>
<view
class=
"AnswerContent"
v-if=
"!isOperate"
>
<view
class=
"AnswerContent"
v-if=
"!isOperate"
>
<view>
<view>
<text
style=
"color: #8c8a94"
>
正确答案:
</text>
<text
style=
"color: #8c8a94"
>
正确答案:
</text>
...
@@ -59,6 +58,11 @@
...
@@ -59,6 +58,11 @@
<view
style=
"color: #000; display: inline-block"
v-html=
"item1.AnswerParse"
></view>
<view
style=
"color: #000; display: inline-block"
v-html=
"item1.AnswerParse"
></view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"AnswerBtn clear"
>
<view
class=
"AnswerBtnFirst"
@
click=
"getBeforeExam()"
v-if=
"ExamIndex!=1||sortIndex!=1"
>
上一题
</view>
<view
class=
"AnswerBtnSecond"
v-if=
"sortIndex != sortTotal"
@
click=
"getNextExam()"
>
下一题
</view>
</view>
</swiper-item>
</swiper-item>
<swiper-item
v-if=
"sortIndex != sortTotal"
></swiper-item>
<swiper-item
v-if=
"sortIndex != sortTotal"
></swiper-item>
</swiper>
</swiper>
...
@@ -150,6 +154,14 @@
...
@@ -150,6 +154,14 @@
}
}
context
.
emit
(
"answerChange"
,
data
.
data
);
context
.
emit
(
"answerChange"
,
data
.
data
);
},
},
//点击上一题
getBeforeExam
(){
data
.
current
=
data
.
current
-
1
;
},
//点击下一题
getNextExam
(){
data
.
current
=
data
.
current
+
1
;
}
};
};
onMounted
(()
=>
{
onMounted
(()
=>
{
if
(
props
.
isLast
)
{
if
(
props
.
isLast
)
{
...
@@ -170,6 +182,31 @@
...
@@ -170,6 +182,31 @@
};
};
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.AnswerBtn
{
margin-top
:
20
rpx
;
padding
:
0
20px
;
}
.clear
{
clear
:
both
}
.AnswerBtnFirst
{
width
:
250
rpx
;
height
:
60
rpx
;
text-align
:
center
;
line-height
:
60
rpx
;
border-radius
:
10
rpx
;
border
:
1px
solid
#00ACF9
;
color
:
#00ACF9
;
float
:
left
;
}
.AnswerBtnSecond
{
width
:
250
rpx
;
height
:
60
rpx
;
text-align
:
center
;
line-height
:
60
rpx
;
border-radius
:
10
rpx
;
background-color
:
#00ACF9
;
color
:
#fff
;
float
:
right
;
}
.name
{
.name
{
height
:
90
rpx
;
height
:
90
rpx
;
font-size
:
30
rpx
;
font-size
:
30
rpx
;
...
@@ -212,7 +249,7 @@
...
@@ -212,7 +249,7 @@
}
}
.Single_Before
{
.Single_Before
{
font-size
:
28
rpx
;
font-size
:
30
rpx
;
font-weight
:
bold
;
font-weight
:
bold
;
color
:
#da7878
;
color
:
#da7878
;
}
}
...
...
src/components/subject/SharingChoose.vue
View file @
d636ab64
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
}" :autoplay="autoplay" :current="current" @change="onchange">
}" :autoplay="autoplay" :current="current" @change="onchange">
<swiper-item
v-if=
"sortIndex != 1"
></swiper-item>
<swiper-item
v-if=
"sortIndex != 1"
></swiper-item>
<swiper-item
v-for=
"(item1, index1) in data.DetailsList"
:key=
"index1"
>
<swiper-item
v-for=
"(item1, index1) in data.DetailsList"
:key=
"index1"
>
<view
class=
"item1"
style=
"padding: 0 20px"
>
<view
class=
"item1"
style=
"padding: 0 20px"
:style=
"
{height: `calc(100vh - 390rpx - ${statusBarHeight}px)`}"
>
<view
class=
"flex"
>
<view
class=
"flex"
>
<template
v-if=
"item1.QuestionContentObj[1] && item1.QuestionContentObj[1].length > 0"
>
<template
v-if=
"item1.QuestionContentObj[1] && item1.QuestionContentObj[1].length > 0"
>
<view
class=
"num"
>
(1)
</view>
<view
class=
"num"
>
(1)
</view>
...
@@ -78,6 +78,10 @@
...
@@ -78,6 +78,10 @@
</view>
</view>
</template>
</template>
</view>
</view>
<view
class=
"AnswerBtn clear"
>
<view
class=
"AnswerBtnFirst"
@
click=
"getBeforeExam()"
v-if=
"ExamIndex!=1||sortIndex!=1"
>
上一题
</view>
<view
class=
"AnswerBtnSecond"
v-if=
"sortIndex != sortTotal"
@
click=
"getNextExam()"
>
下一题
</view>
</view>
</swiper-item>
</swiper-item>
<swiper-item
v-if=
"sortIndex != sortTotal"
></swiper-item>
<swiper-item
v-if=
"sortIndex != sortTotal"
></swiper-item>
</swiper>
</swiper>
...
@@ -203,6 +207,14 @@
...
@@ -203,6 +207,14 @@
}
}
return
Array
;
return
Array
;
},
},
//点击上一题
getBeforeExam
(){
data
.
current
=
data
.
current
-
1
;
},
//点击下一题
getNextExam
(){
data
.
current
=
data
.
current
+
1
;
}
};
};
onMounted
(()
=>
{
onMounted
(()
=>
{
if
(
props
.
isLast
)
{
if
(
props
.
isLast
)
{
...
@@ -223,6 +235,32 @@
...
@@ -223,6 +235,32 @@
};
};
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.AnswerBtn
{
margin-top
:
20
rpx
;
padding
:
0
20px
;
}
.clear
{
clear
:
both
}
.AnswerBtnFirst
{
width
:
250
rpx
;
height
:
60
rpx
;
text-align
:
center
;
line-height
:
60
rpx
;
border-radius
:
10
rpx
;
border
:
1px
solid
#00ACF9
;
color
:
#00ACF9
;
float
:
left
;
}
.AnswerBtnSecond
{
width
:
250
rpx
;
height
:
60
rpx
;
text-align
:
center
;
line-height
:
60
rpx
;
border-radius
:
10
rpx
;
background-color
:
#00ACF9
;
color
:
#fff
;
float
:
right
;
}
.name
{
.name
{
height
:
90
rpx
;
height
:
90
rpx
;
font-size
:
30
rpx
;
font-size
:
30
rpx
;
...
@@ -266,7 +304,7 @@
...
@@ -266,7 +304,7 @@
}
}
.Single_Before
{
.Single_Before
{
font-size
:
28
rpx
;
font-size
:
30
rpx
;
font-weight
:
bold
;
font-weight
:
bold
;
color
:
#da7878
;
color
:
#da7878
;
}
}
...
...
src/components/subject/SingleChoice.vue
View file @
d636ab64
...
@@ -12,13 +12,11 @@
...
@@ -12,13 +12,11 @@
class=
"Exam_Total"
>
{{
data
.
DetailsList
.
length
}}
</text>
class=
"Exam_Total"
>
{{
data
.
DetailsList
.
length
}}
</text>
</view>
</view>
</view>
</view>
<swiper
class=
"swiper-box"
:style=
"
{
<swiper
class=
"swiper-box"
:style=
"
{height: `calc(100vh - 300rpx - ${statusBarHeight}px)`}" :autoplay="autoplay" :current="current" @change="onchange" :skip-hidden-item-layout="true"
height: `calc(100vh - 300rpx - ${statusBarHeight}px)`,
}" :autoplay="autoplay" :current="current" @change="onchange" :skip-hidden-item-layout="true"
:disable-programmatic-animation="true">
:disable-programmatic-animation="true">
<swiper-item
v-if=
"sortIndex != 1"
></swiper-item>
<swiper-item
v-if=
"sortIndex != 1"
></swiper-item>
<swiper-item
v-for=
"(item1, index1) in data.DetailsList"
:key=
"index1"
>
<swiper-item
v-for=
"(item1, index1) in data.DetailsList"
:key=
"index1"
>
<view
class=
"item1"
>
<view
class=
"item1"
:style=
"
{height: `calc(100vh - 390rpx - ${statusBarHeight}px)`}"
>
<view
class=
"flex flex_start_center"
>
<view
class=
"flex flex_start_center"
>
<view
class=
"num"
v-html=
"item1.Title"
></view><text
class=
"Exam_Score"
>
(
{{
item1
.
Score
}}
)
</text>
<view
class=
"num"
v-html=
"item1.Title"
></view><text
class=
"Exam_Score"
>
(
{{
item1
.
Score
}}
)
</text>
</view>
</view>
...
@@ -38,7 +36,6 @@
...
@@ -38,7 +36,6 @@
</view>
</view>
</
template
>
</
template
>
</view>
</view>
</view>
<view
class=
"AnswerContent"
v-if=
"!isOperate"
>
<view
class=
"AnswerContent"
v-if=
"!isOperate"
>
<view>
<view>
<text
style=
"color: #8c8a94"
>
正确答案:
</text>
<text
style=
"color: #8c8a94"
>
正确答案:
</text>
...
@@ -65,6 +62,11 @@
...
@@ -65,6 +62,11 @@
<view
style=
"color: #000"
v-html=
"item1.AnswerParse"
></view>
<view
style=
"color: #000"
v-html=
"item1.AnswerParse"
></view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"AnswerBtn clear"
>
<view
class=
"AnswerBtnFirst"
@
click=
"getBeforeExam()"
v-if=
"ExamIndex!=1||sortIndex!=1"
>
上一题
</view>
<view
class=
"AnswerBtnSecond"
v-if=
"sortIndex != sortTotal"
@
click=
"getNextExam()"
>
下一题
</view>
</view>
</swiper-item>
</swiper-item>
<swiper-item
v-if=
"sortIndex != sortTotal"
>
<swiper-item
v-if=
"sortIndex != sortTotal"
>
<!-- 最后一页 -->
<!-- 最后一页 -->
...
@@ -172,6 +174,14 @@
...
@@ -172,6 +174,14 @@
url
:
"/pages/exam/answerSheet"
,
url
:
"/pages/exam/answerSheet"
,
});
});
},
},
//点击上一题
getBeforeExam
(){
data
.
current
=
data
.
current
-
1
;
},
//点击下一题
getNextExam
(){
data
.
current
=
data
.
current
+
1
;
}
};
};
onMounted
(()
=>
{
onMounted
(()
=>
{
if
(
props
.
isLast
)
{
if
(
props
.
isLast
)
{
...
@@ -192,6 +202,30 @@
...
@@ -192,6 +202,30 @@
};
};
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.AnswerBtn
{
margin-top
:
20
rpx
;
}
.clear
{
clear
:
both
}
.AnswerBtnFirst
{
width
:
250
rpx
;
height
:
60
rpx
;
text-align
:
center
;
line-height
:
60
rpx
;
border-radius
:
10
rpx
;
border
:
1px
solid
#00ACF9
;
color
:
#00ACF9
;
float
:
left
;
}
.AnswerBtnSecond
{
width
:
250
rpx
;
height
:
60
rpx
;
text-align
:
center
;
line-height
:
60
rpx
;
border-radius
:
10
rpx
;
background-color
:
#00ACF9
;
color
:
#fff
;
float
:
right
;
}
.name
{
.name
{
height
:
90
rpx
;
height
:
90
rpx
;
font-size
:
30
rpx
;
font-size
:
30
rpx
;
...
@@ -219,7 +253,7 @@
...
@@ -219,7 +253,7 @@
}
}
.Single_Before
{
.Single_Before
{
font-size
:
28
rpx
;
font-size
:
30
rpx
;
font-weight
:
bold
;
font-weight
:
bold
;
color
:
#da7878
;
color
:
#da7878
;
}
}
...
...
src/components/subject/SingleChoiceNumber.vue
View file @
d636ab64
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
>
>
<swiper-item
v-if=
"sortIndex != 1"
></swiper-item>
<swiper-item
v-if=
"sortIndex != 1"
></swiper-item>
<swiper-item
v-for=
"(item1, index1) in data.DetailsList"
:key=
"index1"
>
<swiper-item
v-for=
"(item1, index1) in data.DetailsList"
:key=
"index1"
>
<view
class=
"item1"
>
<view
class=
"item1"
:style=
"
{height: `calc(100vh - 390rpx - ${statusBarHeight}px)`}"
>
<view
class=
"flex flex_start_center"
>
<view
class=
"flex flex_start_center"
>
<view
class=
"num"
v-html=
"item1.Title"
></view><text
class=
"Exam_Score"
>
(
{{
item1
.
Score
}}
)
</text>
<view
class=
"num"
v-html=
"item1.Title"
></view><text
class=
"Exam_Score"
>
(
{{
item1
.
Score
}}
)
</text>
</view>
</view>
...
@@ -62,7 +62,6 @@
...
@@ -62,7 +62,6 @@
</view>
</view>
</
template
>
</
template
>
</view>
</view>
</view>
<view
class=
"AnswerContent"
v-if=
"!isOperate"
>
<view
class=
"AnswerContent"
v-if=
"!isOperate"
>
<view>
<view>
<text
style=
"color: #8c8a94"
>
正确答案:
</text>
<text
style=
"color: #8c8a94"
>
正确答案:
</text>
...
@@ -99,6 +98,11 @@
...
@@ -99,6 +98,11 @@
<view
style=
"color: #000"
v-html=
"item1.AnswerParse"
></view>
<view
style=
"color: #000"
v-html=
"item1.AnswerParse"
></view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"AnswerBtn clear"
>
<view
class=
"AnswerBtnFirst"
@
click=
"getBeforeExam()"
v-if=
"ExamIndex!=1||sortIndex!=1"
>
上一题
</view>
<view
class=
"AnswerBtnSecond"
v-if=
"sortIndex != sortTotal"
@
click=
"getNextExam()"
>
下一题
</view>
</view>
</swiper-item>
</swiper-item>
<swiper-item
v-if=
"sortIndex != sortTotal"
>
<swiper-item
v-if=
"sortIndex != sortTotal"
>
<!-- 最后一页 -->
<!-- 最后一页 -->
...
@@ -202,6 +206,14 @@ export default {
...
@@ -202,6 +206,14 @@ export default {
url
:
"/pages/exam/answerSheet"
,
url
:
"/pages/exam/answerSheet"
,
});
});
},
},
//点击上一题
getBeforeExam
(){
data
.
current
=
data
.
current
-
1
;
},
//点击下一题
getNextExam
(){
data
.
current
=
data
.
current
+
1
;
}
};
};
onMounted
(()
=>
{
onMounted
(()
=>
{
if
(
props
.
isLast
)
{
if
(
props
.
isLast
)
{
...
@@ -222,6 +234,31 @@ export default {
...
@@ -222,6 +234,31 @@ export default {
};
};
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.AnswerBtn
{
margin-top
:
20
rpx
;
padding
:
0
20px
;
}
.clear
{
clear
:
both
}
.AnswerBtnFirst
{
width
:
250
rpx
;
height
:
60
rpx
;
text-align
:
center
;
line-height
:
60
rpx
;
border-radius
:
10
rpx
;
border
:
1px
solid
#00ACF9
;
color
:
#00ACF9
;
float
:
left
;
}
.AnswerBtnSecond
{
width
:
250
rpx
;
height
:
60
rpx
;
text-align
:
center
;
line-height
:
60
rpx
;
border-radius
:
10
rpx
;
background-color
:
#00ACF9
;
color
:
#fff
;
float
:
right
;
}
.name
{
.name
{
height
:
90
rpx
;
height
:
90
rpx
;
font-size
:
30
rpx
;
font-size
:
30
rpx
;
...
@@ -249,7 +286,7 @@ export default {
...
@@ -249,7 +286,7 @@ export default {
}
}
.Single_Before
{
.Single_Before
{
font-size
:
28
rpx
;
font-size
:
30
rpx
;
font-weight
:
bold
;
font-weight
:
bold
;
color
:
#da7878
;
color
:
#da7878
;
}
}
...
...
src/components/subject/SortingProblem.vue
View file @
d636ab64
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
>
>
<swiper-item
v-if=
"sortIndex != 1"
></swiper-item>
<swiper-item
v-if=
"sortIndex != 1"
></swiper-item>
<swiper-item
v-for=
"(item1, index1) in data.DetailsList"
:key=
"index1"
>
<swiper-item
v-for=
"(item1, index1) in data.DetailsList"
:key=
"index1"
>
<view
class=
"item1"
style=
"padding: 0 20px"
>
<view
class=
"item1"
style=
"padding: 0 20px"
:style=
"
{height: `calc(100vh - 390rpx - ${statusBarHeight}px)`}"
>
<view
class=
"flex"
>
<view
class=
"flex"
>
<view>
{{
index1
+
1
}}
、
</view>
<view>
{{
index1
+
1
}}
、
</view>
<view
class=
"num"
v-html=
"item1.Title"
></view><text
class=
"Exam_Score"
>
(
{{
item1
.
Score
}}
)
</text>
<view
class=
"num"
v-html=
"item1.Title"
></view><text
class=
"Exam_Score"
>
(
{{
item1
.
Score
}}
)
</text>
...
@@ -116,6 +116,10 @@
...
@@ -116,6 +116,10 @@
</view>
</view>
</template>
</template>
</view>
</view>
<view
class=
"AnswerBtn clear"
>
<view
class=
"AnswerBtnFirst"
@
click=
"getBeforeExam()"
v-if=
"ExamIndex!=1||sortIndex!=1"
>
上一题
</view>
<view
class=
"AnswerBtnSecond"
v-if=
"sortIndex != sortTotal"
@
click=
"getNextExam()"
>
下一题
</view>
</view>
</swiper-item>
</swiper-item>
<swiper-item
v-if=
"sortIndex != sortTotal"
></swiper-item>
<swiper-item
v-if=
"sortIndex != sortTotal"
></swiper-item>
</swiper>
</swiper>
...
@@ -241,6 +245,14 @@ export default {
...
@@ -241,6 +245,14 @@ export default {
}
}
return
Array
;
return
Array
;
},
},
//点击上一题
getBeforeExam
(){
data
.
current
=
data
.
current
-
1
;
},
//点击下一题
getNextExam
(){
data
.
current
=
data
.
current
+
1
;
}
};
};
onMounted
(()
=>
{
onMounted
(()
=>
{
if
(
props
.
isLast
)
{
if
(
props
.
isLast
)
{
...
@@ -261,6 +273,31 @@ export default {
...
@@ -261,6 +273,31 @@ export default {
};
};
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.AnswerBtn
{
margin-top
:
20
rpx
;
padding
:
0
20px
;
}
.clear
{
clear
:
both
}
.AnswerBtnFirst
{
width
:
250
rpx
;
height
:
60
rpx
;
text-align
:
center
;
line-height
:
60
rpx
;
border-radius
:
10
rpx
;
border
:
1px
solid
#00ACF9
;
color
:
#00ACF9
;
float
:
left
;
}
.AnswerBtnSecond
{
width
:
250
rpx
;
height
:
60
rpx
;
text-align
:
center
;
line-height
:
60
rpx
;
border-radius
:
10
rpx
;
background-color
:
#00ACF9
;
color
:
#fff
;
float
:
right
;
}
.name
{
.name
{
height
:
90
rpx
;
height
:
90
rpx
;
font-size
:
30
rpx
;
font-size
:
30
rpx
;
...
@@ -302,7 +339,7 @@ export default {
...
@@ -302,7 +339,7 @@ export default {
}
}
.Single_Before
{
.Single_Before
{
font-size
:
28
rpx
;
font-size
:
30
rpx
;
font-weight
:
bold
;
font-weight
:
bold
;
color
:
#da7878
;
color
:
#da7878
;
}
}
...
@@ -324,6 +361,7 @@ export default {
...
@@ -324,6 +361,7 @@ export default {
.item1
{
.item1
{
align-items
:
center
;
align-items
:
center
;
overflow-y
:
auto
;
}
}
.item2
{
.item2
{
...
...
src/components/subject/Spoken.vue
View file @
d636ab64
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
>
>
<swiper-item
v-if=
"sortIndex != 1"
></swiper-item>
<swiper-item
v-if=
"sortIndex != 1"
></swiper-item>
<swiper-item
v-for=
"(item1, index1) in data.DetailsList"
:key=
"index1"
>
<swiper-item
v-for=
"(item1, index1) in data.DetailsList"
:key=
"index1"
>
<view
class=
"item1"
>
<view
class=
"item1"
:style=
"
{height: `calc(100vh - 390rpx - ${statusBarHeight}px)`}"
>
<view
class=
"flex"
>
<view
class=
"flex"
>
<view>
{{
index1
+
1
}}
、
</view>
<view>
{{
index1
+
1
}}
、
</view>
<view
class=
"num"
v-html=
"item1.Title"
></view><text
class=
"Exam_Score"
>
(
{{
item1
.
Score
}}
)
</text>
<view
class=
"num"
v-html=
"item1.Title"
></view><text
class=
"Exam_Score"
>
(
{{
item1
.
Score
}}
)
</text>
...
@@ -43,9 +43,8 @@
...
@@ -43,9 +43,8 @@
</view>
</view>
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
<view
class=
"viewAnswerContent"
style=
"margin
-top:15px
;"
v-html=
"item1.Answer"
></view>
<view
class=
"viewAnswerContent"
style=
"margin
:20px 0
;"
v-html=
"item1.Answer"
></view>
</
template
>
</
template
>
</view>
<view
class=
"AnswerContent"
v-if=
"!isOperate"
>
<view
class=
"AnswerContent"
v-if=
"!isOperate"
>
<view>
<view>
您的答案:
您的答案:
...
@@ -66,6 +65,11 @@
...
@@ -66,6 +65,11 @@
></view>
></view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"AnswerBtn clear"
>
<view
class=
"AnswerBtnFirst"
@
click=
"getBeforeExam()"
v-if=
"ExamIndex!=1||sortIndex!=1"
>
上一题
</view>
<view
class=
"AnswerBtnSecond"
v-if=
"sortIndex != sortTotal"
@
click=
"getNextExam()"
>
下一题
</view>
</view>
</swiper-item>
</swiper-item>
<swiper-item
v-if=
"sortIndex != sortTotal"
></swiper-item>
<swiper-item
v-if=
"sortIndex != sortTotal"
></swiper-item>
</swiper>
</swiper>
...
@@ -153,6 +157,14 @@ export default {
...
@@ -153,6 +157,14 @@ export default {
}
}
context
.
emit
(
"answerChange"
,
data
.
data
);
context
.
emit
(
"answerChange"
,
data
.
data
);
},
},
//点击上一题
getBeforeExam
()
{
data
.
current
=
data
.
current
-
1
;
},
//点击下一题
getNextExam
()
{
data
.
current
=
data
.
current
+
1
;
}
};
};
onMounted
(()
=>
{
onMounted
(()
=>
{
if
(
props
.
isLast
)
{
if
(
props
.
isLast
)
{
...
@@ -173,6 +185,31 @@ export default {
...
@@ -173,6 +185,31 @@ export default {
};
};
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.AnswerBtn
{
margin-top
:
20
rpx
;
padding
:
0
20px
;
}
.clear
{
clear
:
both
}
.AnswerBtnFirst
{
width
:
250
rpx
;
height
:
60
rpx
;
text-align
:
center
;
line-height
:
60
rpx
;
border-radius
:
10
rpx
;
border
:
1px
solid
#00ACF9
;
color
:
#00ACF9
;
float
:
left
;
}
.AnswerBtnSecond
{
width
:
250
rpx
;
height
:
60
rpx
;
text-align
:
center
;
line-height
:
60
rpx
;
border-radius
:
10
rpx
;
background-color
:
#00ACF9
;
color
:
#fff
;
float
:
right
;
}
.name
{
.name
{
height
:
90
rpx
;
height
:
90
rpx
;
font-size
:
30
rpx
;
font-size
:
30
rpx
;
...
@@ -212,7 +249,7 @@ export default {
...
@@ -212,7 +249,7 @@ export default {
}
}
.Single_Before
{
.Single_Before
{
font-size
:
28
rpx
;
font-size
:
30
rpx
;
font-weight
:
bold
;
font-weight
:
bold
;
color
:
#da7878
;
color
:
#da7878
;
}
}
...
...
src/components/subject/easyQuestion.vue
View file @
d636ab64
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
>
>
<swiper-item
v-if=
"sortIndex != 1"
></swiper-item>
<swiper-item
v-if=
"sortIndex != 1"
></swiper-item>
<swiper-item
v-for=
"(item1, index1) in data.DetailsList"
:key=
"index1"
>
<swiper-item
v-for=
"(item1, index1) in data.DetailsList"
:key=
"index1"
>
<view
class=
"item1"
>
<view
class=
"item1"
:style=
"
{height: `calc(100vh - 390rpx - ${statusBarHeight}px)`}"
>
<view
class=
"flex"
>
<view
class=
"flex"
>
<view>
{{
index1
+
1
}}
、
</view>
<view>
{{
index1
+
1
}}
、
</view>
<view
class=
"num"
v-html=
"item1.Title"
></view><text
class=
"Exam_Score"
>
(
{{
item1
.
Score
}}
)
</text>
<view
class=
"num"
v-html=
"item1.Title"
></view><text
class=
"Exam_Score"
>
(
{{
item1
.
Score
}}
)
</text>
...
@@ -47,7 +47,6 @@
...
@@ -47,7 +47,6 @@
item1
.
Answer
item1
.
Answer
}}
</view>
}}
</view>
</
template
>
</
template
>
</view>
<view
<view
class=
"AnswerContent"
class=
"AnswerContent"
v-if=
"!isOperate"
v-if=
"!isOperate"
...
@@ -72,6 +71,11 @@
...
@@ -72,6 +71,11 @@
></view>
></view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"AnswerBtn clear"
>
<view
class=
"AnswerBtnFirst"
@
click=
"getBeforeExam()"
v-if=
"ExamIndex!=1||sortIndex!=1"
>
上一题
</view>
<view
class=
"AnswerBtnSecond"
v-if=
"sortIndex != sortTotal"
@
click=
"getNextExam()"
>
下一题
</view>
</view>
</swiper-item>
</swiper-item>
<swiper-item
v-if=
"sortIndex != sortTotal"
></swiper-item>
<swiper-item
v-if=
"sortIndex != sortTotal"
></swiper-item>
</swiper>
</swiper>
...
@@ -162,6 +166,14 @@ export default {
...
@@ -162,6 +166,14 @@ export default {
}
}
context
.
emit
(
"answerChange"
,
data
.
data
);
context
.
emit
(
"answerChange"
,
data
.
data
);
},
},
//点击上一题
getBeforeExam
(){
data
.
current
=
data
.
current
-
1
;
},
//点击下一题
getNextExam
(){
data
.
current
=
data
.
current
+
1
;
}
};
};
onMounted
(()
=>
{
onMounted
(()
=>
{
if
(
props
.
isLast
)
{
if
(
props
.
isLast
)
{
...
@@ -182,6 +194,30 @@ export default {
...
@@ -182,6 +194,30 @@ export default {
};
};
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.AnswerBtn
{
margin-top
:
20
rpx
;
}
.clear
{
clear
:
both
}
.AnswerBtnFirst
{
width
:
250
rpx
;
height
:
60
rpx
;
text-align
:
center
;
line-height
:
60
rpx
;
border-radius
:
10
rpx
;
border
:
1px
solid
#00ACF9
;
color
:
#00ACF9
;
float
:
left
;
}
.AnswerBtnSecond
{
width
:
250
rpx
;
height
:
60
rpx
;
text-align
:
center
;
line-height
:
60
rpx
;
border-radius
:
10
rpx
;
background-color
:
#00ACF9
;
color
:
#fff
;
float
:
right
;
}
.name
{
.name
{
height
:
90
rpx
;
height
:
90
rpx
;
font-size
:
30
rpx
;
font-size
:
30
rpx
;
...
@@ -226,7 +262,7 @@ export default {
...
@@ -226,7 +262,7 @@ export default {
}
}
.Single_Before
{
.Single_Before
{
font-size
:
28
rpx
;
font-size
:
30
rpx
;
font-weight
:
bold
;
font-weight
:
bold
;
color
:
#da7878
;
color
:
#da7878
;
}
}
...
...
src/components/subject/judge.vue
View file @
d636ab64
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
}" :autoplay="autoplay" :current="current" @change="onchange">
}" :autoplay="autoplay" :current="current" @change="onchange">
<swiper-item
v-if=
"sortIndex != 1"
></swiper-item>
<swiper-item
v-if=
"sortIndex != 1"
></swiper-item>
<swiper-item
v-for=
"(item1, index1) in data.DetailsList"
:key=
"index1"
>
<swiper-item
v-for=
"(item1, index1) in data.DetailsList"
:key=
"index1"
>
<view
class=
"item1"
>
<view
class=
"item1"
:style=
"
{height: `calc(100vh - 390rpx - ${statusBarHeight}px)`}"
>
<view
class=
"flex"
>
<view
class=
"flex"
>
<view
class=
"num"
v-html=
"item1.Title"
></view><text
class=
"Exam_Score"
>
(
{{
item1
.
Score
}}
)
</text>
<view
class=
"num"
v-html=
"item1.Title"
></view><text
class=
"Exam_Score"
>
(
{{
item1
.
Score
}}
)
</text>
</view>
</view>
...
@@ -36,7 +36,6 @@
...
@@ -36,7 +36,6 @@
</view>
</view>
</
template
>
</
template
>
</view>
</view>
</view>
<view
class=
"AnswerContent"
v-if=
"!isOperate"
>
<view
class=
"AnswerContent"
v-if=
"!isOperate"
>
<view>
<view>
<text
style=
"color: #8c8a94"
>
正确答案:
</text>
<text
style=
"color: #8c8a94"
>
正确答案:
</text>
...
@@ -64,6 +63,11 @@
...
@@ -64,6 +63,11 @@
<view
style=
"color: #000; display: inline-block"
v-html=
"item1.AnswerParse"
></view>
<view
style=
"color: #000; display: inline-block"
v-html=
"item1.AnswerParse"
></view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"AnswerBtn clear"
>
<view
class=
"AnswerBtnFirst"
@
click=
"getBeforeExam()"
v-if=
"ExamIndex!=1||sortIndex!=1"
>
上一题
</view>
<view
class=
"AnswerBtnSecond"
v-if=
"sortIndex != sortTotal"
@
click=
"getNextExam()"
>
下一题
</view>
</view>
</swiper-item>
</swiper-item>
<swiper-item
v-if=
"sortIndex != sortTotal"
></swiper-item>
<swiper-item
v-if=
"sortIndex != sortTotal"
></swiper-item>
</swiper>
</swiper>
...
@@ -158,6 +162,14 @@
...
@@ -158,6 +162,14 @@
if
(
e
.
detail
.
current
==
0
&&
data
.
sortIndex
!=
1
)
{
if
(
e
.
detail
.
current
==
0
&&
data
.
sortIndex
!=
1
)
{
this
.
$emit
(
"getBeforeTopic"
);
this
.
$emit
(
"getBeforeTopic"
);
}
}
},
//点击上一题
getBeforeExam
(){
data
.
current
=
data
.
current
-
1
;
},
//点击下一题
getNextExam
(){
data
.
current
=
data
.
current
+
1
;
}
}
};
};
onMounted
(()
=>
{
onMounted
(()
=>
{
...
@@ -179,6 +191,30 @@
...
@@ -179,6 +191,30 @@
};
};
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.AnswerBtn
{
margin-top
:
20
rpx
;
}
.clear
{
clear
:
both
}
.AnswerBtnFirst
{
width
:
250
rpx
;
height
:
60
rpx
;
text-align
:
center
;
line-height
:
60
rpx
;
border-radius
:
10
rpx
;
border
:
1px
solid
#00ACF9
;
color
:
#00ACF9
;
float
:
left
;
}
.AnswerBtnSecond
{
width
:
250
rpx
;
height
:
60
rpx
;
text-align
:
center
;
line-height
:
60
rpx
;
border-radius
:
10
rpx
;
background-color
:
#00ACF9
;
color
:
#fff
;
float
:
right
;
}
.name
{
.name
{
height
:
90
rpx
;
height
:
90
rpx
;
font-size
:
30
rpx
;
font-size
:
30
rpx
;
...
...
src/components/subject/nounExplanation.vue
View file @
d636ab64
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
>
>
<swiper-item
v-if=
"sortIndex != 1"
></swiper-item>
<swiper-item
v-if=
"sortIndex != 1"
></swiper-item>
<swiper-item
v-for=
"(item1, index1) in data.DetailsList"
:key=
"index1"
>
<swiper-item
v-for=
"(item1, index1) in data.DetailsList"
:key=
"index1"
>
<view
class=
"item1"
>
<view
class=
"item1"
:style=
"
{height: `calc(100vh - 390rpx - ${statusBarHeight}px)`}"
>
<view
class=
"flex"
>
<view
class=
"flex"
>
<view>
{{
index1
+
1
}}
、
</view>
<view>
{{
index1
+
1
}}
、
</view>
<view
class=
"num"
v-html=
"item1.Title"
></view><text
class=
"Exam_Score"
>
(
{{
item1
.
Score
}}
)
</text>
<view
class=
"num"
v-html=
"item1.Title"
></view><text
class=
"Exam_Score"
>
(
{{
item1
.
Score
}}
)
</text>
...
@@ -43,9 +43,8 @@
...
@@ -43,9 +43,8 @@
</view>
</view>
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
<view
class=
"viewAnswerContent"
>
{{
item1
.
Answer
}}
</view>
<view
class=
"viewAnswerContent"
style=
"margin-top:30rpx;"
>
{{
item1
.
Answer
}}
</view>
</
template
>
</
template
>
</view>
<view
<view
class=
"AnswerContent"
class=
"AnswerContent"
v-if=
"!isOperate"
v-if=
"!isOperate"
...
@@ -70,6 +69,11 @@
...
@@ -70,6 +69,11 @@
></view>
></view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"AnswerBtn clear"
>
<view
class=
"AnswerBtnFirst"
@
click=
"getBeforeExam()"
v-if=
"ExamIndex!=1||sortIndex!=1"
>
上一题
</view>
<view
class=
"AnswerBtnSecond"
v-if=
"sortIndex != sortTotal"
@
click=
"getNextExam()"
>
下一题
</view>
</view>
</swiper-item>
</swiper-item>
<swiper-item
v-if=
"sortIndex != sortTotal"
></swiper-item>
<swiper-item
v-if=
"sortIndex != sortTotal"
></swiper-item>
</swiper>
</swiper>
...
@@ -160,6 +164,14 @@ export default {
...
@@ -160,6 +164,14 @@ export default {
}
}
context
.
emit
(
"answerChange"
,
data
.
data
);
context
.
emit
(
"answerChange"
,
data
.
data
);
},
},
//点击上一题
getBeforeExam
(){
data
.
current
=
data
.
current
-
1
;
},
//点击下一题
getNextExam
(){
data
.
current
=
data
.
current
+
1
;
}
};
};
onMounted
(()
=>
{
onMounted
(()
=>
{
if
(
props
.
isLast
)
{
if
(
props
.
isLast
)
{
...
@@ -180,6 +192,30 @@ export default {
...
@@ -180,6 +192,30 @@ export default {
};
};
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.AnswerBtn
{
margin-top
:
20
rpx
;
}
.clear
{
clear
:
both
}
.AnswerBtnFirst
{
width
:
250
rpx
;
height
:
60
rpx
;
text-align
:
center
;
line-height
:
60
rpx
;
border-radius
:
10
rpx
;
border
:
1px
solid
#00ACF9
;
color
:
#00ACF9
;
float
:
left
;
}
.AnswerBtnSecond
{
width
:
250
rpx
;
height
:
60
rpx
;
text-align
:
center
;
line-height
:
60
rpx
;
border-radius
:
10
rpx
;
background-color
:
#00ACF9
;
color
:
#fff
;
float
:
right
;
}
.name
{
.name
{
height
:
90
rpx
;
height
:
90
rpx
;
font-size
:
30
rpx
;
font-size
:
30
rpx
;
...
...
src/components/subject/readingCompre.vue
View file @
d636ab64
This diff is collapsed.
Click to expand it.
src/components/subject/shortAnswer.vue
View file @
d636ab64
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
>
>
<swiper-item
v-if=
"sortIndex != 1"
></swiper-item>
<swiper-item
v-if=
"sortIndex != 1"
></swiper-item>
<swiper-item
v-for=
"(item1, index1) in data.DetailsList"
:key=
"index1"
>
<swiper-item
v-for=
"(item1, index1) in data.DetailsList"
:key=
"index1"
>
<view
class=
"item1"
>
<view
class=
"item1"
:style=
"
{height: `calc(100vh - 390rpx - ${statusBarHeight}px)`}"
>
<view
class=
"flex"
>
<view
class=
"flex"
>
<view>
{{
index1
+
1
}}
、
</view>
<view>
{{
index1
+
1
}}
、
</view>
<view
class=
"num"
v-html=
"item1.Title"
></view><text
class=
"Exam_Score"
>
(
{{
item1
.
Score
}}
)
</text>
<view
class=
"num"
v-html=
"item1.Title"
></view><text
class=
"Exam_Score"
>
(
{{
item1
.
Score
}}
)
</text>
...
@@ -46,7 +46,6 @@
...
@@ -46,7 +46,6 @@
<
template
v-else
>
<
template
v-else
>
<view
class=
"viewAnswerContent"
v-html=
"item2.Answer"
></view>
<view
class=
"viewAnswerContent"
v-html=
"item2.Answer"
></view>
</
template
>
</
template
>
</view>
<view
<view
class=
"AnswerContent"
class=
"AnswerContent"
v-if=
"!isOperate"
v-if=
"!isOperate"
...
@@ -71,6 +70,11 @@
...
@@ -71,6 +70,11 @@
></view>
></view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"AnswerBtn clear"
>
<view
class=
"AnswerBtnFirst"
@
click=
"getBeforeExam()"
v-if=
"ExamIndex!=1||sortIndex!=1"
>
上一题
</view>
<view
class=
"AnswerBtnSecond"
v-if=
"sortIndex != sortTotal"
@
click=
"getNextExam()"
>
下一题
</view>
</view>
</swiper-item>
</swiper-item>
<swiper-item
v-if=
"sortIndex != sortTotal"
></swiper-item>
<swiper-item
v-if=
"sortIndex != sortTotal"
></swiper-item>
</swiper>
</swiper>
...
@@ -156,6 +160,14 @@ export default {
...
@@ -156,6 +160,14 @@ export default {
}
}
context
.
emit
(
"answerChange"
,
data
.
data
);
context
.
emit
(
"answerChange"
,
data
.
data
);
},
},
//点击上一题
getBeforeExam
(){
data
.
current
=
data
.
current
-
1
;
},
//点击下一题
getNextExam
(){
data
.
current
=
data
.
current
+
1
;
}
};
};
onMounted
(()
=>
{
onMounted
(()
=>
{
if
(
props
.
isLast
)
{
if
(
props
.
isLast
)
{
...
@@ -176,6 +188,31 @@ export default {
...
@@ -176,6 +188,31 @@ export default {
};
};
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.AnswerBtn
{
margin-top
:
20
rpx
;
}
.clear
{
clear
:
both
}
.AnswerBtnFirst
{
width
:
250
rpx
;
height
:
60
rpx
;
text-align
:
center
;
line-height
:
60
rpx
;
border-radius
:
10
rpx
;
border
:
1px
solid
#00ACF9
;
color
:
#00ACF9
;
float
:
left
;
}
.AnswerBtnSecond
{
width
:
250
rpx
;
height
:
60
rpx
;
text-align
:
center
;
line-height
:
60
rpx
;
border-radius
:
10
rpx
;
background-color
:
#00ACF9
;
color
:
#fff
;
float
:
right
;
}
.name
{
.name
{
height
:
90
rpx
;
height
:
90
rpx
;
font-size
:
30
rpx
;
font-size
:
30
rpx
;
...
...
src/pages/exam/examScore.vue
View file @
d636ab64
...
@@ -110,9 +110,19 @@ export default {
...
@@ -110,9 +110,19 @@ export default {
if
(
res
)
{
if
(
res
)
{
if
(
res
.
Code
==
1
)
{
if
(
res
.
Code
==
1
)
{
data
.
dataList
=
res
.
Data
;
data
.
dataList
=
res
.
Data
;
let
Remark
=
''
if
(
res
.
Data
.
TotalScore
>
0
&&
res
.
Data
.
TotalScore
<=
60
){
Remark
=
'要加油哦'
}
if
(
res
.
Data
.
TotalScore
>
60
&&
res
.
Data
.
TotalScore
<=
90
){
Remark
=
'不错哦'
}
if
(
res
.
Data
.
TotalScore
>
90
){
Remark
=
'你好棒'
}
that
.
initCanvas
(
that
.
initCanvas
(
res
.
Data
.
TotalScore
,
res
.
Data
.
TotalScore
,
res
.
Data
.
StuComment
,
Remark
,
res
.
Data
.
ExamScore
res
.
Data
.
ExamScore
);
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment