Commit 32f278e3 authored by Facius's avatar Facius

improvement: 考试时间到的弹窗

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