interface globalSystemInfo extends WechatMiniprogram.SystemInfo { capsulePosition: { top: number bottom: number right: number left: number width: number height: number } } interface pickerItem { id: string value: string } interface ISpecItem { giftId: string specName: string hysGoodsId: string integral: string unitPrice: string stock: string } type pickerList = pickerItem[] interface IAppOption { globalData: { userInfo: { 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 } url?: string upFileUrl: string imageUrl: string /** * token */ Timestamp: number loginState: string isReg: string registrationSource: number registChannel: number regBusinessId: string [propName: string]: any } updateUserInfo: (encryptedData: string, iv: string) => Promise getCode: () => Promise doLogin: () => Promise waitLogin: (obj?: { isReg?: boolean; loginPage?: boolean }) => Promise startLogin: () => void getUserInfo: (self?, update?: boolean, callback?: (userinfo) => void) => void mpBehavior: (data: { PageName: string; doctor?: boolean }) => void globalSystemInfo?: globalSystemInfo [propName: string]: any } interface Response { code: string data: T message: string } interface IAgaxParams extends WechatMiniprogram.RequestOption { showMsg?: boolean loading?: boolean isJSON?: boolean } declare namespace WechatMiniprogram { export interface Wx { ajax: (params: IAgaxParams) => Promise } }