微信小程序页面迁移校验之前 P5任务处理之前
This commit is contained in:
22
apps/miniprogram - 副本/typings/index.d.ts
vendored
Normal file
22
apps/miniprogram - 副本/typings/index.d.ts
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
/// <reference path="./types/index.d.ts" />
|
||||
|
||||
interface IAppOption {
|
||||
globalData: {
|
||||
userInfo?: WechatMiniprogram.UserInfo
|
||||
/** 当前用户信息(认证系统) */
|
||||
authUser?: {
|
||||
userId: number
|
||||
status: string // pending / approved / rejected / disabled
|
||||
nickname?: string
|
||||
}
|
||||
/** access_token */
|
||||
token?: string
|
||||
/** refresh_token */
|
||||
refreshToken?: string
|
||||
/** 当前选中的 site_id */
|
||||
currentSiteId?: number
|
||||
/** 用户关联的店铺列表 */
|
||||
sites?: Array<{ siteId: number; siteName: string; roles: string[] }>
|
||||
}
|
||||
userInfoReadyCallback?: WechatMiniprogram.GetUserInfoSuccessCallback
|
||||
}
|
||||
Reference in New Issue
Block a user