新增
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@@ -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();
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user