提交
This commit is contained in:
@@ -84,7 +84,7 @@
|
||||
<view style="width: 220rpx;">
|
||||
<view v-if="type==='practice'" style="width: 220rpx;height: 80rpx;"></view>
|
||||
<view v-else-if="type=='exam'" class="btn" style="text-align: center;" @tap="submitPaper">
|
||||
<u-count-down ref="countDown_1" :time=" 1*60*60 * 1000" format="HH:mm:ss" @change="timeChange"></u-count-down>
|
||||
<u-count-down ref="countDown_1" :time=" timeCount" format="HH:mm:ss" @change="timeChange"></u-count-down>
|
||||
<text>交卷</text>
|
||||
</view>
|
||||
</view>
|
||||
@@ -135,7 +135,7 @@
|
||||
<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>
|
||||
<u-count-down ref="countDown_3" class="balckColor" :time="timeCount" format="HH:mm:ss"></u-count-down>
|
||||
<view>剩余时间</view>
|
||||
</view>
|
||||
<view class="text-center">
|
||||
@@ -164,7 +164,7 @@
|
||||
<view style="width: 220rpx;">
|
||||
<view v-if="type==='practice'" style="width: 220rpx;height: 80rpx;"></view>
|
||||
<view v-else-if="type=='exam'" 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>
|
||||
<u-count-down ref="countDown_2" :time="timeCount" format="HH:mm:ss"></u-count-down>
|
||||
<text>交卷</text>
|
||||
</view>
|
||||
</view>
|
||||
@@ -308,6 +308,10 @@ export default {
|
||||
}else{
|
||||
return false
|
||||
}
|
||||
},
|
||||
timeCount() {
|
||||
const time=this.subject == '1' ? 60 * 60 * 1000 : 45 * 60 * 1000
|
||||
return time
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
Reference in New Issue
Block a user