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

我的学习页面修改

上级 5219c461
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<div class="title">我的考试</div> <div class="title">我的考试</div>
<div class="card-box"> <div class="card-box">
<ul> <ul>
<li v-for="(item, index) in examinaList" :key="index"> <li v-for="(item, index) in examinaList" :key="index" @click="popShow">
<img :src="item.img" alt=""> <img :src="item.img" alt="">
<div class="txt">{{ item.text }}</div> <div class="txt">{{ item.text }}</div>
</li> </li>
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
</div> </div>
</div> </div>
<div class="dialog" v-show="dialogVisible"> <div class="dialog" v-show="dialogVisible">
<div class="click-pop" @click="popHide"></div>
<div class="scroll" :style="{height:(popHeight-50)+'px'}"> <div class="scroll" :style="{height:(popHeight-50)+'px'}">
<div class="cont" :style="{height:(popHeight-130)+'px'}"> <div class="cont" :style="{height:(popHeight-130)+'px'}">
<div class="tit">考试须知</div> <div class="tit">考试须知</div>
...@@ -59,6 +60,12 @@ export default { ...@@ -59,6 +60,12 @@ export default {
setHeight () { setHeight () {
const viewHeight = document.body.offsetHeight const viewHeight = document.body.offsetHeight
this.popHeight = viewHeight this.popHeight = viewHeight
},
popShow () {
this.dialogVisible = true
},
popHide () {
this.dialogVisible = false
} }
} }
} }
...@@ -127,6 +134,14 @@ export default { ...@@ -127,6 +134,14 @@ export default {
-o-transform: translate(-50%,-50%); -o-transform: translate(-50%,-50%);
border-radius:6px; border-radius:6px;
overflow: hidden; overflow: hidden;
z-index: 9;
}
.click-pop{
position:absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
} }
.cont{ .cont{
width: 600px; width: 600px;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论