修复中搜索不到小区提交信息bug
This commit is contained in:
@@ -2264,13 +2264,27 @@ $(document).on('click','#notFound_btn', function () {
|
|||||||
var b = $("#input_address_noFound").val();
|
var b = $("#input_address_noFound").val();
|
||||||
var c = $("#input_city").text();
|
var c = $("#input_city").text();
|
||||||
|
|
||||||
|
axios.post("/rest/districts/addNoFoundDistrict", {city:c,name:a, address:b}).then(function (response) {
|
||||||
$.ajax({
|
$('.modal').remove();
|
||||||
|
$('.modal-overlay').remove();
|
||||||
|
if(response.data.status){
|
||||||
|
$.toast('提交成功,我们会尽快完善信息');
|
||||||
|
}else{
|
||||||
|
$.toast('提交失败,请重试');
|
||||||
|
}
|
||||||
|
}).catch(function (error) {
|
||||||
|
console.log(error);
|
||||||
|
$('.modal').remove();
|
||||||
|
$('.modal-overlay').remove();
|
||||||
|
$.toast('提交失败,请重试');
|
||||||
|
});
|
||||||
|
/*$.ajax({
|
||||||
type : 'post',
|
type : 'post',
|
||||||
url :BASE_PATH + "/rest/districts/addNoFoundDistrict",
|
url :BASE_PATH + "/rest/districts/addNoFoundDistrict",
|
||||||
data:{city:c,name:a, address:b},
|
data:{city:c,name:a, address:b},
|
||||||
dataType:'json',
|
dataType:'json',
|
||||||
success:function(result){
|
success:function(result){
|
||||||
|
alert(result.);
|
||||||
$('.modal').remove();
|
$('.modal').remove();
|
||||||
$('.modal-overlay').remove();
|
$('.modal-overlay').remove();
|
||||||
if(result.data){
|
if(result.data){
|
||||||
@@ -2284,7 +2298,7 @@ $(document).on('click','#notFound_btn', function () {
|
|||||||
$('.modal-overlay').remove();
|
$('.modal-overlay').remove();
|
||||||
$.toast('提交失败,请重试');
|
$.toast('提交失败,请重试');
|
||||||
}
|
}
|
||||||
})
|
})*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user