1/** 2 * Created by Administrator on 2016/4/12. 3 */ 4function sendSms(){ 5 var mobile = document.getElementById("phone").value; 6 //var txtCode = document.getElementById("txtCode").value; 7 var RegCellPhone = /^([0-9]{11})?$/; 8 var myreg = /^(((13[0-9]{1})|(15[0-9]{1})|(16[0-9]{1})|(17[0-9]{1})|(18[0-9]{1})|(19[0-9]{1}))+\d{8})$/; 9 10 if(mobile==''||mobile==null){ 11 $('#phone').addClass('Validform_error'); 12 //$('#phone_notice').html('请è¾å ¥ææºå·ç '); 13 //$('#phone_notice').addClass('Validform_wrong'); 14 }else{ 15 if(!myreg.test(mobile)){ 16 $('#phone').addClass('Validform_error'); 17 $('#phone').focus(); 18 //$('#phone_notice').html('请è¾å ¥æ£ç¡®çæ ¼å¼'); 19 //$('#phone_notice').addClass('Validform_wrong'); 20 }else{ 21 /*if(txtCode==''){ 22 $('#txtCode').addClass('Validform_error'); 23 $('#txt_notice').html('请è¾å ¥éªè¯ç '); 24 $('#txt_notice').addClass('Validform_wrong'); 25 }else{*/ 26 //,"txtCode":txtCode 27 $.ajax({ 28 url:"/qcloudsms/sendsms.php", 29 data:{"phone":mobile,"anticache":new Date().getTime()}, 30 async:false, 31 dataType : "json", 32 type : "post", 33 success:function(data) { 34 /*if(data.error==2){ 35 $('#txtCode').addClass('Validform_error'); 36 $('#txt_notice').html(data.info); 37 $('#txt_notice').addClass('Validform_wrong'); 38 }else*/ 39 console.log(data.error) 40 if(data.error==1){ 41 $('#phone').focus(); 42 $('#phone').addClass('Validform_error'); 43 //$('#phone_notice').html(data.info); 44 //$('#phone_notice').addClass('Validform_wrong'); 45 }else{ 46 47 RemainTime(); 48 show_comment1(data.info); 49 } 50 } 51 }); 52 //} 53 } 54 55 } 56} 57 58var iTime = 59; 59var Account; 60function RemainTime(){ 61 document.getElementById('zphone').disabled = true; 62 var iSecond,sSecond="",sTime=""; 63 if (iTime >= 0){ 64 iSecond = parseInt(iTime%60); 65 if (iSecond >= 0){ 66 sSecond = iSecond + "ç§"; 67 } 68 sTime=sSecond; 69 if(iTime==0){ 70 clearTimeout(Account); 71 sTime='éåéªè¯ç '; 72 iTime = 59; 73 document.getElementById('zphone').disabled = false; 74 }else{ 75 Account = setTimeout("RemainTime()",1000); 76 iTime=iTime-1; 77 } 78 }else{ 79 sTime='没æå计æ¶'; 80 } 81 document.getElementById('zphone').value = sTime; 82}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.