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
780bc6c4
Commit
780bc6c4
authored
Mar 11, 2022
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
d9f54724
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
4 deletions
+29
-4
exam.js
src/api/exam.js
+12
-0
listen.vue
src/components/question/subject/listen.vue
+0
-1
examGongu.vue
src/pages/exam/examGongu.vue
+17
-3
No files found.
src/api/exam.js
View file @
780bc6c4
...
...
@@ -167,4 +167,16 @@ export function GetAppBankDetails(data) {
method
:
'post'
,
data
})
}
/**
* 考试开始接口
* @param {JSON参数} data
*/
export
function
SetStudentStartExam
(
data
)
{
return
request
({
url
:
'/Exam/SetStudentStartExam'
,
method
:
'post'
,
data
})
}
\ No newline at end of file
src/components/question/subject/listen.vue
View file @
780bc6c4
...
...
@@ -2,7 +2,6 @@
<!-- 听力题 -->
<view
class=
"listen"
>
<view
class=
"item"
style=
"padding: 0 20px"
>
{{
dataObj
.
Src
}}
<audio
style=
"text-align: left"
poster=
"http://pic.pimg.tw/pam86591/1408719752-3322564110_n.jpg"
:src=
"dataObj.Src"
name=
"日语听力"
:action=
"audioAction"
controls
></audio>
<view
class=
"item1"
:style=
"
{ height: `calc(100vh - 414rpx)` }">
...
...
src/pages/exam/examGongu.vue
View file @
780bc6c4
...
...
@@ -47,7 +47,8 @@
import
answer
from
"../../components/question/subject/answer.vue"
;
//答题卡
import
{
GetAppBankDetails
GetAppBankDetails
,
SetStudentStartExam
,
}
from
"../../api/exam"
;
export
default
{
components
:
{
...
...
@@ -68,6 +69,11 @@
pageSize
:
20
,
BankId
:
0
},
startMsg
:
{
Id
:
0
,
BankId
:
1
,
StudentId
:
1
},
current
:
0
,
//默认从第几个开始-用于从快捷菜单点入
isShowJx
:
false
,
Count
:
0
,
...
...
@@ -131,7 +137,13 @@
getAnswerChange
(
val
,
index
)
{
data
.
dataList
[
index
]
=
val
;
},
//开始考试调用接口
getStart
(){
data
.
startMsg
.
StudentId
=
UserInfo
.
AccountId
;
SetStudentStartExam
(
data
.
startMsg
).
then
(
res
=>
{
})
}
};
onMounted
(()
=>
{
data
.
statusBarHeight
=
uni
.
getSystemInfoSync
().
statusBarHeight
;
...
...
@@ -144,9 +156,11 @@
},
async
onLoad
(
options
)
{
if
(
options
&&
options
.
BankId
)
{
this
.
msg
.
BankId
=
options
.
BankId
this
.
msg
.
BankId
=
options
.
BankId
;
this
.
startMsg
.
BankId
=
options
.
BankId
;
}
this
.
getList
();
this
.
getStart
();
}
};
</
script
>
...
...
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