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: { url?: string upFileUrl: string imageUrl: string Timestamp: number waitBindDoctorId: string loginState: string initLoginInfo: Partial<{ isLogin: 0 | 1 isReg: 0 | 1 loginType: 1 | 2 guestPrivacyAgree: boolean }> [propName: string]: any } getUserInfo: (type?: 0 | 1 | 2) => Promise startLogin: (callback?: () => void) => void waitLogin: (params?: { type?: 0 | 1 | 2 | 'any' }) => Promise checkLoginType: (type: 0 | 1 | 2) => boolean mpBehavior: (data: { PageName: string; type?: 0 | 1 | 2 | 3 }) => void globalSystemInfo?: globalSystemInfo [propName: string]: any } interface Response { code: string data: T message: string } interface IAgaxParams extends WechatMiniprogram.RequestOption { showMsg?: boolean loading?: boolean loadingText?: string isJSON?: boolean } declare namespace WechatMiniprogram { export interface Wx { ajax: (params: IAgaxParams) => Promise } }