function() {
const uAgent = navigator.userAgent
const isAndroid = uAgent.indexOf('Android') > -1 || uAgent.indexOf('Linux') > -1
let url = ''
if (isAndroid) {
url = `androidamap://viewMap?sourceApplication=appname&poiname=${this.mnpdInfos.mnpdName}&lat=${this.mnpdInfos.lat}&lon=${this.mnpdInfos.longitude}&dev=0`
// 未安装app不会跳网页错误页,window.open()和location会跳错误页
var ifr = document.createElement('iframe')
ifr.src = url
ifr.style.display = 'none'
document.body.appendChild(ifr)
window.setTimeout(function() {
document.body.removeChild(ifr)
Toast('请先安装高德地图')
}, 500)
} else {
url = `ios