16 lines
530 B
JavaScript
16 lines
530 B
JavaScript
|
export default {
|
||
|
openMap(name, latitude, longitude) {
|
||
|
let plugin = requirePlugin('routePlan');
|
||
|
let key = '4YEBZ-SJ73Q-F5G5F-4X3FW-DBG4V-Y5BXO'; //使用在腾讯位置服务申请的key
|
||
|
let referer = '测试'; //调用插件的app的名称
|
||
|
let endPoint = JSON.stringify({ //终点
|
||
|
'name': name,
|
||
|
'latitude': Number(latitude),
|
||
|
'longitude': Number(longitude)
|
||
|
});
|
||
|
uni.navigateTo({
|
||
|
url: 'plugin://routePlan/index?key=' + key + '&referer=' + referer + '&endPoint=' + endPoint +
|
||
|
'&navigation=' + 1
|
||
|
});
|
||
|
}
|
||
|
}
|