You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
585 B
36 lines
585 B
/**
|
|
* 查看位置
|
|
* @param {*} param0
|
|
* @param {*} callbackId
|
|
*/
|
|
export function openLocation ({
|
|
latitude,
|
|
longitude,
|
|
scale,
|
|
name,
|
|
address
|
|
}, callbackId) {
|
|
const {
|
|
invokeCallbackHandler: invoke
|
|
} = UniServiceJSBridge
|
|
|
|
getApp().$router.push({
|
|
type: 'navigateTo',
|
|
path: '/open-location',
|
|
query: {
|
|
latitude,
|
|
longitude,
|
|
scale,
|
|
name,
|
|
address
|
|
}
|
|
}, function () {
|
|
invoke(callbackId, {
|
|
errMsg: 'openLocation:ok'
|
|
})
|
|
}, function () {
|
|
invoke(callbackId, {
|
|
errMsg: 'openLocation:fail'
|
|
})
|
|
})
|
|
}
|
|
|