|  |  |  | 
|---|
|  |  |  | <template> | 
|---|
|  |  |  | <ProTabs | 
|---|
|  |  |  | <!-- <ProTabs | 
|---|
|  |  |  | v-model="queryState.type" | 
|---|
|  |  |  | name="home-tab" | 
|---|
|  |  |  | :showPaneContent="false" | 
|---|
|  |  |  | 
|---|
|  |  |  | <ProTabPane :title="`全部`" :pane-key="0"></ProTabPane> | 
|---|
|  |  |  | <ProTabPane :title="`收入`" :pane-key="EnumUserWalletTransactionType.Income"></ProTabPane> | 
|---|
|  |  |  | <ProTabPane :title="`提现`" :pane-key="EnumUserWalletTransactionType.Withdraw"></ProTabPane> | 
|---|
|  |  |  | </ProTabs> | 
|---|
|  |  |  | </ProTabs> --> | 
|---|
|  |  |  | <List> | 
|---|
|  |  |  | <IncomeDetailListItem :item="`收入:¥${toThousand(sumIncome)} `"> | 
|---|
|  |  |  | <template #title> | 
|---|
|  |  |  | 
|---|
|  |  |  | page: pageParam, | 
|---|
|  |  |  | orderInput: [{ property: 'id', order: EnumPagedListOrder.Desc }], | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | type: EnumUserWalletTransactionType.Income, | 
|---|
|  |  |  | }; | 
|---|
|  |  |  | if (Number(queryState.type)) { | 
|---|
|  |  |  | params.type = queryState.type; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | // if (Number(queryState.type)) { | 
|---|
|  |  |  | //   params.type = queryState.type; | 
|---|
|  |  |  | // } | 
|---|
|  |  |  | if (queryState.month) { | 
|---|
|  |  |  | params.createdTimeStart = dayjs(queryState.month).startOf('month').format('YYYY-MM-DD'); | 
|---|
|  |  |  | params.createdTimeEnd = dayjs(queryState.month).endOf('month').format('YYYY-MM-DD'); | 
|---|
|  |  |  | 
|---|
|  |  |  | ); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | function goIncomeDetailInfo(row: API.GetPersonalUserTransactionsQueryResultItem) { | 
|---|
|  |  |  | if (row.type === EnumUserWalletTransactionType.Income) { | 
|---|
|  |  |  | Taro.navigateTo({ | 
|---|
|  |  |  | url: `${RouterPath.incomeDetailInfo}?id=${row.id}`, | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (row.type === EnumUserWalletTransactionType.Withdraw) { | 
|---|
|  |  |  | Taro.navigateTo({ | 
|---|
|  |  |  | url: `${RouterPath.withdrawDetailInfo}?id=${row.id}`, | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | Taro.navigateTo({ | 
|---|
|  |  |  | url: `${RouterPath.incomeDetailInfo}?id=${row.id}`, | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | // if (row.type === EnumUserWalletTransactionType.Income) { | 
|---|
|  |  |  | //   Taro.navigateTo({ | 
|---|
|  |  |  | //     url: `${RouterPath.incomeDetailInfo}?id=${row.id}`, | 
|---|
|  |  |  | //   }); | 
|---|
|  |  |  | // } | 
|---|
|  |  |  | // if (row.type === EnumUserWalletTransactionType.Withdraw) { | 
|---|
|  |  |  | //   Taro.navigateTo({ | 
|---|
|  |  |  | //     url: `${RouterPath.withdrawDetailInfo}?id=${row.id}`, | 
|---|
|  |  |  | //   }); | 
|---|
|  |  |  | // } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | </script> | 
|---|
|  |  |  |  | 
|---|