2024-12-07 23:20:31 +08:00
|
|
|
|
<template>
|
|
|
|
|
|
<div class="relative inline-block">
|
|
|
|
|
|
<n-popover trigger="hover" placement="top" :show-arrow="true" :raw="true" :delay="100">
|
|
|
|
|
|
<template #trigger>
|
|
|
|
|
|
<slot>
|
|
|
|
|
|
<n-button
|
|
|
|
|
|
quaternary
|
|
|
|
|
|
class="inline-flex items-center gap-2 px-4 py-2 transition-all duration-300 hover:-translate-y-0.5"
|
|
|
|
|
|
>
|
|
|
|
|
|
请我喝咖啡
|
|
|
|
|
|
</n-button>
|
|
|
|
|
|
</slot>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="p-6 bg-black rounded-lg shadow-lg">
|
2024-12-15 14:13:13 +08:00
|
|
|
|
<div class="flex gap-10">
|
2024-12-07 23:20:31 +08:00
|
|
|
|
<div class="flex flex-col items-center gap-2">
|
2024-12-15 14:13:13 +08:00
|
|
|
|
<n-image :src="alipayQR" alt="支付宝收款码" class="w-32 h-32 rounded-lg cursor-none" preview-disabled />
|
2024-12-07 23:20:31 +08:00
|
|
|
|
<span class="text-sm text-gray-100">支付宝</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="flex flex-col items-center gap-2">
|
2024-12-15 14:13:13 +08:00
|
|
|
|
<n-image :src="wechatQR" alt="微信收款码" class="w-32 h-32 rounded-lg cursor-none" preview-disabled />
|
2024-12-07 23:20:31 +08:00
|
|
|
|
<span class="text-sm text-gray-100">微信支付</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2024-12-25 19:55:24 +08:00
|
|
|
|
|
|
|
|
|
|
<div class="mt-4">
|
|
|
|
|
|
<p class="text-sm text-gray-100 text-center cursor-pointer hover:text-green-500" @click="copyQQ">
|
|
|
|
|
|
QQ群:789288579
|
|
|
|
|
|
</p>
|
|
|
|
|
|
</div>
|
2024-12-07 23:20:31 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</n-popover>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
|
|
import { NButton, NImage, NPopover } from 'naive-ui';
|
|
|
|
|
|
|
2024-12-25 19:55:24 +08:00
|
|
|
|
const message = useMessage();
|
|
|
|
|
|
const copyQQ = () => {
|
|
|
|
|
|
navigator.clipboard.writeText('789288579');
|
|
|
|
|
|
message.success('已复制到剪贴板');
|
|
|
|
|
|
};
|
|
|
|
|
|
|
2024-12-07 23:20:31 +08:00
|
|
|
|
defineProps({
|
|
|
|
|
|
alipayQR: {
|
|
|
|
|
|
type: String,
|
|
|
|
|
|
required: true,
|
|
|
|
|
|
},
|
|
|
|
|
|
wechatQR: {
|
|
|
|
|
|
type: String,
|
|
|
|
|
|
required: true,
|
|
|
|
|
|
},
|
|
|
|
|
|
});
|
|
|
|
|
|
</script>
|