diff --git a/fangija-zsyf/views/loan/loanInfo.html b/fangija-zsyf/views/loan/loanInfo.html index a15ba34..500cae2 100644 --- a/fangija-zsyf/views/loan/loanInfo.html +++ b/fangija-zsyf/views/loan/loanInfo.html @@ -135,6 +135,13 @@ 按城市等级 +
+
+
+
+
+
+
@@ -1057,6 +1064,44 @@ $(".checkbox").on("click", function () { $(this).find("i").addClass("current"); }); +function req(city){ + //city=city.replace("","") + $("#input_city").val(city); + //potenialIndex(city); +} +//城市选择 +//$("#cityCopy").html($('.tabs').html()) +var getAllCitys = function() { + var list = new Array(); + $("#tabCity1 #cityContainer .city p").each(function(i, o) { + list.push($(o).text()); + }); + return list; +} + +var search = function(){ + var city = $("#citySearchInp").val(); + $("#selectContainer .city-list").empty(); + $("#selectContainer").show(); + var cityList = getAllCitys(); + for(var i=0;i"+cityList[i]+"

"); + } + } + if(city == ""){ + $("#selectContainer").hide(); + } +} + +$("#citySearchInp").bind('input propertychange keyup', function() { + search(); +}); + +$("#citySearchInp").bind('keyup', function() { + search(); +}); +