信达小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

102 lines
2.5 KiB

type pageType = 0 | 1 | 2
2 months ago
interface IAppOption {
globalData: {
userInfo?: Partial<IUserInfo>
url: string
upFileUrl: string
imageUrl: string
loginState: string
isLogin: 0 | 1 | 999
loginType: 0 | 1 | 2
backPath: string
4 weeks ago
zdUserInfo: {
UserId?: string
PatientId?: number
PatientName?: string
AuditStatus?: number
UserType?: number
RelationType?: number
isFollow?: number
UserRegTime?: string
IsRootUser?: number
AgeYear?: number
AgeMonth?: number
Birth?: string
DiagnosisTime?: string
DiagnoseType?: number
DiagnoseImg?: string
CommitTime?: string
IsSick?: number
IsUseDrugs?: number
IsAliQiWei?: 0 | 1
}
[propName: string]: any
}
userInfoReadyCallback?: WechatMiniprogram.GetUserInfoSuccessCallback
waitLogin: (params?: { type?: pageType[] | 'any' }) => Promise<void>
startLogin: (callback?: () => void) => void
checkLoginType: (type: pageType[] | 'any', backPath?: string) => boolean
getMenuInfo: (arg0: WechatMiniprogram.Page.Instance<any, any>) => void
getUserInfo: (type: 0 | 1 | 2) => Promise<never>
mpBehavior: (data: { PageName: string }) => void
oldMpBehavior: (data: { PositionId: string; OperateType: string; OperateId: string }) => void
zdMpBehavior: (data: { PageName: string; doctor?: boolean }) => void
zdGetTheme: () => Promise<'PATIENT'>
zdWaitLogin: (obj?: { isReg?: boolean; loginPage?: boolean; pub?: boolean }) => Promise<any>
[propName: string]: any
2 months ago
}
interface IAgaxParams extends WechatMiniprogram.RequestOption {
showMsg?: boolean
loading?: boolean
isJSON?: boolean
2 months ago
}
declare namespace WechatMiniprogram {
export interface Wx {
ajax: (arg0: IAgaxParams) => Promise<any>
WebIM
2 months ago
}
}
interface IUserInfo {
UserId: string
IsDoctor: number
DoctorId: number
Name: string
Img: string
Telephone: string
HospitalId: string
TitleType: number
OtherTitle: string
DoctorLevel: number
Introduce: string
Department: IDepartment[]
DepartmentId: string[]
Specialty: ISpecialty[]
SpecialtyId: string[]
HospitalName: string
HospitalClassification: string
HospitalLevel: string
ProvinceName: string
CityName: string
CountyName: string
Address: string
HospitalClassificationName: string
HospitalLevelName: string
2 months ago
}
interface IDepartment {
DepartmentId: string
DepartmentName: string
DoctorId: string
2 months ago
}
interface ISpecialty {
SpecialtyId: string
SpecialtyName: string
DepartmentId: string
DoctorId: string
2 months ago
}