自动搜索买家地址
This commit is contained in:
parent
4d6f30d4a3
commit
f5530ed767
@ -69,7 +69,7 @@ function invokeNavi(from, destination) {
|
||||
if (0 == arr.length) {
|
||||
var startpos= bMapTransQQMap(from[1], from[0])
|
||||
var endpos = bMapTransQQMap(destination[1], destination[0])
|
||||
var urlStr = encodeURI('http://uri.amap.com/navigation?from='+startpos.lng+','+startpos.lat+',startpoint&to='+endpos.lng+','+endpos.lat+',endpoint&mode=car&policy=1&src=mypage&coordinate=gaode&callnative=0')
|
||||
var urlStr = encodeURI('http://uri.amap.com/navigation?from='+startpos.lng+','+startpos.lat+',起点&to='+endpos.lng+','+endpos.lat+',终点&mode=car&policy=1&src=mypage&coordinate=gaode&callnative=0')
|
||||
plus.runtime.openURL(urlStr)
|
||||
return false
|
||||
} else {
|
||||
@ -77,6 +77,27 @@ function invokeNavi(from, destination) {
|
||||
}
|
||||
}
|
||||
|
||||
function invokeSearch(address) {
|
||||
if (0 === arr.length) {
|
||||
var urlStr = encodeURI('http://api.map.baidu.com/geocoder?address='+address+'&output=html&src=cn.com.zgqlg.app')
|
||||
plus.runtime.openURL(urlStr)
|
||||
} else {
|
||||
var map = arr[0];
|
||||
var title = map.title;
|
||||
switch (title) {
|
||||
case "百度地图":
|
||||
goMaps(
|
||||
"baidumap://map/geocoder?address="+address+"&src=cn.com.zgqlg.app"
|
||||
)
|
||||
break;
|
||||
case "高德地图":
|
||||
goMaps('androidamap://poi?sourceApplication=nyx_super&keywords=' + address +
|
||||
'&output=html&src="全亮共"')
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function openMapApp(destination) {
|
||||
function realOpen(idx) {
|
||||
var shopLat = destination[0];
|
||||
@ -204,6 +225,7 @@ const app = new Vue({
|
||||
navi(destination) {
|
||||
invokeNavi(this.location, destination);
|
||||
},
|
||||
search: invokeSearch,
|
||||
loadData() {
|
||||
$.ajax({
|
||||
url: qlgUrl("app/orders/shundaiList"),
|
||||
|
@ -75,8 +75,8 @@
|
||||
<img src="../img/gothere.png" alt="">
|
||||
商家
|
||||
</span>
|
||||
<span class="between">{{each.distance_to_buyer}}</span>
|
||||
<span class="with_img">
|
||||
<span class="between" @click="search(each.userAddress)">{{each.distance_to_buyer}}</span>
|
||||
<span class="with_img" @click="search(each.userAddress)">
|
||||
<img src="../img/gothere.png" alt="">
|
||||
购户
|
||||
</span>
|
||||
|
Loading…
x
Reference in New Issue
Block a user