aa
This commit is contained in:
@@ -1553,7 +1553,8 @@ $("#evaluation_btn").on("click", function () {
|
||||
$("input[name='name']").val(district.name)
|
||||
$("input[name='region']").val(district.region)
|
||||
$("#input_city").val(district.city)
|
||||
addEvaluation();
|
||||
|
||||
|
||||
}else{
|
||||
// $("#nextBtn").attr("disabled", false)
|
||||
console.log("error");
|
||||
@@ -1565,6 +1566,17 @@ $("#evaluation_btn").on("click", function () {
|
||||
});
|
||||
});
|
||||
|
||||
//判断是否登录
|
||||
//var loginFlag=false;
|
||||
function checkIsLogin(){
|
||||
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
|
||||
clicked('/views/user/passLogin.html',true,false,{},{},function(){
|
||||
//checkIsLogin();
|
||||
})
|
||||
}else{
|
||||
addEvaluation();
|
||||
}
|
||||
}
|
||||
|
||||
function addEvaluation(){
|
||||
axios.get("/rest/index/checkEvalPrice", {
|
||||
@@ -1582,13 +1594,7 @@ function addEvaluation(){
|
||||
.then(function (response) {
|
||||
if(response.data.data!=null && response.data.data.success){
|
||||
var id = response.data.data.id;
|
||||
mui.openWindow({
|
||||
url: 'detail.html',
|
||||
id:'detail.html',
|
||||
extras:{
|
||||
id:id
|
||||
}
|
||||
});
|
||||
clicked('detail.html',true,false,{},{id:id})
|
||||
}else{
|
||||
$.toast(response.data.message);
|
||||
}
|
||||
@@ -1596,39 +1602,6 @@ function addEvaluation(){
|
||||
.catch(function (error) {
|
||||
console.log(error);
|
||||
});
|
||||
|
||||
|
||||
/*$.ajax({
|
||||
url:"${basePath}/fsh/checkEvalPrice",
|
||||
dataType:'json',
|
||||
data:$("form").serialize(),
|
||||
success:function (data) {
|
||||
console.log()
|
||||
var str = "/house/add?city="+$("#input_city").val()+"®ion="+$("input[name=region]").val()+"&name="+$("#input_address").val()+"&address="+$("input[name=address]").val()+"&estateType="+$("#input_houseType").val()+"&building="+$("#input_building").val()+"&floors="+$("#input_floor").val()+"&area="+$("#input_area").val();
|
||||
if(data.success){
|
||||
$.showIndicator();
|
||||
window.location.href="${basePath}/house/doEvaluation?id="+data.id+"&backUrl=${backUrl!}";
|
||||
}else{
|
||||
if (data.data == 0){
|
||||
$.toast(data.message);
|
||||
var sstr = "${basePath}/user/smsLogin";
|
||||
console.log(sstr);
|
||||
//window.location.href = sstr;
|
||||
clicked(sstr,true);
|
||||
}
|
||||
if(data.message!=undefined && data.message!=""){
|
||||
$.hidePreloader();
|
||||
$.toast(data.message);
|
||||
}else{
|
||||
$.hidePreloader();
|
||||
$.toast("该地址不支持估价!");
|
||||
}
|
||||
}
|
||||
},
|
||||
error:function () {
|
||||
$.toast("估价失败请重试!")
|
||||
}
|
||||
})*/
|
||||
}
|
||||
|
||||
/* 信息输入弹窗 */
|
||||
|
||||
Reference in New Issue
Block a user