Commit ada15255 authored by agping's avatar agping

实收明细优化

parent 46c624a5
......@@ -93,7 +93,7 @@
<table class="table table-striped table-bordered table-hover table-condensed">
<thead>
<tr>
<td colspan="10">
<td colspan="12">
<form id="form_search">
<span class="fore-span ld-Marheight">收佣日期:</span>
<input class="form-control btn4 ld-Marheight" value="" data-rule-phoneus="false" data-rule-required="false" id="create_time" name="start_date" type="date">
......
......@@ -273,22 +273,22 @@ function hideStr(str){
}
}
//进场的经纬度 和 进场地址
function adressDeal(str1,str2,address,addressA) {
function adressDeal(str1,str2,address) {
if (address != undefined && address != '') {
var url = 'http://api.map.baidu.com/geocoder/v2/?ak=eIxDStjzbtH0WtU50gqdXYCz&output=json&address=' + address;
//根据地点名称获取经纬度信息
$.ajax({
async: false,
type: "POST",
url: url,
dataType: "JSONP",
success: function (data) {
if (parseInt(data.status) == 0) {
addressA = data.result.location.lng;
console.log(addressA)
return addressA//怎么从ajax 返回值
//addressA = data.result.location.lng;
}
}
});
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment