zhengyiming
2025-03-25 174f774704bbab83061288522ec4fbdfba1f6716
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import type { InjectionKey, UnwrapNestedRefs, Ref } from 'vue';
import { inject } from 'vue';
import { UseStepperReturn } from 'senin-mini/hooks';
 
type PhoneBillRechargeSteps = 'step1' | 'step2';
 
export interface PhoneBillRechargeContext
  extends UseStepperReturn<
    PhoneBillRechargeSteps,
    PhoneBillRechargeSteps[],
    PhoneBillRechargeSteps
  > {
  //   form: UnwrapNestedRefs<{
  //     ispCode: string;
  //     phone: string;
  //     parValue: number;
  //     name: string;
  //   }>;
}
 
export const PhoneBillRechargeContextKey: InjectionKey<PhoneBillRechargeContext> = Symbol(
  'PhoneBillRechargeContextKey'
);
 
export function usePhoneBillRechargeContext() {
  return inject(PhoneBillRechargeContextKey);
}
 
export type PhoneUserAccountExtraProperties = {
  ispCode: string;
  phone: string;
  name: string;
  remark: string;
};