son", data:{ uuid: $('.formppid').html(), name: $(".tcnameinp").val(), tell: $(".tctellinp").val(), code: $(".tccodehtml").val(), xingqu: $(".textareajshtml").val(), }, success: function (data) { if(data.code==200){ alert(data.msg); function jump(){ window.location.reload(); } window.setTimeout(jump,500); }else{ alert(data.msg); } }, error : function(jqXHR) { } }); $('.tcmessage_box').show(); }) $('.lsy_getcode').click(function(){ var reg = /^(0|86|17951)?(13[0-9]|15[012356789]|17[678]|18[0-9]|14[57])[0-9]{8}$/; var value =$(".tctellinp").val(); if(!reg.test(value)){ alert("请输入正确的手机号码") }else{ $.ajax({ type: "POST", url: "https://crm.gksxdl.com/gaokong/indexApi/getTellCode", dataType: "json", data:{ uuid: $('.formppid').html(), tell: $(".tctellinp").val(), }, success: function (data) { if(data.code==200){ alert(data.msg) }else{ alert(data.msg); } }, error : function(jqXHR) { } }); } }) $('.messagebtn').click(function(){ $('.tcmessage_box').show(); }) $('.zhezhaomess').click(function(){ $('.tcmessage_box').hide(); }) $('.closemessbtn').click(function(){ $('.tcmessage_box').hide(); }) $('.tcmessagelist .lsy_ks_liuyan').click(function(){ $('.textareajshtml').val($(this).html()); }) $('.tcsubmitbtn2').click(function(){ $.ajax({ type: "POST", url: "https://crm.gksxdl.com/gaokong/indexApi/addMessageForm", dataType: "json", data:{ uuid: $('.formppid').html(), name: $(".tcnameinp2").val(), tell: $(".tctellinp2").val(), code: $(".tccodehtml2").val(), xingqu: $(".textareajshtml2").val(), }, success: function (data) { if(data.code==200){ alert(data.msg); function jump(){ window.location.reload(); } window.setTimeout(jump,500); }else{ alert(data.msg); } }, error : function(jqXHR) { } }); }) $('.lsy_getcode2').click(function(){ var reg = /^(0|86|17951)?(13[0-9]|15[012356789]|17[678]|18[0-9]|14[57])[0-9]{8}$/; var value =$(".tctellinp2").val(); if(!reg.test(value)){ alert("请输入正确的手机号码") }else{ $.ajax({ type: "POST", url: "https://crm.gksxdl.com/gaokong/indexApi/getTellCode", dataType: "json", data:{ uuid: $('.formppid').html(), tell: $(".tctellinp2").val(), }, success: function (data) { if(data.code==200){ alert(data.msg) }else{ alert(data.msg); } }, error : function(jqXHR) { } }); } }) $('.tcmessagelist2 .lsy_ks_liuyan').click(function(){ $('.textareajshtml2').val($(this).html()); })