作者 sgj
1 个管道 的构建 失败 耗费 0 秒

打卡操作

... ... @@ -40,7 +40,7 @@
<th width="100">地址名称<span class="form-required">*</span></th>
<td>
<input required class="form-control" type="text" name="address"
type="time" id="title" value="" placeholder="请输入"/>
type="time" id="address_name" value="" placeholder="请输入"/>
</td>
</tr>
<tr>
... ... @@ -294,14 +294,16 @@
callback:function(selectedLocation){
var lat = document.getElementById('lat');
var lng = document.getElementById('lng');
var address_name = document.getElementById('address_name');
console.log(selectedLocation);
var gps=selectedLocation.location.split(",");
var gps=selectedLocation.latlng;
if (gps==''){
return false;
}
console.log(gps)
lat.value =gps['1'];
lng.value =gps['0'];
lat.value =gps.lat;
lng.value =gps.lng;
address_name.value=selectedLocation.poiaddress+selectedLocation.poiname
}
});
</script>
... ...