123456789101112131415161718192021 |
- import { handleAppLaunch } from './utils/app-init'
- App({
- globalData: {
- userInfo: null,
- hasUserInfo: false,
- canIUse: wx.canIUse('button.open-type.getUserInfo'),
- canIUseGetUserProfile: false,
- canIUseOpenData: wx.canIUse('open-data.type.userAvatarUrl') && wx.canIUse('open-data.type.userNickName')
- },
- onLaunch(options) {
-
- handleAppLaunch(options)
-
- if (wx.getUserProfile) {
- this.globalData.canIUseGetUserProfile = true
- }
- }
- })
|