NGTools/pagesPackage/components/popup.vue
liaody 3d90da2569 pages.json 分文件配置
uni-module 更新升级
2024-10-09 22:44:03 +08:00

104 lines
1.9 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<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('https://ngtools.cn:3000/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>