微信公众号调用腾讯地图选址

554 阅读1分钟
 注:referer要和设置的key标题一致
        openLocation(){
            var url = encodeURIComponent(location.href);
            window.location.href = `https://apis.map.qq.com/tools/locpicker?search=1&type=0&backurl=${url}&key=xxx&referer=xxx`;
        },