手术折扣
省份区域
预约条件
全部 无条件 关注 data: {'searchname':datas.searchname},
dataType: 'json',
cache: false,
error: function(){
alert('出错了!');
return false;
},
success:function(json){ //alert(json);
if(json.code==1){
layer.alert(json.msg, {icon: 5,closeBtn:0,title: false}, function(index){
layer.close(index);
});
}
else{
location.href='/item/show/'+json.id;
}
}
});
}else if(datas.searchx=='4'){
$.ajax({
type: 'POST',
url: "/api/hospital/search",
data: {'searchname':datas.searchname},
dataType: 'json',
cache: false,
error: function(){
alert('出错了!');
return false;
},
success:function(json){ //alert(json);
if(json.code==1){
layer.alert(json.msg, {icon: 5,closeBtn:0,title: false}, function(index){
layer.close(index);
});
}
else{
location.href='/hospital/show/'+json.id;
}
}
});
}else{
location.href='/search/index?searchname='+datas.searchname+'&searchx='+datas.searchx;
}
});
});