巫溪会议

This commit is contained in:
liuye
2024-04-19 10:18:12 +08:00
parent 0c5861e7cd
commit 051dd2b0e6

View File

@@ -38,7 +38,7 @@ export default {
mapLib: null, mapLib: null,
lat: '31.39439', lat: '31.39439',
lng: '109.559364', lng: '109.559364',
address: '水韵酒店' address: '水韵酒店',
} }
}, },
@@ -72,8 +72,10 @@ export default {
openMap() { openMap() {
var userAgent = navigator.userAgent.toLowerCase(); var userAgent = navigator.userAgent.toLowerCase();
if (userAgent.indexOf('micromessenger') !== -1) { if (userAgent.indexOf('micromessenger') !== -1) {
// return this.$u.toast("请点击右上角[...],在浏览器打开。") this.$confirm('请点击右上角[...],在浏览器打开。', {
this.$confirm('请点击右上角[...],在浏览器打开。', '提示') showCancel: false,
confirmText: '关闭'
})
} else { } else {
window.location.href = `amapuri://route/plan/?sourceApplication=amap&did=&dlat=${this.lat}&dlon=${this.lng}&dname=巫溪县水韵酒店&dev=0&t=0` window.location.href = `amapuri://route/plan/?sourceApplication=amap&did=&dlat=${this.lat}&dlon=${this.lng}&dname=巫溪县水韵酒店&dev=0&t=0`
} }