修改红包问题
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user