Commit 780bc6c4 authored by zhengke's avatar zhengke

修改

parent d9f54724
...@@ -168,3 +168,15 @@ export function GetAppBankDetails(data) { ...@@ -168,3 +168,15 @@ export function GetAppBankDetails(data) {
data data
}) })
} }
/**
* 考试开始接口
* @param {JSON参数} data
*/
export function SetStudentStartExam(data) {
return request({
url: '/Exam/SetStudentStartExam',
method: 'post',
data
})
}
\ No newline at end of file
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
<!-- 听力题 --> <!-- 听力题 -->
<view class="listen"> <view class="listen">
<view class="item" style="padding: 0 20px"> <view class="item" style="padding: 0 20px">
{{dataObj.Src}}
<audio style="text-align: left" poster="http://pic.pimg.tw/pam86591/1408719752-3322564110_n.jpg" <audio style="text-align: left" poster="http://pic.pimg.tw/pam86591/1408719752-3322564110_n.jpg"
:src="dataObj.Src" name="日语听力" :action="audioAction" controls></audio> :src="dataObj.Src" name="日语听力" :action="audioAction" controls></audio>
<view class="item1" :style="{ height: `calc(100vh - 414rpx)` }"> <view class="item1" :style="{ height: `calc(100vh - 414rpx)` }">
......
...@@ -47,7 +47,8 @@ ...@@ -47,7 +47,8 @@
import answer from "../../components/question/subject/answer.vue"; //答题卡 import answer from "../../components/question/subject/answer.vue"; //答题卡
import { import {
GetAppBankDetails GetAppBankDetails,
SetStudentStartExam,
} from "../../api/exam"; } from "../../api/exam";
export default { export default {
components: { components: {
...@@ -68,6 +69,11 @@ ...@@ -68,6 +69,11 @@
pageSize: 20, pageSize: 20,
BankId: 0 BankId: 0
}, },
startMsg: {
Id:0,
BankId:1,
StudentId:1
},
current: 0, //默认从第几个开始-用于从快捷菜单点入 current: 0, //默认从第几个开始-用于从快捷菜单点入
isShowJx: false, isShowJx: false,
Count: 0, Count: 0,
...@@ -131,7 +137,13 @@ ...@@ -131,7 +137,13 @@
getAnswerChange(val, index) { getAnswerChange(val, index) {
data.dataList[index] = val; data.dataList[index] = val;
}, },
//开始考试调用接口
getStart(){
data.startMsg.StudentId = UserInfo.AccountId;
SetStudentStartExam(data.startMsg).then(res=>{
})
}
}; };
onMounted(() => { onMounted(() => {
data.statusBarHeight = uni.getSystemInfoSync().statusBarHeight; data.statusBarHeight = uni.getSystemInfoSync().statusBarHeight;
...@@ -144,9 +156,11 @@ ...@@ -144,9 +156,11 @@
}, },
async onLoad(options) { async onLoad(options) {
if (options && options.BankId) { if (options && options.BankId) {
this.msg.BankId = options.BankId this.msg.BankId = options.BankId;
this.startMsg.BankId = options.BankId;
} }
this.getList(); this.getList();
this.getStart();
} }
}; };
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment