| | |
| | | <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)} 提现:¥${toThousand(sumWithdraw)}`" |
| | |
| | | v-model="queryState.month" |
| | | type="year-month" |
| | | :max-date="nowDate" |
| | | format="YYYY-MM" |
| | | /> |
| | | <IconFont name="triangle-down" class="income-detail-time-picker-icon"></IconFont> |
| | | </div> |
| | |
| | | <IncomeDetailListItem |
| | | :title="item.title" |
| | | :funds="item.amount" |
| | | :item="item.createdTime" |
| | | :value="`钱包余额:${item.balance}`" |
| | | :item="dayjs(item.createdTime).format('YYYY-MM-DD HH:mm:ss')" |
| | | :value="`钱包余额:${toThousand(item.balance)}`" |
| | | @click="goIncomeDetailInfo(item)" |
| | | > |
| | | </IncomeDetailListItem> |
| | |
| | | ProTabs, |
| | | ProTabPane, |
| | | } from '@12333/components'; |
| | | import { useUserStore } from '@/stores/modules/user'; |
| | | import { IconFont } from '@nutui/icons-vue-taro'; |
| | | import Taro from '@tarojs/taro'; |
| | | import dayjs from 'dayjs'; |
| | |
| | | name: 'InnerPage', |
| | | }); |
| | | |
| | | const userStore = useUserStore(); |
| | | const nowDate = dayjs().toDate(); |
| | | |
| | | const queryState = reactive({ |
| | |
| | | page: pageParam, |
| | | orderInput: [{ property: 'id', order: EnumPagedListOrder.Desc }], |
| | | }, |
| | | type: EnumUserWalletTransactionType.Income, |
| | | // 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) { |
| | | Taro.navigateTo({ |
| | | url: `${RouterPath.incomeDetailInfo}&id=${row.id}`, |
| | | url: `${RouterPath.incomeDetailInfo}?id=${row.id}`, |
| | | }); |
| | | // Taro.navigateTo({ |
| | | // url: `${RouterPath.withdrawDetailInfo}`, |