<!-- /components/ShareGuideTips/ShareGuideTips.vue -->
<template>
	<view class="markBox" @click="close" v-if="show">
		<view class="guideImgBox">
			<image :src="imgSrc" mode="widthFix" ></image>
			<view class="tips">
				<view style="margin-bottom:30rpx">请点击右上角菜单</view>
				<view>分享给朋友</view>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	name: 'ShareGuideTips',
	props: {
		// 控制是否显示
		show: {
			type: Boolean,
			default: false
		},
		// 自定义图片路径（可选）
		imgSrc: {
			type: String,
			default: '/static/Group132.png'
		}
	},
	methods: {
		close() {
			this.$emit('update:show', false); // 支持 .sync 或 v-model
			this.$emit('close'); // 兼容事件监听
		}
	}
};
</script>

<style scoped>
.markBox {
	position: fixed;
	left: 0;
	top: 0;
	bottom: 0;
	right: 0;
	width: 100%;
	height: 100%;
	color: #fff;
	display: flex;
	justify-content: flex-end;
	align-items: flex-start; /* 确保内容靠上 */
	z-index: 100000;
	background: rgba(0, 0, 0, 0.8);
}

.guideImgBox {
	position: relative;
	margin: 20px auto;
	width: 100%;
	
}

.guideImgBox image {
	width: 25% !important;
	height: auto;
	display: block;
	position: absolute;
	top: 0;
	right: 10%;
}

.tips {
	margin-top: 30%; /* 可根据设计调整 */
	padding: 0 30px;
	text-align: center;
	font-size: 28rpx;
}
</style>