提交 dbaa5ae4 authored 作者: lihuihui's avatar lihuihui

答题卡添加清空弹窗

上级 ae9c3d70
......@@ -39,6 +39,16 @@
<div class="clear-btn">
<div class="btn" @click="clearQuestion">清空记录,重新答题</div>
</div>
<div class="exam_submit" v-if="isPopShow">
<div class="pop">
<div class="tit"></div>
<div class="txt">您确定要清空当前做题记录并重新开始吗?</div>
<div class="btn_box">
<div class="btn" @click="isPopShow = false">取消</div>
<div class="btn btn2" @click="clearQuestion">清空</div>
</div>
</div>
</div>
</div>
</template>
<script>
......@@ -59,7 +69,8 @@ export default {
5: '案例题',
6: '判断题'
},
dataList: []
dataList: [],
isPopShow: false
}
},
methods: {
......@@ -105,6 +116,57 @@ export default {
}
</script>
<style lang="scss" scoped>
.exam_submit{
position: fixed;
top: 0;
left: 0;
z-index: 999999;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.6);
.pop{
width: 5.9rem;
position: absolute;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%,-50%);
background:rgba(255,255,255,1);
border-radius:.12rem;
padding: 0.4rem 0;
.tit{
font-weight:bold;
color:rgba(34,34,34,1);
font-size:.3rem;
text-align: center;
line-height: 100%;
}
.txt{
color:rgba(34,34,34,1);
font-size:.3rem;
text-align: center;
line-height: 100%;
margin-top: .8rem;
}
.btn_box{
padding:0 0.2rem;
display: flex;
margin-top: .8rem;
.btn{
width:2.6rem;
height:.7rem;
background:#C62245;
border-radius:.12rem;
text-align: center;
line-height: .7rem;
color: #fff;
font-size: .3rem;
}
.btn2{
margin-left: auto;
}
}
}
}
.card_box{
width: 100%;
height: 100%;
......
......@@ -200,7 +200,7 @@ export default {
path: '/my/questionsDetails',
query: {
page: parseInt(num) === 0 ? 1 : num,
type: this.activeClass === '0' ? 1 : 3,
type: 2,
questionType: this.screen.screenVal
}
})
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论