|  | @@ -109,37 +109,37 @@ $(function () {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  function contcat(){
 | 
	
		
			
				|  |  | -$('.contcat-form-container').show()
 | 
	
		
			
				|  |  | -    $('.contcat-form-container .company').val('')
 | 
	
		
			
				|  |  | -    $('.contcat-form-container .name').val('')
 | 
	
		
			
				|  |  | -    $('.contcat-form-container .phone').val('')
 | 
	
		
			
				|  |  | -}
 | 
	
		
			
				|  |  | -$('.contcat-form-container .close').click(function(){
 | 
	
		
			
				|  |  | -$('.contcat-form-container').hide()
 | 
	
		
			
				|  |  | -})
 | 
	
		
			
				|  |  | -$('.contcat-form-container .contcatSubmit').click(function(){
 | 
	
		
			
				|  |  | -var  websiteId=188;
 | 
	
		
			
				|  |  | -var companyName=$('.contcat-form-container .company').val()
 | 
	
		
			
				|  |  | -var contactName=$('.contcat-form-container .name').val()
 | 
	
		
			
				|  |  | -var contactIphone=$('.contcat-form-container .phone').val()
 | 
	
		
			
				|  |  | -if(companyName.length<1) {alert('请填写公司名称');return} 
 | 
	
		
			
				|  |  | -if(contactName.length<1) {alert('请填写姓名');return} 
 | 
	
		
			
				|  |  | -if(contactIphone.length<1) {alert('请填写手机号');return} 
 | 
	
		
			
				|  |  | -$.ajax({
 | 
	
		
			
				|  |  | -    url:'http://webapi.xazhyc.com/guestbook/add',
 | 
	
		
			
				|  |  | -    data:JSON.stringify({websiteId,companyName,contactName,contactIphone}),
 | 
	
		
			
				|  |  | -    method:'post',
 | 
	
		
			
				|  |  | -    contentType: 'application/json',
 | 
	
		
			
				|  |  | -    success(res){
 | 
	
		
			
				|  |  | -        if(res.code===0){
 | 
	
		
			
				|  |  | +    $('.contcat-form-container').show()
 | 
	
		
			
				|  |  | +        $('.contcat-form-container .company').val('')
 | 
	
		
			
				|  |  | +        $('.contcat-form-container .name').val('')
 | 
	
		
			
				|  |  | +        $('.contcat-form-container .phone').val('')
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +    $('.contcat-form-container .close').click(function(){
 | 
	
		
			
				|  |  |          $('.contcat-form-container').hide()
 | 
	
		
			
				|  |  | -        alert('提交成功!资料审核完毕,会有专业客服联系您')
 | 
	
		
			
				|  |  | -        }else{
 | 
	
		
			
				|  |  | -        alert('提交失败')
 | 
	
		
			
				|  |  | +    })
 | 
	
		
			
				|  |  | +    $('.contcat-form-container .contcatSubmit').click(function(){
 | 
	
		
			
				|  |  | +    var  websiteId=188;
 | 
	
		
			
				|  |  | +    var companyName=$('.contcat-form-container .company').val()
 | 
	
		
			
				|  |  | +    var contactName=$('.contcat-form-container .name').val()
 | 
	
		
			
				|  |  | +    var contactIphone=$('.contcat-form-container .phone').val()
 | 
	
		
			
				|  |  | +    if(companyName.length<1) {alert('请填写公司名称');return} 
 | 
	
		
			
				|  |  | +    if(contactName.length<1) {alert('请填写姓名');return} 
 | 
	
		
			
				|  |  | +    if(contactIphone.length<1) {alert('请填写手机号');return} 
 | 
	
		
			
				|  |  | +    $.ajax({
 | 
	
		
			
				|  |  | +        url:'http://webapi.xazhyc.com/guestbook/add',
 | 
	
		
			
				|  |  | +        data:JSON.stringify({websiteId,companyName,contactName,contactIphone,productName:"智慧用电"}),
 | 
	
		
			
				|  |  | +        method:'post',
 | 
	
		
			
				|  |  | +        contentType: 'application/json',
 | 
	
		
			
				|  |  | +        success(res){
 | 
	
		
			
				|  |  | +            if(res.code===0){
 | 
	
		
			
				|  |  | +            $('.contcat-form-container').hide()
 | 
	
		
			
				|  |  | +                alert('提交成功!资料审核完毕,会有专业客服联系您')
 | 
	
		
			
				|  |  | +            }else{
 | 
	
		
			
				|  |  | +                alert('提交失败')
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        },
 | 
	
		
			
				|  |  | +        error(){
 | 
	
		
			
				|  |  | +            alert('提交失败')
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -    },
 | 
	
		
			
				|  |  | -    error(){
 | 
	
		
			
				|  |  | -    alert('提交失败')
 | 
	
		
			
				|  |  | -    }
 | 
	
		
			
				|  |  | -})
 | 
	
		
			
				|  |  | +    })
 | 
	
		
			
				|  |  |  })
 |