Commit 780bc6c4 authored by zhengke's avatar zhengke

修改

parent d9f54724
......@@ -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
......@@ -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)` }">
......
......@@ -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>
......
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