...
|
...
|
@@ -62,6 +62,16 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin |
|
|
},
|
|
|
edit: function () {
|
|
|
Controller.api.bindevent();
|
|
|
|
|
|
$("[data-toggle='addresspicker']").data("callback", function(res){
|
|
|
$("#c-province").val(res.info.addressComponents.province);
|
|
|
$("#c-city").val(res.info.addressComponents.city);
|
|
|
$("#c-area").val(res.info.addressComponents.district);
|
|
|
$("#c-lat").val(res.info.point.lat);
|
|
|
$("#c-lng").val(res.info.point.lng);
|
|
|
$("#c-address").val(res.info.address);
|
|
|
$("#c-map_info").val(JSON.stringify(res.info));
|
|
|
});
|
|
|
},
|
|
|
api: {
|
|
|
bindevent: function () {
|
...
|
...
|
|