This commit is contained in:
xuhe@fangjia.com
2018-03-20 14:37:10 +08:00
parent 94642b1862
commit 45004fefcb
+10 -9
View File
@@ -1,14 +1,15 @@
var xhr;
var searchDistVue = new Vue({
el: '#searchList',
data: {
searchDistricts: []
},methods: {
openDistrictDetail:function(index) {
alert(this.searchDistricts[index].name)
}
}
})
el: '#searchList',
data: {
searchDistricts: []
},methods: {
openDistrictDetail:function(index) {
clicked(BASE_PATH+'/district/details?city='+this.searchDistricts[index].city+'&region='+this.searchDistricts[index].region+'&name='+this.searchDistricts[index].name,true);
}
}
})
$("#districtName").bind("input propertychange keyup" , function () {
var keyword = $(this).val()
if(xhr){