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.
38 lines
822 B
38 lines
822 B
|
5 days ago
|
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
|
||
|
|
}>
|
||
|
|
|
||
|
|
[propName: string]: any
|
||
|
|
}
|
||
|
|
getUserInfo: (type?: 0 | 1 | 2) => Promise<any>
|
||
|
|
startLogin: (callback?: () => void) => void
|
||
|
|
waitLogin: (params?: { type?: 0 | 1 | 2 | 'any' }) => Promise<void>
|
||
|
|
checkLoginType: (type: 0 | 1 | 2 | 'any') => boolean
|
||
|
|
[propName: string]: any
|
||
|
|
}
|
||
|
|
|
||
|
|
interface IAgaxParams extends WechatMiniprogram.RequestOption {
|
||
|
|
showMsg?: boolean
|
||
|
|
loading?: boolean
|
||
|
|
loadingText?: string
|
||
|
|
isJSON?: boolean
|
||
|
|
}
|
||
|
|
|
||
|
|
declare namespace WechatMiniprogram {
|
||
|
|
export interface Wx {
|
||
|
|
ajax: (params: IAgaxParams) => Promise<any>
|
||
|
|
}
|
||
|
|
}
|