<template>
	<view class="sharepage_container">
		<view class="background_image_container">
			<!-- 背景图片 -->
			<image class="background_image" :src="$baseUrl + 'homepage/shareImg_jf1.jpg'" mode="aspectFit" />
			
			<!-- 一键领取按钮 -->
			<view class="claim_button" @click="handleClaim">
				<text class="claim_text">一键领取</text>
			</view>
		</view>
	</view>
</template>

<script setup>
import { onShareAppMessage } from '@dcloudio/uni-app';

// 一键领取按钮点击事件
const handleClaim = () => {
	console.log('一键领取按钮点击');
	// 这里可以添加领取逻辑
	uni.showToast({
		title: '领取成功',
		icon: 'success'
	});
};

// 分享配置
onShareAppMessage(() => {
	return {
		title: '积分分享',
		path: '/pages/invate/sharepage',
		imageUrl: ''
	};
});
</script>

<style lang="less" scoped>
@import './sharepage.less';
</style>
