wupengfei
3 天以前 81c1b4bedc644c423d7f9538680a87f32390d3af
apps/cMiniApp/src/subpackages/wallet/incomeDetail/InnerPage.vue
@@ -1,5 +1,5 @@
<template>
  <!-- <ProTabs
  <ProTabs
    v-model="queryState.type"
    name="home-tab"
    :showPaneContent="false"
@@ -11,7 +11,7 @@
    <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)}`"
@@ -22,6 +22,7 @@
            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>
@@ -54,7 +55,6 @@
  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';
@@ -67,7 +67,6 @@
  name: 'InnerPage',
});
const userStore = useUserStore();
const nowDate = dayjs().toDate();
const queryState = reactive({
@@ -90,11 +89,11 @@
        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');