<template>
	<view class="signed_tips_overlay" v-if="visible" @click="handleClose">
		<!-- 背景容器，右下角镂空透明圆角矩形 -->
		<view class="background_container"></view>
		
		<view class="signed_tips_container">
			<!-- <text class="tips_title">签到成功！</text> -->
            <image class="tips_title" :src="$baseUrl + `integral/1023/signedTitle.png`" mode="aspectFit" />
			<text class="points_text">获得{{ points }}积分</text>
		</view>
        <image class="signedbg_icon" :src="$baseUrl + `integral/1023/signedBgIcon.png`" mode="aspectFit" />
	</view>
</template>

<script setup>
import { defineProps, defineEmits } from 'vue';

// Props 定义
const props = defineProps({
	visible: {
		type: Boolean,
		default: false
	},
	points: {
		type: Number,
		default: 0
	}
});

// Emits 定义
const emit = defineEmits(['close']);

// 关闭弹窗
const handleClose = () => {
	emit('close');
};
</script>

<style lang="less" scoped>
@import '@/components/qiandao/SignedTips.less';
</style>
