朗逸手大众朗逸自动舒适版版1.6好吗?


询底价';
})
html += '';
$(".dealer").show();
$(".ina_seller").append(html);
}
})
}
function get_auto_dealer(){
$.ajax({
url: '//api.news18a.com/substation/stationData/getSellerData.html',
type: 'get',
data: { 'fromid': siteId, 'city_id': ina_cityId, 'bseries_id':seriesId,'data_num':12},
cache: true,
dataType: "jsonp",
contentType: "application/x-www-form-urlencoded; charset=utf-8",
jsonp: "callback",
jsonpCallback: 'callback_fn',
success: function (res) {
if(res.data.length > 0){
var html = '';
var seller = res.data;
for(var i in seller){
if(i % 2 == 0 && i != 0) html += '';
$(".dealer").show();
$(".ina_seller").append(html);
var script = document.createElement("script");
script.type = "text/javascript";
script.src = "//api.map.baidu.com/api?v=3.0&ak=8R9rLKr82gC2SaZarEGsOy5v&callback=init";
document.body.appendChild(script);
}else{
get_bitauto_dealer();
}
}
})
}
function seller_map(obj) {
var address = $(obj).attr('selleraddr');
var name = $(obj).attr('sellername');
var myGeo = new BMap.Geocoder();
myGeo.getPoint(address, function(point){
if(point){
var hiddenInput="";
$("#tomapfrm").html(hiddenInput);
$('#tomapfrm').submit();
}
},ina_cityName);
}
//定位
function option(){
if( cityId.length == 0
ina_cityId.length == 0){
$.ajax({
url: '//api.news18a.com/api/ipapi/getcityinfo/',
type:'get',
dataType: "jsonp",
contentType: "application/x-www-form-urlencoded; charset=utf-8",
jsonp: "callback",
data:'ip=yes',
success:function(res){
var data = res.msg;
cityId = data.cityId;
cityName = data.cityName;
provinceId = data.belongsProvinceId;
provinceName = data.belongsProvinceName;
ina_cityId = data.ina_cityId;
ina_cityName = data.ina_cityName;
ina_provinceId = data.ina_belongsProvinceId;
ina_provinceName = data.ina_belongsProvinceName;
var length = 24 * 7;
setCookie('cityId_cookie', cityId , length , 1,siteId);
setCookie('cityName_cookie', cityName,length , 1,siteId);
setCookie('provinceId_cookie', provinceId,length , 1,siteId);
setCookie('provinceName_cookie', provinceId,length , 1,siteId);
setCookie('ina_cityId',ina_cityId,length , 1,siteId);
setCookie('ina_cityName',ina_cityName,length, 1,siteId);
setCookie('ina_provinceId',ina_provinceId,length, 1,siteId);
setCookie('ina_provinceName',ina_provinceName,length, 1,siteId);
load_dealer();
}
});
}else{
load_dealer();
}
}

我要回帖

更多关于 大众朗逸自动舒适版 的文章

 

随机推荐