| | |
| | | // 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 ?? ''); |
| | | |
| | |
| | | queryFn: async () => { |
| | | return await blLifeRecharge.services.getTopStatistics( |
| | | { |
| | | channleId: '', |
| | | channleList: blLifeRecharge.accountModel.userChannles.map((x) => x.channlesNum), |
| | | }, |
| | | { |
| | | showLoading: false, |
| | |
| | | this.accountModel.setUserId(''); |
| | | this.accountModel.setPhoneNumber(''); |
| | | this.accountModel.setUserChannles([]); |
| | | this.accountModel.isBackClientUser = false; |
| | | } |
| | | |
| | | isLogin() { |
| | |
| | | 充值失败 = 50, |
| | | 已退款 = 60, |
| | | } |
| | | |
| | | export enum LifePaySwitchTypeEnum { |
| | | H5 = 10, |
| | | |
| | | 微信小程序 = 20, |
| | | 微信公众号 = 30, |
| | | } |
| | | } |
| | |
| | | /** 获取顶部统计数据 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 || {}), |
| | | }); |
| | | } |
| | |
| | | name?: string; |
| | | channlesNum?: string; |
| | | channlesId?: string; |
| | | switchType?: LifeRechargeConstants.LifePaySwitchTypeEnum; |
| | | } |
| | | |
| | | export interface LifePayUserMesssageByIduserInput { |
| | |
| | | id?: string; |
| | | } |
| | | |
| | | export interface APIgetTopStatisticsParams { |
| | | channleId?: string; |
| | | export interface TopStatisticsInput { |
| | | channleList?: string[]; |
| | | } |
| | | |
| | | export interface TopStatisticsOutput { |
| | |
| | | }); |
| | | } |
| | | |
| | | /** 获取顶部统计数据 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 || {}), |
| | | }); |
| | | } |
| | |
| | | id: string; |
| | | } |
| | | |
| | | interface APIgetTopStatisticsParams { |
| | | channleId?: string; |
| | | } |
| | | |
| | | interface APIgetUserAccountDetailParams { |
| | | id?: string; |
| | | } |
| | |
| | | name?: string; |
| | | channlesNum?: string; |
| | | channlesId?: string; |
| | | switchType?: LifePaySwitchTypeEnum; |
| | | } |
| | | |
| | | interface ChannelRateOutput { |
| | |
| | | |
| | | interface OrderInQuiryInput { |
| | | outTradeNo?: string; |
| | | outRefundNo?: string; |
| | | } |
| | | |
| | | type OrderTypeEnum = 0 | 1; |
| | |
| | | timeZone?: TimeZone; |
| | | } |
| | | |
| | | interface TopStatisticsInput { |
| | | channleList?: string[]; |
| | | } |
| | | |
| | | interface TopStatisticsOutput { |
| | | /** 创建时间 */ |
| | | creationTime?: string; |
| | |
| | | interface UserChannleDto { |
| | | /** 渠道Id */ |
| | | id?: string; |
| | | /** 渠道num */ |
| | | channlesNum?: string; |
| | | /** 渠道名 */ |
| | | name?: string; |
| | | } |