|
@@ -158,8 +158,9 @@ function search()
|
|
phone : $('#content').val(),
|
|
phone : $('#content').val(),
|
|
json:2,
|
|
json:2,
|
|
},
|
|
},
|
|
|
|
+ dataType: "json",
|
|
success: function (data) {
|
|
success: function (data) {
|
|
- if(data == '代理商手机号不正确'){
|
|
|
|
|
|
+ if(data.data == '代理商手机号不正确'){
|
|
layer.alert('请输入正确的手机号');
|
|
layer.alert('请输入正确的手机号');
|
|
// location.reload();
|
|
// location.reload();
|
|
layer.close();
|
|
layer.close();
|
|
@@ -190,8 +191,9 @@ $('#content').bind('keydown',function(event){
|
|
phone : $('#content').val(),
|
|
phone : $('#content').val(),
|
|
json:2,
|
|
json:2,
|
|
},
|
|
},
|
|
|
|
+ dataType: "json",
|
|
success: function (data) {
|
|
success: function (data) {
|
|
- if(data == '代理商手机号不正确'){
|
|
|
|
|
|
+ if(data.data == '代理商手机号不正确'){
|
|
layer.alert('请输入正确的手机号');
|
|
layer.alert('请输入正确的手机号');
|
|
layer.close();
|
|
layer.close();
|
|
} else {
|
|
} else {
|
|
@@ -200,9 +202,7 @@ $('#content').bind('keydown',function(event){
|
|
|
|
|
|
},
|
|
},
|
|
error: function(data){
|
|
error: function(data){
|
|
- layer.alert('手机号错误', function(){
|
|
|
|
- layer.close();
|
|
|
|
- });
|
|
|
|
|
|
+ layer.alert('手机号错误');
|
|
}
|
|
}
|
|
});
|
|
});
|
|
}
|
|
}
|