Commit 32f278e3 authored by Facius's avatar Facius

improvement: 考试时间到的弹窗

parent e5712c6f
......@@ -28,8 +28,9 @@
<view class="label-view">{{ info.labels[index] }}</view>
</view>
</view>
<view class="pop-btn-view">
<view :class="['pop-btn-view', { timeout: timeout }]">
<u-button
v-if="!timeout"
:custom-style="customStyleCancel"
hover-class="none"
shape="circle"
......@@ -64,11 +65,15 @@ export default {
type: Boolean,
default: false,
},
// pass:合格;fail:不合格;daily:每日一练
// pass:合格;fail:不合格;
type: {
type: String,
default: '',
},
timeout: {
type: Boolean,
default: false,
},
numberList: {
type: Array,
default: [],
......@@ -83,7 +88,7 @@ export default {
case 'pass':
return {
image: 'chegnjihege-f.png',
title: '成绩已合格',
title: this.timeout ? '考试时间到' : '成绩已合格',
message: '',
buttonTextCancel: '继续答题',
buttonTextSure: '现在交卷',
......@@ -92,21 +97,12 @@ export default {
case 'fail':
return {
image: 'chengjibuhege-f.png',
title: '成绩不合格',
title: this.timeout ? '考试时间到' : '成绩不合格',
message: '',
buttonTextCancel: '继续答题',
buttonTextSure: '现在交卷',
labels: ['做错题', '未做题', '分数'],
}
case 'daily':
return {
image: 'lianxiwancheng-f.png',
title: '每日一练已完成',
message: '您每日一练已累计打卡',
buttonTextCancel: '查看记录',
buttonTextSure: '继续练习',
labels: ['分'],
}
}
},
isDaily() {
......@@ -233,6 +229,9 @@ export default {
bottom: 48rpx;
left: 40rpx;
right: 40rpx;
&.timeout {
justify-content: center;
}
}
}
</style>
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