| | |
| | | return await blLifeRecharge.services.getPhoneParValue({ showLoading: false }); |
| | | }, |
| | | select(data) { |
| | | return data.phoneParValue ?? []; |
| | | return data?.phoneParValue ?? []; |
| | | }, |
| | | placeholderData: () => ({} as PhoneParValueResponse), |
| | | }); |
| | |
| | | lifePayType: blLifeRecharge.constants.LifePayTypeEnum.WxPay, |
| | | openId: props.openId, |
| | | attach: Date.now().toString(), |
| | | payAppId: props.appId, |
| | | }; |
| | | let res = await blLifeRecharge.services.getPayOrderForJsAPI(params); |
| | | return res; |
| | |
| | | lifePayType?: LifeRechargeConstants.LifePayTypeEnum; |
| | | openId?: string; |
| | | attach?: string; |
| | | payAppId?: string; |
| | | } |
| | | |
| | | export interface ModelPaymentMiniPay { |
| | |
| | | |
| | | /** life pay手机验证码登录 POST /api/Account/LifePayPhoneMesssageCodeLogin */ |
| | | export async function lifePayPhoneMesssageCodeLogin( |
| | | body: API.PhoneMesssageCodeLoginInput, |
| | | body: API.LifePayPhoneMesssageCodeLoginInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<string>('/api/Account/LifePayPhoneMesssageCodeLogin', { |
| | |
| | | body: API.GetPayOrderForJsAPIInput, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.ModelPayPrePayId>('/api/LifePay/GetPayOrderForJsAPI', { |
| | | return request<API.ModelPaymentMiniPay>('/api/LifePay/GetPayOrderForJsAPI', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | |
| | | interface ElectricSupportAreaChildCityListOutput { |
| | | cityName?: string; |
| | | cityParentId?: string; |
| | | ciytId?: string; |
| | | cityId?: string; |
| | | } |
| | | |
| | | interface ElectricSupportAreaListOutput { |
| | | childCityList?: ElectricSupportAreaChildCityListOutput[]; |
| | | cityName?: string; |
| | | cityParentId?: string; |
| | | ciytId?: string; |
| | | cityId?: string; |
| | | electricType?: string; |
| | | parValue?: string[]; |
| | | rate?: number; |
| | |
| | | lifePayType?: LifePayTypeEnum; |
| | | openId?: string; |
| | | attach?: string; |
| | | payAppId?: string; |
| | | } |
| | | |
| | | interface GetPermissionListResultDto { |
| | |
| | | |
| | | type LifePayOrderTypeEnum = 10 | 20; |
| | | |
| | | interface LifePayPhoneMesssageCodeLoginInput { |
| | | /** 手机号 */ |
| | | phoneNumber: string; |
| | | } |
| | | |
| | | interface LifePayRateListOutput { |
| | | rateType?: LifePayRateTypeEnum; |
| | | rate?: number; |
| | |
| | | defaultValue?: any; |
| | | } |
| | | |
| | | interface ModelPayPrePayId { |
| | | prepayId?: string; |
| | | code?: string; |
| | | interface ModelPaymentMiniPay { |
| | | nonceStr?: string; |
| | | package?: string; |
| | | signType?: string; |
| | | paySign?: string; |
| | | timestamp?: string; |
| | | timeExpire?: string; |
| | | message?: string; |
| | | } |
| | | |