Your Name 3 lat temu
rodzic
commit
615450303e
1 zmienionych plików z 5 dodań i 5 usunięć
  1. 5 5
      tool/work/assets/pc/html/callback.html

+ 5 - 5
tool/work/assets/pc/html/callback.html

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