武田小程序
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.

78 lines
1.8 KiB

4 months ago
interface IAppOption {
globalData: {
userInfo?: IUserInfo;
url: string;
upFileUrl: string;
imageUrl: string;
loginState: string;
isLogin: number;
doctorId: null | number;
4 months ago
scene: null | { [key: string]: any };
4 months ago
needDeal: "" | "1";
3 months ago
caseNav: "0" | "1" | "2" | "3";
caseStatus: string;
caseStatusName: string;
newFeedback: string;
};
userInfoReadyCallback?: WechatMiniprogram.GetUserInfoSuccessCallback;
initLogin: (callback?: () => void) => void;
waitLogin: (waitLoginState?: boolean) => Promise<any>;
getMenuInfo: (arg0: WechatMiniprogram.Page.Instance<any, any>) => void;
getUserInfo: (arg0: WechatMiniprogram.Page.Instance<any, any>, arg1?: (arg0: any) => void) => void;
getApplyDoctor: () => Promise<any>;
}
interface IAgaxParams extends WechatMiniprogram.RequestOption {
showMsg?: boolean;
loading?: boolean;
isJSON?: boolean;
4 months ago
}
declare namespace WechatMiniprogram {
export interface Wx {
ajax: (arg0: IAgaxParams) => Promise<any>;
4 months ago
WebIM;
}
}
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;
}
interface IDepartment {
DepartmentId: string;
DepartmentName: string;
DoctorId: string;
}
interface ISpecialty {
SpecialtyId: string;
SpecialtyName: string;
DepartmentId: string;
DoctorId: string;
}