admin管理员组

文章数量:1560320

使用腾讯位置服务SDK,报错fail url not in domain list,已经在服务器域名中添加了https://apis.map.qq,但是还是不行

const qqmapsdk = new QQMapWX({

key: 'asdfasdf'

});

// wx.showToast({ title: JSON.stringify(qqmapsdk.test()), icon: 'none' });return;

qqmapsdk.geocoder({

address: `${that.data.data.carOwnerInfo.areaTxt}`, //地址参数,例:固定地址,address: '北京市海淀区彩和坊路海淀西大街74号'

success: res=>{

wx.showToast({ title: JSON.stringify(res), icon: 'none' })

wx.chooseLocation({

latitude:res.result.location.lat,

longitude:res.result.location.lng,

success (resp) {

console.error(resp)

that.setData({

specificPlace:resp.name,

lat:resp.latitude,

lng:resp.longitude,

meetAddressName:resp.address

})

},

fail(e){

wx.showToast({ title: JSON.stringify(e), icon: 'none' })

}

})

},

fail(e){

wx.showToast({ title: JSON.stringify(e), icon: 'none' })

}

})

本文标签: 腾讯位置服务器报错加载