Kbone使用wx-map组件 修改经纬度报错?
发布于 5 年前 作者 maming 5006 次浏览 来自 问答

let that = this;

    window.addEventListener("wxload", async (query) => {

      console.log("serviceQuery wxload", query);

      wx.getLocation({

        type: "wgs84", // 默认为 wgs84 返回 gps 坐标,gcj02 返回可用于 wx.openLocation 的坐标

        success: function (res) {

          that.latitude = res.latitude;

          that.longitude = res.longitude;

        },

      });

Cannot read property ‘_wrapper’ of undefined

回到顶部