|
|
@ -67,6 +67,7 @@ class MyDetailPage extends LazyRenderable |
|
|
coupon_money: "{$order['coupon_money']}", |
|
|
coupon_money: "{$order['coupon_money']}", |
|
|
delivery_money: "{$order['delivery_money']}", |
|
|
delivery_money: "{$order['delivery_money']}", |
|
|
horseman_name: "{$order['horseman_name']}", |
|
|
horseman_name: "{$order['horseman_name']}", |
|
|
|
|
|
horseman_id:"{$order['horseman_id']}", |
|
|
distance: "{$order['delivery_distance']}", |
|
|
distance: "{$order['delivery_distance']}", |
|
|
orders: JSON.parse(orders), |
|
|
orders: JSON.parse(orders), |
|
|
show_refund: JSON.parse(show_refund), |
|
|
show_refund: JSON.parse(show_refund), |
|
|
@ -83,7 +84,9 @@ class MyDetailPage extends LazyRenderable |
|
|
show_map:false, |
|
|
show_map:false, |
|
|
close_map:true, |
|
|
close_map:true, |
|
|
is_show:true, |
|
|
is_show:true, |
|
|
map:"" |
|
|
|
|
|
|
|
|
map:"", |
|
|
|
|
|
h_lng:0, |
|
|
|
|
|
h_lat:0 |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
refundNote(name,order_goods_id,order_child_id) { |
|
|
refundNote(name,order_goods_id,order_child_id) { |
|
|
@ -136,7 +139,32 @@ class MyDetailPage extends LazyRenderable |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
showMap() { |
|
|
showMap() { |
|
|
this.is_show=true; |
|
|
|
|
|
|
|
|
that = this; |
|
|
|
|
|
if (that.state==3&&that.horseman_id>0){ |
|
|
|
|
|
$.ajax({ |
|
|
|
|
|
url: "coordinate", |
|
|
|
|
|
type: "get", |
|
|
|
|
|
contentType: "text/html; charset=utf-8", |
|
|
|
|
|
dataType: "json", |
|
|
|
|
|
data: { |
|
|
|
|
|
horseman_id: that.horseman_id |
|
|
|
|
|
}, |
|
|
|
|
|
success: function (res) { |
|
|
|
|
|
if (res.code==200){ |
|
|
|
|
|
that.h_lng = res.data.lng; |
|
|
|
|
|
that.h_lat = res.data.lat; |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
error: function (xhr, err) { |
|
|
|
|
|
console.log("错误", err) |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.is_show=true; |
|
|
if (!this.show_map){ |
|
|
if (!this.show_map){ |
|
|
this.show_map = true; |
|
|
this.show_map = true; |
|
|
this.close_map =false; |
|
|
this.close_map =false; |
|
|
@ -223,11 +251,11 @@ class MyDetailPage extends LazyRenderable |
|
|
"anchor": { x: 16, y: 32 }, |
|
|
"anchor": { x: 16, y: 32 }, |
|
|
"src": 'https://mapapi.qq.com/web/lbs/javascriptGL/demo/img/end.png' |
|
|
"src": 'https://mapapi.qq.com/web/lbs/javascriptGL/demo/img/end.png' |
|
|
}), |
|
|
}), |
|
|
"marker": new TMap.MarkerStyle({ |
|
|
|
|
|
|
|
|
"horseman": new TMap.MarkerStyle({ |
|
|
"width": 45, |
|
|
"width": 45, |
|
|
"height": 52, |
|
|
"height": 52, |
|
|
"anchor": { x: 16, y: 32 }, |
|
|
"anchor": { x: 16, y: 32 }, |
|
|
"src": "../uploads/map/561.png" |
|
|
|
|
|
|
|
|
"src": "../uploads/map/56.png" |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
geometries: [{ |
|
|
geometries: [{ |
|
|
@ -240,10 +268,10 @@ class MyDetailPage extends LazyRenderable |
|
|
"position": new TMap.LatLng(that.user_lat,that.user_lng) |
|
|
"position": new TMap.LatLng(that.user_lat,that.user_lng) |
|
|
},{ //点标注数据数组
|
|
|
},{ //点标注数据数组
|
|
|
"id": "horseman", |
|
|
"id": "horseman", |
|
|
"styleId": "marker", |
|
|
|
|
|
"position": new TMap.LatLng(22.805566,108.412079), |
|
|
|
|
|
|
|
|
"styleId": "horseman", |
|
|
|
|
|
"position": new TMap.LatLng(that.h_lat,that.h_lng), |
|
|
"properties": { |
|
|
"properties": { |
|
|
"title": "marker" |
|
|
|
|
|
|
|
|
"title": "horseman" |
|
|
} |
|
|
} |
|
|
}] |
|
|
}] |
|
|
}); |
|
|
}); |
|
|
|