WX-welfareOfficer/components/notice.vue

64 lines
1.1 KiB
Vue

<template>
<div class="mask" @touchmove.prevent @mousewheel.prevent v-if="notice">
<div class="box">
<p class="text">
{{ notice }}
</p>
</div>
</div>
</template>
<script>
export default {
props: {
notice: {
type: String,
default: null
}
}
};
</script>
<style>
.mask {
display: flex;
align-items: center;
flex-direction: column;
justify-content: center;
background: rgba(0, 0, 0, 0.5);
position: fixed;
top: 0;
left: 0;
bottom: 0;
z-index: 999;
right: 0;
}
.text {
height: 100rpx;
font-size: 36rpx;
color: #524d4d;
padding: 0 20rpx;
display: flex;
align-items: center;
justify-content: center;
}
.title {
font-size: 50rpx;
font-weight: bold;
color: #171717;
}
.box {
width: 550rpx;
height: 300rpx;
background: #ffffff;
border-radius: 30rpx;
margin-top: -355rpx;
text-align: center;
display: flex;
flex-direction: column;
justify-content: center;
}
</style>