收藏
回答

wx.getSetting在IOS下无法调用

问题模块
客户端

在app.js中的onLaunch中调用,本地IDE测试正常,在IOS中预览无法调用wx.getSetting函数。


getUserInfo: function () {
        var that = this
        wx.getSetting({
            success: (data) => {
                console.log(data)
                if (data.authSetting["scope.userInfo"]) {
                    wx.getUserInfo({
                        success: function (res) {
                            console.log(res)
                            that.globalData.userInfo = res.userInfo
                        }
                    })
                }
            }
        })
    },


最后一次编辑于  2017-07-30  (未经腾讯允许,不得转载)
邀请回答
复制链接收藏投诉关注问题回答