|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
- <view id="questionBank">
|
|
|
- <uni-nav-bar @clickLeft="clickLeft" left-icon="back" :statusBar="true" title="试卷"></uni-nav-bar>
|
|
|
+ <view class="questionBank">
|
|
|
+ <uni-nav-bar @clickLeft="clickLeft" left-icon="back" ref="navbar" :statusBar="true" title="试卷"></uni-nav-bar>
|
|
|
<swiper class="swiper" :current="current" @change="swiperChange" :interval="interval">
|
|
|
<swiper-item v-for="(bank, bankIndex) in questionList" :key="bankIndex">
|
|
|
<view class="pageContent">
|
|
@@ -514,12 +514,10 @@ export default {
|
|
|
icon:'none',
|
|
|
mask:true,
|
|
|
title:'考试时间到,自动交卷',
|
|
|
- duration:2000
|
|
|
+ duration:10000
|
|
|
})
|
|
|
|
|
|
- setTimeout(() => {
|
|
|
- this.submit();
|
|
|
- }, 1000);
|
|
|
+ this.submit();
|
|
|
return;
|
|
|
}
|
|
|
this.lastTime--;
|
|
@@ -1053,13 +1051,12 @@ export default {
|
|
|
clearInterval(this.timer);
|
|
|
uni.showToast({
|
|
|
icon:'none',
|
|
|
+ mask:true,
|
|
|
title:'考试时间到,自动交卷',
|
|
|
- duration:1000
|
|
|
+ duration:10000
|
|
|
})
|
|
|
|
|
|
- setTimeout(() => {
|
|
|
- this.submit();
|
|
|
- }, 1000);
|
|
|
+ this.submit();
|
|
|
return;
|
|
|
}
|
|
|
this.lastTime--;
|
|
@@ -1837,9 +1834,16 @@ export default {
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
+
|
|
|
+.questionBank {
|
|
|
+ width:100%;
|
|
|
+ height:100vh;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+}
|
|
|
.swiper {
|
|
|
width: 100%;
|
|
|
- height: calc(100vh - 65px);
|
|
|
+ flex:1;
|
|
|
}
|
|
|
.lisSty {
|
|
|
margin-bottom: 16rpx;
|