diff --git a/src/views/Ranking/Couple/index.vue b/src/views/Ranking/Couple/index.vue index af7f9ac..b221418 100644 --- a/src/views/Ranking/Couple/index.vue +++ b/src/views/Ranking/Couple/index.vue @@ -965,12 +965,15 @@
- {{ record.prize?.prizeName }} + {{ record?.prize?.prizeName }} +
+
+ *{{ record?.prize?.days }}Days
@@ -1208,6 +1211,7 @@ import { showError, showSuccess } from '@/utils/toast.js' import { handleAvatarImageError, handleRewardImageError } from '@/utils/imageHandler.js' import { useCoupleStore } from '@/stores/couple' import { storeToRefs } from 'pinia' +import { useThrottle, useDebounce } from '@/utils/useDebounce.js' import { formatRewardDisplay } from '@/utils/rewardFormatter.js' import { @@ -1459,7 +1463,11 @@ const cancelSend = () => { } // 发送情书 -const sendLoveLetter = async () => { +const sendLoveLetter = useDebounce(() => { + sendLetter() //发送信件 +}, 1000) + +const sendLetter = async () => { if (!selectedCouple.value.account) return try { await apiSendLoveLetter({