PopupA.vue 2.3 KB
<template>
	<u-popup :show="show" mode="center" bgColor="transparent">
		<view class="PopupA">
			<view class="PopupA-1">
				<image class="PopupA-1-bg" src="@/static/images/xh_icon10.png"></image>
				<view class="PopupA-1-content">
					<view class="PopupA-1-content-icon">
						<image src="@/static/images/xh_icon11.png" mode=""></image>
					</view>
					<view class="PopupA-1-content-title">
						<image class="PopupA-1-content-title-icon" src="@/static/images/xh_icon12.png" ></image>
						<text class="PopupA-1-content-title-text">{{ title }}</text>
						<image class="PopupA-1-content-title-icon" src="@/static/images/xh_icon12.png" ></image>
					</view>
					<view class="PopupA-1-content-details">
						“恭喜你获得中志教育荣誉勋章凭截图可到学生服务中心领取奖品一份”
					</view>
				</view>
			</view>
			<view class="PopupA-2">
				<u-icon name="close-circle" color="#fff" size="32" @click.native="close"></u-icon>
			</view>
		</view>
	</u-popup>
</template>

<script>
	export default {
		name: 'PopupA',
		data() {
			return {
				show: false,
				title: ''
			}
		},
		methods: {
			open({title} = e) {
				this.title = title
				this.show = true
			},
			close() {
				this.show = false
				this.$emit('close')
			}
		}
	}
</script>

<style lang="scss" scoped>
	.PopupA{
		.PopupA-1{
			position: relative;
			padding: 140rpx 35rpx 100rpx 35rpx;
			height: 830rpx;
			width: 640rpx;
			.PopupA-1-bg{
				position: absolute;
				height: 830rpx;
				width: 640rpx;
				top: 0;
				left: 0;
			}
			.PopupA-1-content{
				position: relative;
				display: flex;
				flex-direction: column;
				align-items: center;
				justify-content: center;
				.PopupA-1-content-icon{
					height: 370rpx;
					width: 370rpx;
				}
				.PopupA-1-content-title{
					display: flex;
					align-items: center;
					.PopupA-1-content-title-text{
						font-size: 32rpx;
						color: #422511;
						margin: 0 25rpx;
						font-weight: bold;
					}
					.PopupA-1-content-title-icon{
						height: 38rpx;
						width: 38rpx;
					}
				}
				.PopupA-1-content-details{
					text-align: center;
					color: #72482A;
					font-size: 26rpx;
					margin-top: 26rpx;
					padding: 0 20rpx;
				}
			}
		}
		.PopupA-2{
			display: flex;
			justify-content: center;
			margin-top: 37rpx;
		}
	}
</style>