mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-04-15 23:40:50 +08:00
✨ feat: 优化赞赏支持
This commit is contained in:
@@ -52,7 +52,8 @@ export default {
|
||||
qqGroup: 'QQ group: 789288579',
|
||||
messages: {
|
||||
copySuccess: 'Copied to clipboard'
|
||||
}
|
||||
},
|
||||
donateList: 'Buy me a coffee'
|
||||
},
|
||||
playlistType: {
|
||||
title: 'Playlist Category',
|
||||
|
||||
@@ -2,5 +2,6 @@ export default {
|
||||
description:
|
||||
'Your donation will be used to support development and maintenance work, including but not limited to server maintenance, domain name renewal, etc.',
|
||||
message: 'You can leave your email or github name when leaving a message.',
|
||||
refresh: 'Refresh List'
|
||||
refresh: 'Refresh List',
|
||||
toDonateList: 'Buy me a coffee'
|
||||
};
|
||||
|
||||
@@ -51,7 +51,8 @@ export default {
|
||||
qqGroup: 'QQ群:789288579',
|
||||
messages: {
|
||||
copySuccess: '已复制到剪贴板'
|
||||
}
|
||||
},
|
||||
donateList: '请我喝咖啡'
|
||||
},
|
||||
playlistType: {
|
||||
title: '歌单分类',
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
export default {
|
||||
description: '您的捐赠将用于支持开发和维护工作,包括但不限于服务器维护、域名续费等。',
|
||||
message: '留言时可留下您的邮箱或 github名称。',
|
||||
refresh: '刷新列表'
|
||||
refresh: '刷新列表',
|
||||
toDonateList: '请我喝咖啡'
|
||||
};
|
||||
|
||||
@@ -46,6 +46,15 @@
|
||||
{{ t('comp.coffee.qqGroup') }}
|
||||
</p>
|
||||
</div>
|
||||
<div class="mt-4">
|
||||
<!-- 赞赏列表地址 -->
|
||||
<p
|
||||
class="text-sm text-green-600 dark:text-gray-200 text-center cursor-pointer hover:text-green-500"
|
||||
@click="toDonateList"
|
||||
>
|
||||
{{ t('comp.coffee.donateList') }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</n-popover>
|
||||
</div>
|
||||
@@ -66,6 +75,10 @@ const copyQQ = () => {
|
||||
message.success('已复制到剪贴板');
|
||||
};
|
||||
|
||||
const toDonateList = () => {
|
||||
window.open('http://donate.alger.fun', '_blank');
|
||||
};
|
||||
|
||||
defineProps({
|
||||
alipayQR: {
|
||||
type: String,
|
||||
|
||||
@@ -76,12 +76,12 @@
|
||||
</n-button>
|
||||
</div>
|
||||
|
||||
<div class="p-6 rounded-lg shadow-lg bg-light dark:bg-gray-800">
|
||||
<div class="p-6 rounded-lg shadow-lg">
|
||||
<div class="description text-center text-sm text-gray-700 dark:text-gray-200">
|
||||
<p>{{ t('donation.description') }}</p>
|
||||
<p>{{ t('donation.message') }}</p>
|
||||
</div>
|
||||
<div class="flex justify-between">
|
||||
<div class="flex justify-between mt-6">
|
||||
<div class="flex flex-col items-center gap-2">
|
||||
<n-image
|
||||
:src="alipay"
|
||||
@@ -91,6 +91,13 @@
|
||||
/>
|
||||
<span class="text-sm text-gray-700 dark:text-gray-200">{{ t('common.alipay') }}</span>
|
||||
</div>
|
||||
<n-button type="primary" @click="toDonateList">
|
||||
<template #icon>
|
||||
<i class="ri-cup-line"></i>
|
||||
</template>
|
||||
{{ t('donation.toDonateList') }}
|
||||
<i class="ri-arrow-right-s-line"></i>
|
||||
</n-button>
|
||||
<div class="flex flex-col items-center gap-2">
|
||||
<n-image
|
||||
:src="wechat"
|
||||
@@ -225,6 +232,10 @@ const displayDonors = computed(() => {
|
||||
const toggleExpand = () => {
|
||||
isExpanded.value = !isExpanded.value;
|
||||
};
|
||||
|
||||
const toDonateList = () => {
|
||||
window.open('http://donate.alger.fun', '_blank');
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
@@ -227,7 +227,7 @@ const selectItem = async (key: string) => {
|
||||
};
|
||||
|
||||
const toGithub = () => {
|
||||
window.open('https://github.com/algerkong/AlgerMusicPlayer', '_blank');
|
||||
window.open('http://donate.alger.fun', '_blank');
|
||||
};
|
||||
|
||||
const updateInfo = ref<UpdateResult>({
|
||||
|
||||
Reference in New Issue
Block a user