<template>
	<view>
		<image @click="buyTaozi" class="taozi" src="https://des.dayunyuanjian.cn/epicSoul/taozi/taozi.png" mode=""></image>
	</view>
</template>

<script>
	export default {
		methods: {
			buyTaozi() {
				uni.setClipboardData({
					data: 'https://www.xiaohongshu.com/goods-detail/684beba28a6cef0001a9ed2c',
					success: function() {
						uni.showToast({
							title: '链接已复制，请打开小红书APP查看',
							icon: 'none',
							duration: 2000
						});
					}
				});
			}
		}
	};
</script>

<style lang="scss" scoped>
	.taozi {
		width: 80rpx;
		height: 80rpx;
		position: fixed;
		right: 0;
		top: 25%;
		z-index: 9;

		&:active {
			transform: scale(0.9);
		}
	}
</style>