武田基因病B开发环境
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.

74 lines
1.4 KiB

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