zhengyiming
2025-04-01 074b4c463c4be9bf5df11fa08779a523fdb983b1
fix: 四期需求
7个文件已修改
57 ■■■■■ 已修改文件
apps/taro/src/subpackages/my/shareQrcode/InnerPage.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packages/components/src/views/Mine/Dashboard.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
packages/core/src/lifeRecharge.ts 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packages/core/src/lifeRechargeConstants.ts 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packages/core/src/lifeRechargeServices.ts 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packages/services/api/LifePay.ts 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packages/services/api/typings.d.ts 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/taro/src/subpackages/my/shareQrcode/InnerPage.vue
@@ -23,7 +23,11 @@
// const { virtualUserInfo } = useUser();
const { blLifeRecharge } = useLifeRechargeContext();
const userChannles = computed(() => blLifeRecharge.accountModel.userChannles ?? []);
const userChannles = computed(() =>
  (blLifeRecharge.accountModel.userChannles ?? []).filter(
    (x) => x.switchType !== blLifeRecharge.constants.LifePaySwitchTypeEnum.微信小程序
  )
);
const channlesType = ref(userChannles.value[0]?.channlesNum ?? '');
packages/components/src/views/Mine/Dashboard.vue
@@ -75,7 +75,7 @@
  queryFn: async () => {
    return await blLifeRecharge.services.getTopStatistics(
      {
        channleId: '',
        channleList: blLifeRecharge.accountModel.userChannles.map((x) => x.channlesNum),
      },
      {
        showLoading: false,
packages/core/src/lifeRecharge.ts
@@ -49,6 +49,7 @@
    this.accountModel.setUserId('');
    this.accountModel.setPhoneNumber('');
    this.accountModel.setUserChannles([]);
    this.accountModel.isBackClientUser = false;
  }
  isLogin() {
packages/core/src/lifeRechargeConstants.ts
@@ -183,4 +183,11 @@
    充值失败 = 50,
    已退款 = 60,
  }
  export enum LifePaySwitchTypeEnum {
    H5 = 10,
    微信小程序 = 20,
    微信公众号 = 30,
  }
}
packages/core/src/lifeRechargeServices.ts
@@ -379,14 +379,15 @@
  /** 获取顶部统计数据 GET /api/LifePay/GetTopStatistics */
  async getTopStatistics(
    // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
    params: APIgetTopStatisticsParams,
    body: TopStatisticsInput,
    options?: RequestConfig
  ) {
    return this.request<TopStatisticsOutput>('/api/LifePay/GetTopStatistics', {
      method: 'GET',
      params: {
        ...params,
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    });
  }
@@ -849,6 +850,7 @@
  name?: string;
  channlesNum?: string;
  channlesId?: string;
  switchType?: LifeRechargeConstants.LifePaySwitchTypeEnum;
}
export interface LifePayUserMesssageByIduserInput {
@@ -858,8 +860,8 @@
  id?: string;
}
export interface APIgetTopStatisticsParams {
  channleId?: string;
export interface TopStatisticsInput {
  channleList?: string[];
}
export interface TopStatisticsOutput {
packages/services/api/LifePay.ts
@@ -548,17 +548,14 @@
  });
}
/** 获取顶部统计数据 GET /api/LifePay/GetTopStatistics */
export async function getTopStatistics(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.APIgetTopStatisticsParams,
  options?: API.RequestConfig
) {
/** 获取顶部统计数据 POST /api/LifePay/GetTopStatistics */
export async function getTopStatistics(body: API.TopStatisticsInput, options?: API.RequestConfig) {
  return request<API.TopStatisticsOutput>('/api/LifePay/GetTopStatistics', {
    method: 'GET',
    params: {
      ...params,
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
packages/services/api/typings.d.ts
@@ -318,10 +318,6 @@
    id: string;
  }
  interface APIgetTopStatisticsParams {
    channleId?: string;
  }
  interface APIgetUserAccountDetailParams {
    id?: string;
  }
@@ -532,6 +528,7 @@
    name?: string;
    channlesNum?: string;
    channlesId?: string;
    switchType?: LifePaySwitchTypeEnum;
  }
  interface ChannelRateOutput {
@@ -1742,6 +1739,7 @@
  interface OrderInQuiryInput {
    outTradeNo?: string;
    outRefundNo?: string;
  }
  type OrderTypeEnum = 0 | 1;
@@ -2135,6 +2133,10 @@
    timeZone?: TimeZone;
  }
  interface TopStatisticsInput {
    channleList?: string[];
  }
  interface TopStatisticsOutput {
    /** 创建时间 */
    creationTime?: string;
@@ -2285,6 +2287,8 @@
  interface UserChannleDto {
    /** 渠道Id */
    id?: string;
    /** 渠道num */
    channlesNum?: string;
    /** 渠道名 */
    name?: string;
  }