12345678910111213141516171819202122232425262728293031323334 |
- /// <reference path="./types/index.d.ts" />
- interface VoiceProps {
- noMute: boolean,
- pullUrls: string[],
- pushUrl?: boolean
- }
- interface GlobalUserInfo extends WechatMiniprogram.UserInfo {
- phoneNumber?: string
- wxUserId?: string
- }
- interface LoginProps {
- isLogin: boolean
- }
- interface GlobalDataProps {
- userInfo?: GlobalUserInfo,
- voiceProps?: VoiceProps,
- token: string,
- isLogin: boolean
- }
- interface IAppOption {
- globalData: GlobalDataProps
- userInfoReadyCallback?: WechatMiniprogram.GetUserInfoSuccessCallback,
- addVoicePropsListener?: (cb: Function) => void
- removeVoicePropsListener?: (cb: Function) => void
- setVoiceProps?: (param: VoiceProps) => void
- setLogin: (status: boolean) => Promise<boolean>
- watch: (key: string, method: Function) => void
- unwatch: (key: string, method: Function) => void
- resetUserInfo: () => void
- }
|