This commit is contained in:
xuhe@fangjia.com
2018-04-08 17:41:12 +08:00
parent 980622e9c3
commit 5f967c59e8
17 changed files with 78443 additions and 237 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
+20 -11
View File
@@ -11,7 +11,8 @@ var searchDistVue = new Vue({
$("[name=name]").val(this.searchDistricts[index].name)
$("[name=cityAddress]").val(this.searchDistricts[index].city)
$("[name=address]").val(this.searchDistricts[index].address)
$.popup(".popup-about02")
$.closeModal(".popup-about02");
$("input").blur();
}
}
})
@@ -107,7 +108,21 @@ $("body").delegate(".open-about02", "click", function () {
$.popup(".popup-about02")
$("input").blur()
});
var hotVue = new Vue({
el: '#hotList',
data: {
hotDists: []
},methods: {
openHotDetail:function(index) {
$("#input_address").val(this.hotDists[index].name);
$("[name=region]").val(this.hotDists[index].region);
$("[name=name]").val(this.hotDists[index].name);
$("[name=cityAddress]").val(this.hotDists[index].city);
$.closeModal(".popup-about02");
$("input").blur();
}
}
})
//添加热门小区
function addHotDistricts(cityParam){
axios.get(BASE_PATH+"/rest/districts/hotDistricts", {
@@ -125,14 +140,7 @@ function addHotDistricts(cityParam){
var map={city:o.city, region:o.region, name:o.name};
dists.push(map);
}
new Vue({
el: '#hotList',
data: {
hotDists: dists
}
})
hotVue.$data.hotDists=dists
}
}).catch(function (error) {
@@ -151,7 +159,8 @@ var historyVue = new Vue({
$("[name=region]").val(this.histories[index].region);
$("[name=name]").val(this.histories[index].name);
$("[name=cityAddress]").val(this.histories[index].city);
$.popup(".popup-about02")
$.closeModal(".popup-about02");
$("input").blur();
}
}
})