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