提交
This commit is contained in:
@@ -42,8 +42,8 @@
|
||||
<view class="wp100 flex jc-sb ai-c p14 bc-fff" style="position: fixed;bottom: 0;left: 0;">
|
||||
<view style="width: 220rpx;">
|
||||
<button v-if="type==='practice'" class="btn">四步学科一</button>
|
||||
<view v-else class="btn" style="text-align: center;">
|
||||
<u-count-down :time="1 * 60 * 60 * 1000" format="HH:mm:ss"></u-count-down>
|
||||
<view v-else class="btn" style="text-align: center;" @tap="submitPaper">
|
||||
<u-count-down ref="countDown_1" :time="1 * 60 * 60 * 1000" format="HH:mm:ss"></u-count-down>
|
||||
<text>交卷</text>
|
||||
</view>
|
||||
</view>
|
||||
@@ -81,13 +81,40 @@
|
||||
</view>
|
||||
</template>
|
||||
</u-modal>
|
||||
<u-modal :show="isSubmit">
|
||||
<view class="wp100">
|
||||
<view class="text-center">
|
||||
<text>确认交卷</text>
|
||||
<view class="mt20 flex ai-c jc-sb">
|
||||
<view class="text-center">
|
||||
<text style="color:#FF6E02">99</text>
|
||||
<view class="cor-333">未答题数</view>
|
||||
</view>
|
||||
<view class="text-center">
|
||||
<u-count-down ref="countDown_3" class="balckColor" :time="1 * 60 * 60 * 1000" format="HH:mm:ss"></u-count-down>
|
||||
<view>剩余时间</view>
|
||||
</view>
|
||||
<view class="text-center">
|
||||
<text style="color:#333">9</text>
|
||||
<view class="cor-333">考试得分</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<template #confirmButton>
|
||||
<view class="p10" >
|
||||
<u-button :customStyle="{width:'45%',marginRight:'10px',height:'68rpx',lineHeight:'68rpx',borderRadius:'34rpx',color:'#666',border:'1px solid #666',display:'inline-block'}" @click="continueExam">继续考试</u-button>
|
||||
<u-button :customStyle="{width:'45%',marginLeft:'10px',height:'68rpx',lineHeight:'68rpx',borderRadius:'34rpx',color:'#fff',backgroundColor:'#05C341',display:'inline-block'}" @click="toSubmit">现在交卷</u-button>
|
||||
</view>
|
||||
</template>
|
||||
</u-modal>
|
||||
<u-popup :show="popupShow" mode="bottom" :closeOnClickOverlay="true" @close="popupShow=false">
|
||||
<view>
|
||||
<view class="wp100 flex jc-sb p14 bc-fff">
|
||||
<view style="width: 220rpx;">
|
||||
<button v-if="type==='practice'" class="btn">四步学科一</button>
|
||||
<view v-else class="btn" style="text-align: center;">
|
||||
<u-count-down :time="1 * 60 * 60 * 1000" format="HH:mm:ss"></u-count-down>
|
||||
<view v-else class="btn" style="text-align: center;" @tap="submitPaper">
|
||||
<u-count-down ref="countDown_2" :time="1 * 60 * 60 * 1000" format="HH:mm:ss"></u-count-down>
|
||||
<text>交卷</text>
|
||||
</view>
|
||||
</view>
|
||||
@@ -134,6 +161,10 @@ export default {
|
||||
type:{
|
||||
type:String,
|
||||
default:'practice'
|
||||
},
|
||||
isSubmit:{
|
||||
type:Boolean,
|
||||
default:false
|
||||
}
|
||||
},
|
||||
data() {
|
||||
@@ -160,11 +191,29 @@ export default {
|
||||
this.renderSwiper(0)
|
||||
},
|
||||
methods: {
|
||||
submitPaper(){
|
||||
this.$refs.countDown_1.pause();
|
||||
this.$refs.countDown_2.pause();
|
||||
this.$refs.countDown_3.pause();
|
||||
this.$emit('update:isSubmit',true)
|
||||
},
|
||||
continueExam(){
|
||||
this.$refs.countDown_1.start();
|
||||
this.$refs.countDown_2.start();
|
||||
this.$refs.countDown_3.start();
|
||||
this.$emit('update:isSubmit',false)
|
||||
},
|
||||
//切换题目
|
||||
chooseQueston(index){
|
||||
this.popupShow=false
|
||||
this.pickerTopic(index)
|
||||
},
|
||||
//交卷
|
||||
toSubmit(){
|
||||
uni.navigateTo({
|
||||
url:"/pages/questionBank/examResult"
|
||||
})
|
||||
},
|
||||
//查看考试结果
|
||||
toResult(){
|
||||
uni.navigateTo({
|
||||
|
||||
Reference in New Issue
Block a user