| | |
| | | <ProTabPane title="çµè´¹è®¢å" pane-key="2"> |
| | | <ElectricOrder @goApplyRefund="goApplyRefund" @goRefundDetail="goRefundDetail" /> |
| | | </ProTabPane> |
| | | <ProTabPane title="çæ°è®¢å" pane-key="3"> |
| | | <!-- <ProTabPane title="çæ°è®¢å" pane-key="3"> |
| | | <GasOrder @goApplyRefund="goApplyRefund" @goRefundDetail="goRefundDetail" /> |
| | | </ProTabPane> |
| | | </ProTabPane> --> |
| | | </ProTabs> |
| | | </template> |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <PreviewImage :mode="openScale ? 'scaleToFill' : 'widthFix'" :style="_style" v-bind="props" /> |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | import PreviewImage from './PreviewImage.vue'; |
| | | import { previewImageProps } from './previewImage'; |
| | | import Taro from '@tarojs/taro'; |
| | | import { CSSProperties, computed, reactive, watch } from 'vue'; |
| | | |
| | | defineOptions({ |
| | | name: 'AutoWidthImage', |
| | | }); |
| | | |
| | | const props = defineProps({ |
| | | ...previewImageProps, |
| | | openScale: { |
| | | type: Boolean, |
| | | }, |
| | | }); |
| | | |
| | | const MaxHeight = 375; |
| | | const MaxWidth = 375; |
| | | |
| | | const state = reactive({ |
| | | width: 0, |
| | | height: 0, |
| | | }); |
| | | |
| | | watch( |
| | | () => props.src, |
| | | () => { |
| | | if (props.src) { |
| | | Taro.getImageInfo({ |
| | | src: props.src, |
| | | success(result) { |
| | | state.width = result.width; |
| | | state.height = result.height; |
| | | }, |
| | | }); |
| | | } |
| | | }, |
| | | { |
| | | immediate: true, |
| | | } |
| | | ); |
| | | |
| | | const _style = computed(() => { |
| | | if (state.width > state.height) { |
| | | if (props.openScale) { |
| | | const width = Math.min(MaxWidth, state.width); |
| | | const scale = width / state.width; |
| | | |
| | | return { |
| | | height: `${state.height * scale}px`, |
| | | width: `${width}px`, |
| | | } as CSSProperties; |
| | | } else { |
| | | return { |
| | | width: `${state.width}px`, |
| | | maxWidth: '100%', |
| | | }; |
| | | } |
| | | } else { |
| | | const height = Math.min(MaxHeight, state.height); |
| | | const scale = height / state.height; |
| | | return { |
| | | height: `${height}px`, |
| | | width: `${state.width * scale}px`, |
| | | } as CSSProperties; |
| | | } |
| | | }); |
| | | </script> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div :class="['preview-image-wrapper', wrapperClassName]"> |
| | | <Image @tap="handeClick" :mode="mode" :src="src" v-bind="$attrs" /> |
| | | </div> |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | import { Image, ITouchEvent } from '@tarojs/components'; |
| | | import Taro from '@tarojs/taro'; |
| | | import { previewImageProps } from './previewImage'; |
| | | import { reactive, computed, watch } from 'vue'; |
| | | |
| | | defineOptions({ |
| | | name: 'PreviewImage', |
| | | inheritAttrs: false, |
| | | }); |
| | | |
| | | const props = defineProps(previewImageProps); |
| | | |
| | | const state = reactive({ |
| | | width: 0, |
| | | height: 0, |
| | | isLoaded: false, |
| | | }); |
| | | |
| | | const mode = computed(() => (state.width > state.height ? 'heightFix' : 'widthFix')); |
| | | |
| | | watch( |
| | | () => props.src, |
| | | () => { |
| | | if (props.src) { |
| | | Taro.getImageInfo({ |
| | | src: props.src, |
| | | success(result) { |
| | | state.width = result.width; |
| | | state.height = result.height; |
| | | state.isLoaded = true; |
| | | }, |
| | | }); |
| | | } |
| | | }, |
| | | { |
| | | immediate: true, |
| | | } |
| | | ); |
| | | |
| | | function handeClick(event: ITouchEvent) { |
| | | if (props.onClick) { |
| | | props.onClick(event); |
| | | } else { |
| | | Taro.previewImage({ |
| | | current: props.src, |
| | | urls: props.urls.length > 0 ? props.urls : [props.src], |
| | | }); |
| | | } |
| | | } |
| | | </script> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | import { PropType } from 'vue'; |
| | | import { ITouchEvent } from '@tarojs/components'; |
| | | |
| | | export const previewImageProps = { |
| | | urls: { |
| | | type: Array as PropType<string[]>, |
| | | default: () => [], |
| | | }, |
| | | wrapperClassName: { |
| | | type: String, |
| | | }, |
| | | src: { |
| | | type: String, |
| | | }, |
| | | onClick: { |
| | | type: Function as PropType<(event: ITouchEvent) => void>, |
| | | }, |
| | | }; |
| | |
| | | *åä¸å·ç å
弿é´ãåå¿å¤å¹³å°éå¤å
å¼ãï¼ï¼ï¼å¨ä¸ååï¼è¯·å¡å¿
ä»ç»é
读å
¬åå
容ï¼ï¼ï¼è¥æ¥å°éçæ¥çµï¼è¯·å¿è½»ä¿¡ï¼ï¼ï¼ |
| | | </slot> |
| | | </div> |
| | | <div class="recharge-tips-list"> |
| | | <!-- <div class="recharge-tips-list"> |
| | | <div class="recharge-tips-item" v-for="(item, index) in props.tips" :key="index"> |
| | | {{ index + 1 }}.{{ item }} |
| | | </div> |
| | | </div> |
| | | </div> --> |
| | | <RichContent :content="introInfo" size="small" /> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | import RichContent from '../RichEditCard/RichContent.vue'; |
| | | import { useIntroInfo } from '../../hooks'; |
| | | import { LifeRechargeConstants } from '@life-payment/core-vue'; |
| | | |
| | | defineOptions({ |
| | | name: 'RechargeTipsView', |
| | | }); |
| | | |
| | | type Props = { |
| | | tips: string[]; |
| | | tips?: string[]; |
| | | lifePayOrderType?: LifeRechargeConstants.LifePayOrderTypeEnum; |
| | | }; |
| | | |
| | | const props = withDefaults(defineProps<Props>(), {}); |
| | | const props = withDefaults(defineProps<Props>(), { |
| | | tips: () => [], |
| | | }); |
| | | |
| | | const { introInfo } = useIntroInfo({ |
| | | lifePayOrderType: props.lifePayOrderType, |
| | | }); |
| | | </script> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div :class="['rich-edit-content', size]"> |
| | | <template v-for="(item, index) in content" :key="index"> |
| | | <!-- <AutoWidthImage |
| | | v-if="item.type === LifeRechargeConstants.EditorType.Image" |
| | | wrapperClassName="rich-content-item rich-content-image-item" |
| | | :src="setOSSLink(item.path)" |
| | | /> --> |
| | | <PreviewImage |
| | | v-if="item.type === LifeRechargeConstants.EditorType.Image" |
| | | wrapperClassName="rich-content-item rich-content-image-item" |
| | | :src="setOSSLink(item.path)" |
| | | style="max-width: 100%" |
| | | mode="widthFix" |
| | | /> |
| | | <Video |
| | | v-else-if="item.type === LifeRechargeConstants.EditorType.Video" |
| | | class="rich-content-item rich-content-video-item" |
| | | :src="setOSSLink(item.path)" |
| | | ></Video> |
| | | <div v-else class="rich-content-item rich-content-text-item"> |
| | | {{ item.content }} |
| | | </div> |
| | | </template> |
| | | </div> |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | import AutoWidthImage from '../Image/AutoWidthImage.vue'; |
| | | import { Video } from '@tarojs/components'; |
| | | import { LifeRechargeConstants, LifePayIntroInfoOutput } from '@life-payment/core-vue'; |
| | | import { setOSSLink } from '../../utils'; |
| | | import PreviewImage from '../Image/PreviewImage.vue'; |
| | | |
| | | defineOptions({ |
| | | name: 'RichContent', |
| | | }); |
| | | |
| | | type Props = { |
| | | content?: LifePayIntroInfoOutput[]; |
| | | size?: 'small' | 'default' | 'large'; |
| | | }; |
| | | |
| | | const props = withDefaults(defineProps<Props>(), { |
| | | content: () => [], |
| | | size: 'default', |
| | | }); |
| | | </script> |
| | |
| | | gasParValueList, |
| | | }; |
| | | } |
| | | |
| | | type UseIntroInfoOptions = { |
| | | lifePayOrderType: MaybeRef<LifeRechargeConstants.LifePayOrderTypeEnum>; |
| | | onSuccess?: (data: API.LifePayIntroInfoOutput[]) => any; |
| | | }; |
| | | |
| | | export function useIntroInfo({ lifePayOrderType, onSuccess }: UseIntroInfoOptions) { |
| | | const { blLifeRecharge } = useLifeRechargeContext(); |
| | | |
| | | const { data: introInfo } = useQuery({ |
| | | queryKey: ['blLifeRecharge/getIntroInfo', lifePayOrderType], |
| | | queryFn: async () => { |
| | | return await blLifeRecharge.services.getIntroInfo( |
| | | { |
| | | type: unref(lifePayOrderType), |
| | | }, |
| | | { |
| | | showLoading: false, |
| | | } |
| | | ); |
| | | }, |
| | | placeholderData: () => [] as API.LifePayIntroInfoOutput[], |
| | | onSuccess: (data) => { |
| | | onSuccess?.(data); |
| | | }, |
| | | }); |
| | | |
| | | return { introInfo }; |
| | | } |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | .preview-image-wrapper { |
| | | width: 100%; |
| | | height: 100%; |
| | | overflow: hidden; |
| | | } |
| | | |
| | | .auto-width-image-wrapper { |
| | | width: auto !important; |
| | | height: auto !important; |
| | | } |
| | | |
| | | .rich-edit-content { |
| | | .rich-content-item { |
| | | margin-bottom: 10px; |
| | | |
| | | &:last-child { |
| | | margin-bottom: 0; |
| | | } |
| | | } |
| | | |
| | | .rich-content-image-item { |
| | | display: block; |
| | | } |
| | | |
| | | .rich-content-text-item { |
| | | word-break: break-all; |
| | | white-space: pre-line; |
| | | font-size: 30px; |
| | | line-height: 50px; |
| | | color: boleGetCssVar('text-color', 'primary'); |
| | | } |
| | | |
| | | .rich-content-video-item { |
| | | width: 100%; |
| | | height: 300px; |
| | | } |
| | | |
| | | &.small { |
| | | .rich-content-text-item { |
| | | font-size: 24px; |
| | | line-height: 36px; |
| | | } |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | type NODE_ENV = 'development' | 'production'; |
| | | |
| | | export const env = process.env.NODE_ENV as NODE_ENV; |
| | | |
| | | export const OSSBaseURL = |
| | | env === 'development' |
| | | ? 'https://waterdroptest2.oss-cn-hangzhou.aliyuncs.com/' |
| | | : 'https://parkmanagement.oss-cn-hangzhou.aliyuncs.com/'; |
| | | |
| | | export const combineURLs = (baseURL: string, relativeURL: string) => { |
| | | return relativeURL |
| | | ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '') |
| | | : baseURL; |
| | | }; |
| | | |
| | | export const isAbsoluteURL = (url: string) => { |
| | | return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url); |
| | | }; |
| | | |
| | | export function setOSSLink(url: string) { |
| | | if (!url) { |
| | | return ''; |
| | | } |
| | | if (!isAbsoluteURL(url)) { |
| | | return combineURLs(OSSBaseURL, url); |
| | | } |
| | | return url; |
| | | } |
| | |
| | | export * from './validator'; |
| | | export * from './common'; |
| | | export * from './recharge'; |
| | | export * from './env'; |
| | |
| | | <div class="recharge-button-text">ç«å³å
å¼</div> |
| | | </div> |
| | | </nut-button> |
| | | <RechargeTipsView :tips="tips"> |
| | | <RechargeTipsView :lifePayOrderType="LifeRechargeConstants.LifePayOrderTypeEnum.çæ°è®¢å"> |
| | | <template #tips-top> |
| | | åä¸çµè´¹è´¦æ·å¨å
弿é´åå¿å¨å¤å¹³å°éå¤å
å¼ï¼ä¸åå请ä»ç»é
è¯»ä¸æ¹é¡»ç¥å
容ãè¥æ¥å°éçæ¥çµï¼åå¿è½»ä¿¡ï¼ï¼ï¼ |
| | | </template> |
| | |
| | | import { useGetRate, useGetGasParValue, useSetUserAccountBySelect } from '../../hooks'; |
| | | import { useGasBillRechargeContext, GasUserAccountExtraProperties } from './context'; |
| | | import { FormValidator, initLifePayType } from '../../utils'; |
| | | import { CustomerServiceTips } from '../../constants'; |
| | | import AccountAddCard from '../../components/Card/AccountAddCard.vue'; |
| | | import AccountCard from '../../components/Card/AccountCard.vue'; |
| | | import RechargeTipsView from '../../components/RechargeTipsView/RechargeTipsView.vue'; |
| | |
| | | }); |
| | | } |
| | | |
| | | const tips = [ |
| | | '平尿便
¢å
æå¡ï¼è®¢åæäº¤åï¼çæ°å°äº0 - 72 å°æ¶å
å°è´¦ï¼è¥æªè½ææ¶å°è´¦ï¼ç³»ç»å°èªå¨åèµ·éæ¬¾ã', |
| | | 'ç®åå¹³å°ä»
æ¯æä¸å½çæ°ååäº¬çæ°å
弿å¡ã', |
| | | 'ä¸å½çæ°å
弿·å·å¿
é¡»å¨â壹åæ
§âAPPçæ°ç¼´è´¹ç颿¥è¯¢å°è´¦æ·ä¿¡æ¯ï¼æ·å·ä¸º11å¼å¤´æè
5å¼å¤´ç10使°åã', |
| | | 'åäº¬çæ°ä¸æ¯ææ¬ è´¹å
å¼ï¼ä»
æ¯ææºè½è¡¨çæ·å·ï¼æ·å·æ¯9å¼å¤´11ä½çè´¦æ·è¿è¡å
å¼ã', |
| | | 'å
弿é´ï¼è¥åä¸è´¦æ·çå
弿¬¾æªå°è´¦ï¼è¯·å¿å¨å
¶ä»å¹³å°éå¤å
å¼ï¼å ä¸è¿°æä½å¯¼è´çèµéæå¤±ï¼ç±ç¨æ·èªè¡æ¿æ
ã', |
| | | '妿¥å°éçæ¥çµï¼å¯¹æ¹ä»¥ç¼´è´¹æè¯¯æä½ççç±è¦æ±å¤ç款项ï¼å¡å¿
ç«å³æé»ï¼è°¨é²è¯éªã', |
| | | 'ä¸åæ¶ï¼è¯·æ¨å¡å¿
å确填å宿´ççå¸åæ·å·ä¿¡æ¯ãå
å¼å®æåï¼å票ç±è¿è¥åæä¾ï¼æ¨å¯ç»å½ç½ä¸è¥ä¸å
ä¸è½½å¯¹åºççµåå票ã', |
| | | CustomerServiceTips, |
| | | ]; |
| | | |
| | | const confirmDialogVisible = ref(false); |
| | | |
| | | function recharge() { |
| | |
| | | <div class="recharge-button-text">ç«å³å
å¼</div> |
| | | </div> |
| | | </nut-button> |
| | | <RechargeTipsView :tips="tips" /> |
| | | <RechargeTipsView :lifePayOrderType="LifeRechargeConstants.LifePayOrderTypeEnum.è¯è´¹è®¢å" /> |
| | | </div> |
| | | <ConfirmDialog v-model:visible="confirmDialogVisible" @ok="goPay"> |
| | | <template #info> |
| | |
| | | import ConfirmDialog from '../../components/Dialog/ConfirmDialog.vue'; |
| | | import ConfirmDialogInfoItem from '../../components/Dialog/ConfirmDialogInfoItem.vue'; |
| | | import { useGetRate, useGetPhoneParValue, useSetUserAccountBySelect } from '../../hooks'; |
| | | import { CustomerServiceTips } from '../../constants'; |
| | | import AccountAddCard from '../../components/Card/AccountAddCard.vue'; |
| | | import AccountCard from '../../components/Card/AccountCard.vue'; |
| | | import { usePhoneBillRechargeContext, PhoneUserAccountExtraProperties } from './context'; |
| | |
| | | }); |
| | | } |
| | | |
| | | const tips = [ |
| | | '平尿便
¢å
æå¡ï¼è®¢åæäº¤åï¼è¯è´¹å°äº0 - 24å°æ¶å
å°è´¦ãè¥æªè½ææ¶å°è´¦ï¼ç³»ç»å°èªå¨åèµ·éæ¬¾ã', |
| | | 'å
弿é´ï¼è¥åä¸å·ç 款项æªå°è´¦ï¼è¯·å¿å¨å
¶ä»å¹³å°éå¤å
å¼ï¼ä¸»å¯å¡ä¸å¯åæ¶å
å¼ãå ä¸è¿°æä½å¯¼è´çèµéæå¤±ï¼ç±ç¨æ·èªè¡æ¿æ
ã', |
| | | 'æ¬å¹³å°è¯è´¹å
弿å¡ä¸éç¨äºå·²åæºå·ç ãçµä¿¡å·ç è¥ææ¬ è´¹ï¼ä¹æ æ³å®æå
å¼ãçµä¿¡å·²å®æç»´æ¤çåºåå
æ¬ï¼å¹¿ä¸ãæ±èãæ¹åãåå·ãæ±è¥¿ãæ²³åãæ²³åãç¦å»ºãè¾½å®ãå
¶å®åºåæ£å¨åæ¹æ¬¡è¿è¡ç»´æ¤ä¸ï¼å¨æ¤æé´å¯è½ä¼åºç°å
å¼ä¸æåå¹¶èªå¨é款çæ
åµï¼è¯·æ¨è°
è§£ã', |
| | | '妿¥å°éçæ¥çµï¼å¯¹æ¹ä»¥ç¼´è´¹æè¯¯æä½ççç±è¦æ±å¤ç款项ï¼å¡å¿
ç«å³æé»ï¼è°¨é²è¯éªã', |
| | | 'å
å¼å票ç±è¿è¥åæä¾ï¼æ¨å¯ç»å½ç½ä¸è¥ä¸å
ä¸è½½çµåå票ã', |
| | | CustomerServiceTips, |
| | | ]; |
| | | |
| | | const confirmDialogVisible = ref(false); |
| | | |
| | | function recharge() { |
| | |
| | | <div class="recharge-button-text">ç«å³å
å¼</div> |
| | | </div> |
| | | </nut-button> |
| | | <RechargeTipsView :tips="tips" /> |
| | | <RechargeTipsView :lifePayOrderType="LifeRechargeConstants.LifePayOrderTypeEnum.çµè´¹è®¢å" /> |
| | | </div> |
| | | <ConfirmDialog v-model:visible="confirmDialogVisible" @ok="goPay"> |
| | | <template #tips> |
| | |
| | | import ConfirmDialogInfoItem from '../../components/Dialog/ConfirmDialogInfoItem.vue'; |
| | | import { useGetRate, useGetElectricParValue, useSetUserAccountBySelect } from '../../hooks'; |
| | | import { FormValidator, initLifePayType } from '../../utils'; |
| | | import { CustomerServiceTips } from '../../constants'; |
| | | import AccountAddCard from '../../components/Card/AccountAddCard.vue'; |
| | | import AccountCard from '../../components/Card/AccountCard.vue'; |
| | | import { useElectricBillRechargeContext, ElectricUserAccountExtraProperties } from './context'; |
| | |
| | | }); |
| | | } |
| | | |
| | | const tips = [ |
| | | '平尿便
¢å
æå¡ï¼è®¢åæäº¤åï¼çµè´¹å°äº0 - 72 å°æ¶å
å°è´¦ï¼è¥æªè½ææ¶å°è´¦ï¼ç³»ç»å°èªå¨åèµ·éæ¬¾ã', |
| | | 'å
弿é´ï¼è¥åä¸è´¦æ·çå
弿¬¾æªå°è´¦ï¼è¯·å¿å¨å
¶ä»å¹³å°éå¤å
å¼ï¼å ä¸è¿°æä½å¯¼è´çèµéæå¤±ï¼ç±ç¨æ·èªè¡æ¿æ
ã', |
| | | '为确ä¿å
å¼é¡ºå©è¿è¡ï¼ç®åå¹³å°ä¸æ¯æå¯¹æ¬ 款éé¢è¶
è¿1000å
çè´¦æ·è¿è¡å
å¼ï¼ä¸æ¯æ¬¡å
å¼éé¢å¿
é¡»é«äºæ¬ è´¹æ»é¢ã', |
| | | '妿¥å°éçæ¥çµï¼å¯¹æ¹ä»¥ç¼´è´¹æè¯¯æä½ççç±è¦æ±å¤ç款项ï¼å¡å¿
ç«å³æé»ï¼è°¨é²è¯éªã', |
| | | 'ä¸åæ¶ï¼è¯·æ¨å¡å¿
å确填å宿´ççå¸åæ·å·ä¿¡æ¯ãå
å¼å®æåï¼å票ç±è¿è¥åæä¾ï¼æ¨å¯ç»å½ç½ä¸è¥ä¸å
ä¸è½½å¯¹åºççµåå票ã', |
| | | CustomerServiceTips, |
| | | ]; |
| | | |
| | | const confirmDialogVisible = ref(false); |
| | | |
| | | function recharge() { |
| | |
| | | external: Object.keys(pkg.peerDependencies), |
| | | }, |
| | | }, |
| | | define: { |
| | | 'process.env.NODE_ENV': JSON.stringify('production'), |
| | | }, |
| | | plugins: [ |
| | | vue(), |
| | | // jsxãtsxè¯æ³æ¯æ |
| | |
| | | export default defineConfig({ |
| | | plugins: [moduleTools()], |
| | | buildPreset: 'npm-library', |
| | | // buildConfig: { |
| | | // define: { |
| | | // 'process.env.NODE_ENV': process.env.NODE_ENV || 'production', |
| | | // }, |
| | | // }, |
| | | }); |
| | |
| | | [GasOrgCodeEnum.ä¸ççæ°]: 'ä¸ççæ°', |
| | | [GasOrgCodeEnum.åäº¬çæ°]: 'åäº¬çæ°', |
| | | }; |
| | | |
| | | export enum EditorType { |
| | | /** |
| | | * ææ¬ |
| | | */ |
| | | Text, |
| | | /** |
| | | * å¾ç |
| | | */ |
| | | Image, |
| | | /** |
| | | * è§é¢ |
| | | */ |
| | | Video, |
| | | /** |
| | | * å¯ææ¬ |
| | | */ |
| | | Rich, |
| | | /** |
| | | * 微信çå
容 |
| | | */ |
| | | WXContent, |
| | | } |
| | | } |
| | |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** è·åé¡»ç¥ GET /api/LifePay/GetIntroInfo */ |
| | | async getIntroInfo(params: APIgetIntroInfoParams, options?: RequestConfig) { |
| | | return this.request<LifePayIntroInfoOutput[]>('/api/LifePay/GetIntroInfo', { |
| | | method: 'GET', |
| | | params: { |
| | | ...params, |
| | | }, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | } |
| | | |
| | | export interface PhoneMesssageCodeLoginInput { |
| | |
| | | checkChannelId?: string; |
| | | orderNo?: string; |
| | | } |
| | | |
| | | export interface APIgetIntroInfoParams { |
| | | type?: LifeRechargeConstants.LifePayOrderTypeEnum; |
| | | } |
| | | |
| | | export interface LifePayIntroInfoOutput { |
| | | type?: IntroInfoTypeEnum; |
| | | lifePayType?: LifeRechargeConstants.LifePayOrderTypeEnum; |
| | | /** æè¦ */ |
| | | contentSummary?: string; |
| | | /** ææ¬å
容 */ |
| | | content?: string; |
| | | /** å¾ç/è§é¢è·¯å¾ */ |
| | | path?: string; |
| | | /** æåº */ |
| | | sequence?: number; |
| | | } |
| | | |
| | | export type IntroInfoTypeEnum = 0 | 1 | 2 | 3 | 4; |
| | |
| | | }); |
| | | } |
| | | |
| | | /** æç»è´¹è´¹çé
ç½® POST /api/LifePay/CreateEditLifePayPremium */ |
| | | export async function createEditLifePayPremium( |
| | | body: API.LifePayPremiumInput[], |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<number>('/api/LifePay/CreateEditLifePayPremium', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** ææ£é
ç½® POST /api/LifePay/CreateEditLifePayRate */ |
| | | export async function createEditLifePayRate( |
| | | body: API.LifePayRateInput[], |
| | |
| | | }); |
| | | } |
| | | |
| | | /** é¡»ç¥é
ç½® POST /api/LifePay/EditIntroInfo */ |
| | | export async function editIntroInfo(body: API.LifePayIntroInfoInput, options?: API.RequestConfig) { |
| | | return request<number>('/api/LifePay/EditIntroInfo', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** è·åç¨æ·æ·å·åé¡µæ°æ® POST /api/LifePay/GetAccountPage */ |
| | | export async function getAccountPage( |
| | | body: API.QueryUserAccountListInput, |
| | |
| | | }); |
| | | } |
| | | |
| | | /** è·åé¡»ç¥ GET /api/LifePay/GetIntroInfo */ |
| | | export async function getIntroInfo( |
| | | // å å çæçParamç±»å (ébodyåæ°swaggeré»è®¤æ²¡æçæå¯¹è±¡) |
| | | params: API.APIgetIntroInfoParams, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.LifePayIntroInfoOutput[]>('/api/LifePay/GetIntroInfo', { |
| | | method: 'GET', |
| | | params: { |
| | | ...params, |
| | | }, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** è·åå
¨é¨ç¼´è´¹æ¸ é GET /api/LifePay/GetLifePayChannlesAllList */ |
| | | export async function getLifePayChannlesAllList(options?: API.RequestConfig) { |
| | | return request<API.CreateEditPayChannelsInput[]>('/api/LifePay/GetLifePayChannlesAllList', { |
| | | method: 'GET', |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** è·åæ¸ é详æ
GET /api/LifePay/GetLifePayChannlesDto */ |
| | | export async function getLifePayChannlesDto( |
| | | // å å çæçParamç±»å (ébodyåæ°swaggeré»è®¤æ²¡æçæå¯¹è±¡) |
| | |
| | | }); |
| | | } |
| | | |
| | | /** è·åæç»è´¹è´¹ç GET /api/LifePay/GetPremium */ |
| | | export async function getPremium(options?: API.RequestConfig) { |
| | | return request<API.LifePayPremiumListOutput[]>('/api/LifePay/GetPremium', { |
| | | method: 'GET', |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** è·åææ£ GET /api/LifePay/GetRate */ |
| | | export async function getRate(options?: API.RequestConfig) { |
| | | return request<API.LifePayRateListOutput[]>('/api/LifePay/GetRate', { |
| | |
| | | moduleId?: string; |
| | | } |
| | | |
| | | interface APIgetIntroInfoParams { |
| | | type?: LifePayOrderTypeEnum; |
| | | } |
| | | |
| | | interface APIgetLifePayChannlesDtoParams { |
| | | id?: string; |
| | | } |
| | |
| | | channlesName?: string; |
| | | channlesNum?: string; |
| | | channlesRate?: number; |
| | | channlesRakeRate?: number; |
| | | switchType?: LifePaySwitchTypeEnum; |
| | | status?: LifePayChannelsStatsEnum; |
| | | channlesType?: LifePayChannlesTypeEnum; |
| | |
| | | roleNames: string[]; |
| | | } |
| | | |
| | | type IntroInfoTypeEnum = 0 | 1 | 2 | 3 | 4; |
| | | |
| | | interface IStringValueType { |
| | | name?: string; |
| | | properties?: Record<string, any>; |
| | |
| | | |
| | | type LifePayChannlesTypeEnum = 10 | 20; |
| | | |
| | | interface LifePayIntroInfoDetail { |
| | | type?: IntroInfoTypeEnum; |
| | | /** æè¦ */ |
| | | contentSummary?: string; |
| | | /** ææ¬å
容 */ |
| | | content?: string; |
| | | /** å¾ç/è§é¢è·¯å¾ */ |
| | | path?: string; |
| | | /** æåº */ |
| | | sequence?: number; |
| | | } |
| | | |
| | | interface LifePayIntroInfoInput { |
| | | lifePayType?: LifePayOrderTypeEnum; |
| | | /** æ´æ°å
容 */ |
| | | data?: LifePayIntroInfoDetail[]; |
| | | } |
| | | |
| | | interface LifePayIntroInfoOutput { |
| | | type?: IntroInfoTypeEnum; |
| | | lifePayType?: LifePayOrderTypeEnum; |
| | | /** æè¦ */ |
| | | contentSummary?: string; |
| | | /** ææ¬å
容 */ |
| | | content?: string; |
| | | /** å¾ç/è§é¢è·¯å¾ */ |
| | | path?: string; |
| | | /** æåº */ |
| | | sequence?: number; |
| | | } |
| | | |
| | | interface LifePayOrderListOutput { |
| | | id?: string; |
| | | userId?: string; |
| | |
| | | phoneNumber: string; |
| | | } |
| | | |
| | | interface LifePayPremiumInput { |
| | | premiumType?: LifePayTypeEnum; |
| | | rate?: number; |
| | | id?: string; |
| | | } |
| | | |
| | | interface LifePayPremiumListOutput { |
| | | premiumType?: LifePayTypeEnum; |
| | | rate?: number; |
| | | id?: string; |
| | | } |
| | | |
| | | interface LifePayRateInput { |
| | | rateType?: LifePayRateTypeEnum; |
| | | rate?: number; |