<template>
	<view class="font">
		<u-popup :show="show" @close="close" mode="center" :round="20">
			<view class="content">
				<image @click="sign" class="mb-2" :src="signUrl" style="height: 252rpx;" mode="heightFix"></image>
				<text v-if="messageFalg">点击上方按钮，即可完成签到</text>
			</view>
			<u-icon name="close" class="icon" @click="close"></u-icon>
		</u-popup>
	</view>
</template>
<script>
	export default {
		name:"sign",
		props:["show"],
		data() {
			return {
				signUrl:"/static/images/signBefore.png",
				messageFalg:true
			}
		},
		methods: {
			close() {
				this.$emit("onClose")
			},
			sign(){
				this.signUrl = "/static/images/signAfter.png";
				this.messageFalg = false;
			}
		}
	}
</script>

<style lang="scss" scoped>
	.mb-2{
		margin-bottom: 20rpx;
	}
	.font{
		color: #999999;
		font-size: 24rpx;
	}
	.content{
		height: 360rpx;
		width: 514rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		flex-direction: column;
		.icon{
			position: absolute;
			top: 30rpx;
			right: 30rpx;
		}
	}
</style>
