小程序 定位不准

  positionClick: function() {
    console.log("查看地图");
    if (!app.globalData.isPosition) {
      app.checkPositionShop();
    } else {
      const la = Number(latitude);
      const lo = Number(longitude);
      //经纬度 改为客户的
      wx.openLocation({
        latitude: la,
        longitude: lo,
        scale: 16,
        address: this.data.bankAddress
      })
    }
  },

  注意 

const la = Number(latitude);
const lo = Number(longitude);
要进行类型转换!!!!!

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-08
  • 2022-12-23
  • 2021-11-19
  • 2021-04-23
  • 2022-01-16
猜你喜欢
  • 2021-09-04
  • 2021-06-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-22
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案