Commit 6661df8f authored by agping's avatar agping

修改

parent 6edfa262
...@@ -24,9 +24,14 @@ ...@@ -24,9 +24,14 @@
#search{ #search{
float: left; float: left;
} }
#reset{ #reset{
float: left; float: left;
} }
.J_preview {
width: 30px;
height: 30px;
/*border-radius: 15px;*/
}
</style> </style>
<div id="page-content-wrapper"> <div id="page-content-wrapper">
<div class="container"> <div class="container">
......
...@@ -169,6 +169,8 @@ ...@@ -169,6 +169,8 @@
/*分页代码*/ /*分页代码*/
add_page(data.data.total,pageNo,follow.pageSize,follow.getList); add_page(data.data.total,pageNo,follow.pageSize,follow.getList);
$('.J_preview').preview();
}else { }else {
alert(data['msg']); alert(data['msg']);
......
...@@ -272,7 +272,26 @@ function hideStr(str){ ...@@ -272,7 +272,26 @@ function hideStr(str){
return str; return str;
} }
} }
//进场的经纬度 和 进场地址
function adressDeal(str1,str2,address,addressA) {
if (address != undefined && address != '') {
var url = 'http://api.map.baidu.com/geocoder/v2/?ak=eIxDStjzbtH0WtU50gqdXYCz&output=json&address=' + address;
//根据地点名称获取经纬度信息
$.ajax({
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 返回值
}
}
});
}
}
//判断数组里有没有 某个字段 返回类名 客户列表 //判断数组里有没有 某个字段 返回类名 客户列表
function getLoaclId(id){ function getLoaclId(id){
var tempArr = JSON.parse(localStorage.getItem('id_details_str')); var tempArr = JSON.parse(localStorage.getItem('id_details_str'));
...@@ -316,4 +335,5 @@ function dealPunctuation(str) { ...@@ -316,4 +335,5 @@ function dealPunctuation(str) {
// $('.mark').hide(); // $('.mark').hide();
// $('.mark').remove(); // $('.mark').remove();
// }, 2000) // }, 2000)
//} //}
\ No newline at end of file
...@@ -6,8 +6,11 @@ ...@@ -6,8 +6,11 @@
<td>[%= hideTel(it[item]['user_phone']) %]</td> <td>[%= hideTel(it[item]['user_phone']) %]</td>
<td>[%= it[item]['create_time'] %]</td> <td>[%= it[item]['create_time'] %]</td>
<td>[%= it[item]['report_agent_name'] %]</td> <td>[%= it[item]['report_agent_name'] %]</td>
<td>[%= it[item]['house_title'] %]</td> <td>[%= adressDeal(it[item]['latitude'],it[item]['longitude'],it[item]['march_in_area']) %]</td>
<td>[%= it[item]['house_title'] %]</td> <td>
<img src='[%=location.href+"/static/chat_image/"+it[item]["march_in_img"] %]' class="diagram-image J_preview"
data-bimg='[%=location.href+"/static/chat_image/"+it[item]["march_in_img"] %]'>
</td>
<td> <td>
<a class="btn1 btn-success timeline" href="#modal-time" data-toggle="modal" data-id='[%= it[item]["order_id"] %]'>时间轴</a> <a class="btn1 btn-success timeline" href="#modal-time" data-toggle="modal" data-id='[%= it[item]["order_id"] %]'>时间轴</a>
</td> </td>
......
...@@ -527,15 +527,7 @@ ...@@ -527,15 +527,7 @@
</td> </td>
<td class="text-left">[%= it[item]['industry_type'] %]</td> <td class="text-left">[%= it[item]['industry_type'] %]</td>
<td class="text-center">[%= it[item]['area_demand'] %]</td> <td class="text-center">[%= it[item]['area_demand'] %]</td>
<td class="text-center"> <td class="text-center">[%= it[item]['name'] %]</td>
[% if(it[item]["source"] == 10) { %]
APP注册
[% }else if(it[item]["source"] == 20 ) { %]
经纪人新增
[% }else{ %]
老数据客户
[% } %]
</td>
</tr> </tr>
[% } %] [% } %]
[% }else{ %] [% }else{ %]
......
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