NGTools/pagesPackage/components/popup.vue

104 lines
1.9 KiB
Vue
Raw Normal View History

<template>
<view class="informantion_mask" @tap="closeWindow">
<view class="informantion_content" @tap.stop.prevent>
<view class="mask-header">
<image :src="getStaticFilePath('/logomain.png')" mode="aspectFit" @click="closeWindow"></image>
</view>
<view class="informantion-title">
<p class="informantion-title-p">开启消息通知</p>
<span class="informantion-title-span">不要错过你的特别关心的重要通知每天都要有干货推荐</span>
</view>
<view class="informantion-btn">
<button type="primary">去开启</button>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
}
},
props: {
message: {
type: Object,
default:{}
},
},
methods: {
//点击mask消失由于是页面实际相当于返回
closeWindow() {
uni.navigateBack({
delta: 1
})
}
}
}
</script>
<style lang="scss">
page {
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.4);
}
.informantion_mask {
width: 100%;
height: 100%;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
}
.informantion_content {
width: 600rpx;
height: 820rpx;
overflow: hidden;
border-radius: 10rpx;
background-color: white;
display: flex;
flex-direction: column;
justify-content: space-between;
padding-bottom: 20rpx;
}
.mask-header {
height: 400rpx;
position: relative;
background-image: url('http://h5.ngtools.cn/pic/static/logomain.png');
background-repeat: no-repeat;
background-size: cover;
image {
width: 40rpx;
height: 40rpx;
position: absolute;
top: 20rpx;
right: 20rpx;
}
}
.informantion-title {
text-align: center;
padding: 0 40rpx;
p {
font-size: 35rpx;
font-weight: bold;
line-height: 80rpx;
}
span {
color: #6C6C6C;
}
}
.informantion-btn {
height: 93rpx;
width: 80%;
margin: 0 auto;
}
</style>