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
548ff459
Commit
548ff459
authored
Sep 10, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
0aa61bcb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
74 additions
and
30 deletions
+74
-30
examPaper.vue
src/pages/exam/examPaper.vue
+37
-20
index.vue
src/pages/index/index.vue
+37
-10
No files found.
src/pages/exam/examPaper.vue
View file @
548ff459
...
...
@@ -144,7 +144,9 @@
@
getAfterTopic=
"getAfterTopic()"
@
getBeforeTopic=
"getBeforeTopic()"
@
answerChange=
"getAnswerChange($event, index)"
v-if=
"item.QuestionTypeKey === 'noun-explanation' && index === changeIndex"
v-if=
"
item.QuestionTypeKey === 'noun-explanation' && index === changeIndex
"
/>
<!-- 论述题 -->
<easyQuestion
...
...
@@ -156,7 +158,9 @@
@
getAfterTopic=
"getAfterTopic()"
@
getBeforeTopic=
"getBeforeTopic()"
@
answerChange=
"getAnswerChange($event, index)"
v-if=
"item.QuestionTypeKey === 'essay-question' && index === changeIndex"
v-if=
"
item.QuestionTypeKey === 'essay-question' && index === changeIndex
"
/>
<!-- 计算题 -->
<Calculation
...
...
@@ -180,7 +184,9 @@
@
getAfterTopic=
"getAfterTopic()"
@
getBeforeTopic=
"getBeforeTopic()"
@
answerChange=
"getAnswerChange($event, index)"
v-if=
"item.QuestionTypeKey === 'entry-problem' && index === changeIndex"
v-if=
"
item.QuestionTypeKey === 'entry-problem' && index === changeIndex
"
/>
<!-- 口语题 -->
<Spoken
...
...
@@ -228,7 +234,9 @@
@
getAfterTopic=
"getAfterTopic()"
@
getBeforeTopic=
"getBeforeTopic()"
@
answerChange=
"getAnswerChange($event, index)"
v-if=
"item.QuestionTypeKey === 'data-question' && index === changeIndex"
v-if=
"
item.QuestionTypeKey === 'data-question' && index === changeIndex
"
/>
<!-- 公用选择题 -->
<SharingChoose
...
...
@@ -240,7 +248,9 @@
@
getAfterTopic=
"getAfterTopic()"
@
getBeforeTopic=
"getBeforeTopic()"
@
answerChange=
"getAnswerChange($event, index)"
v-if=
"item.QuestionTypeKey === 'sharing-choose' && index === changeIndex"
v-if=
"
item.QuestionTypeKey === 'sharing-choose' && index === changeIndex
"
/>
<!-- 排序题 -->
<SortingProblem
...
...
@@ -252,7 +262,9 @@
@
getAfterTopic=
"getAfterTopic()"
@
getBeforeTopic=
"getBeforeTopic()"
@
answerChange=
"getAnswerChange($event, index)"
v-if=
"item.QuestionTypeKey === 'sorting-problem' && index === changeIndex"
v-if=
"
item.QuestionTypeKey === 'sorting-problem' && index === changeIndex
"
/>
<!-- 连线题待完善 -->
<Connect
...
...
@@ -341,7 +353,7 @@ export default {
let
Gid
=
uni
.
getStorageSync
(
"userInfo"
).
Id
;
let
{
refs
}
=
getCurrentInstance
();
let
data
=
reactive
({
time
:
2
*
60
*
60
*
1000
,
time
:
1
*
60
*
60
*
1000
,
statusBarHeight
:
0
,
// msg: { GuestId: Gid, PaperId: 6, Id: 3 },
msg
:
{
GuestId
:
Gid
,
PaperId
:
5
,
PublishId
:
1
},
...
...
@@ -367,6 +379,7 @@ export default {
let
res
=
await
getPaperDetail
(
data
.
msg
);
if
(
res
)
{
data
.
peaperDetail
=
res
.
Data
;
data
.
time
=
res
.
Data
.
Publish
.
ExamTimes
*
60
*
1000
;
}
},
//往后翻
...
...
@@ -401,6 +414,7 @@ export default {
},
};
onMounted
(()
=>
{
methods
.
start
();
getSystemInfo
((
res
)
=>
{
data
.
statusBarHeight
=
res
.
statusBarHeight
;
});
...
...
@@ -411,6 +425,9 @@ export default {
};
},
onLoad
(
options
)
{
this
.
msg
.
PaperId
=
options
.
PaperId
;
this
.
msg
.
PublishId
=
options
.
Id
;
console
.
log
(
414
,
this
.
msg
);
this
.
getPaperDetail
();
},
};
...
...
src/pages/index/index.vue
View file @
548ff459
...
...
@@ -93,16 +93,20 @@
</van-cell-group>
<view
class=
"mytest flex"
>
<view
v-for=
"(item, index) in
test
List"
v-for=
"(item, index) in
indexData.paper
List"
:key=
"index"
class=
"test-item no_shrink"
:style=
"
{ 'background-image': `url(${item.bgimg})` }"
@click="jumpPage('/pages/exam/examPaper')"
:style=
"
{ 'background-image': `url(${item.PicList[0]})` }"
@click="
jumpPage(
`/pages/exam/examPaper?PaperId=${item.PaperId}
&&
Id=${item.Id}`
)
"
>
<view
class=
"testName"
>
{{
item
.
test
Name
}}
{{
item
.
Paper
Name
}}
</view>
<view
class=
"testTime"
>
考试时间:
{{
item
.
tes
tTime
}}
</view>
<view
class=
"testTime"
>
考试时间:
{{
item
.
ExamStar
tTime
}}
</view>
<view
class=
"teacherInfo-bg"
></view>
<view
class=
"teacherInfo flex flex_between_center"
>
<view
class=
"flex flex_start_center"
>
...
...
@@ -113,10 +117,18 @@
fit=
"cover"
src=
"https://img.yzcdn.cn/vant/cat.jpeg"
/>
<view
class=
"teacherName"
>
{{
i
tem
.
t
eacherName
}}
</view>
<view
class=
"teacherName"
>
{{
i
ndexData
.
T
eacherName
}}
</view>
</view>
<view
class=
"test-status"
>
{{
item
.
status
}}
<view
class=
"test-status"
:class=
"
{
'status-black': item.ExamStatus == 1,
'status-red': item.ExamStatus == 2,
'status-green': item.ExamStatus == 3,
'status-blue': item.ExamStatus == 4,
}"
>
{{
item
.
ExamStatusStr
}}
</view>
</view>
</view>
...
...
@@ -192,7 +204,7 @@ export default {
desc
:
"李琴"
,
img
:
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/icon6.png"
,
bgcolor
:
"#FFE7E6"
,
jumpUrl
:
"
/pages/course/askForLeaveList
"
,
jumpUrl
:
""
,
},
],
testList
:
[
...
...
@@ -437,11 +449,14 @@ export default {
box-sizing
:
border-box
;
border-radius
:
20
rpx
;
overflow
:
hidden
;
background-color
:
#333333
;
/* background-color: #333333; */
box-shadow
:
0
rpx
10
rpx
30
rpx
0
rpx
rgba
(
36
,
36
,
36
,
0.2
);
margin-right
:
30
rpx
;
background-repeat
:
no-repeat
;
background-position
:
center
;
background-size
:
cover
;
background-origin
:
border-box
;
background-clip
:
border-box
;
padding-top
:
60
rpx
;
padding-left
:
44
rpx
;
position
:
relative
;
...
...
@@ -492,6 +507,18 @@ export default {
font-size
:
24
rpx
;
font-family
:
PingFang
SC
;
font-weight
:
bold
;
/* color: #00acf9; */
}
.status-blue
{
color
:
#00acf9
;
}
.status-green
{
color
:
#00df9f
;
}
.status-black
{
color
:
#111111
;
}
.status-red
{
color
:
#ff3816
;
}
</
style
>
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