智能照明系统APP-本地串口
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.
 
 
 
 
 
 
LightingSystemApp-serial/.svn/pristine/d9/d9853af7e1fd30eed95cdc24652...

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'
})
})
}