|  |  | 
 |  |  |  | 
 |  |  | <script setup lang="ts"> | 
 |  |  | import { List, ListItem, WithdrawMoneyCard } from '@12333/components'; | 
 |  |  | import { EnumUserWalletTransactionType, EnumUserWalletTransactionTypeText } from '@12333/constants'; | 
 |  |  | import { EnumUserWalletTransactionTypeText } from '@12333/constants'; | 
 |  |  | import Taro from '@tarojs/taro'; | 
 |  |  | import * as userServices from '@12333/services/apiV2/user'; | 
 |  |  | import { useQuery } from '@tanstack/vue-query'; | 
 |  |  | import dayjs from 'dayjs'; | 
 |  |  | import { toThousand } from '@12333/utils'; | 
 |  |  | import { useGetPersonalUserTransaction } from '../hooks'; | 
 |  |  |  | 
 |  |  | defineOptions({ | 
 |  |  |   name: 'InnerPage', | 
 |  |  | 
 |  |  | const router = Taro.useRouter(); | 
 |  |  | const id = router.params?.id; | 
 |  |  |  | 
 |  |  | const { | 
 |  |  |   isLoading, | 
 |  |  |   isError, | 
 |  |  |   data: detail, | 
 |  |  |   refetch, | 
 |  |  | } = useQuery({ | 
 |  |  |   queryKey: ['userServices/getPersonalUserTransaction', id], | 
 |  |  |   queryFn: async () => { | 
 |  |  |     return await userServices.getPersonalUserTransaction( | 
 |  |  |       { id: id }, | 
 |  |  |       { | 
 |  |  |         showLoading: false, | 
 |  |  |       } | 
 |  |  |     ); | 
 |  |  |   }, | 
 |  |  |   placeholderData: () => ({} as API.GetPersonalUserTransactionQueryResult), | 
 |  |  |   onSuccess(data) { | 
 |  |  |     // if (data.isExistTradeChatRecord) setTrue(); | 
 |  |  |   }, | 
 |  |  | const { detail } = useGetPersonalUserTransaction({ | 
 |  |  |   id: id, | 
 |  |  | }); | 
 |  |  | </script> | 
 |  |  |  |