修改红包问题

This commit is contained in:
cbb
2026-01-20 09:57:30 +08:00
parent 651d20b909
commit 91e445e381
4 changed files with 30 additions and 10 deletions

View File

@@ -286,6 +286,7 @@
} from '../../../../api/tui-kit'
import { navigateTo } from '../../../../utils/router'
import { useUI } from '../../../../utils/use-ui'
import { useUserStore } from '../../../../stores/user'
interface IEmits {
(e: 'closeInputToolBar'): void
@@ -610,7 +611,9 @@
})
}
const { showDialog } = useUI()
const { showToast, showDialog } = useUI()
const { getIntegral } = useUserStore()
const customRefMessage = ref(null)
/** 领取红包 */
const onClaim = (item: IMessageModel, index: number) => {
@@ -637,6 +640,8 @@
await receiveRedEnvelope({
redPacketId: data.id
})
await getIntegral()
await showToast('领取成功', 'success')
navigateTo('/pages/red-packet/details', {
id: data.id,
type: conversationType
@@ -673,6 +678,8 @@
await receiveRedEnvelope({
redPacketId: data.id
})
await getIntegral()
await showToast('领取成功', 'success')
navigateTo('/pages/red-packet/details', {
id: data.id,
type: conversationType