💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
```javascript var time=60; function Send_msg(){ var consetd=1; if(consetd){ var tel = $('#tel').val(); var phonePreg=/^1\d{10}$/; if(tel.search(phonePreg)==-1){ //手机号错误 return; } $.post("index.php?app=agent&act=fasong",{tel:tel,type:'partner_application'},function(data){ if (data){ hideSendBtn(); } else { alert('发送失败'); } } ); } } function hideSendBtn(){ $('#sendsms').css('background','#888888'); $('#sendsms').html(''); (function reSendCode(){ time-=1; if(time==0){ showSendBtn(); return; } $('#sendsms').html(time+'s 后重新发送'); setTimeout(function(){ reSendCode(); },1000); })(); } function showSendBtn(){ $('#sendsms').css('background','#e60012'); $('#sendsms').html('获取验证码'); time=60; } ```