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.
96 lines
2.0 KiB
96 lines
2.0 KiB
|
1 week 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: {
|
||
|
|
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<any>
|
||
|
|
getCode: () => Promise<any>
|
||
|
|
doLogin: () => Promise<any>
|
||
|
|
waitLogin: (obj?: { isReg?: boolean; loginPage?: boolean; pub?: boolean }) => Promise<any>
|
||
|
|
startLogin: () => void
|
||
|
|
getUserInfo: (self?, update?: boolean, callback?: (userinfo) => void) => void
|
||
|
|
mpBehavior: (data: { PageName: string; doctor?: boolean }) => void
|
||
|
|
globalSystemInfo?: globalSystemInfo
|
||
|
|
[propName: string]: any
|
||
|
|
}
|
||
|
|
|
||
|
|
interface Response<T> {
|
||
|
|
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<any>
|
||
|
|
}
|
||
|
|
}
|