otherLogin.js 731 B

12345678910111213141516171819202122232425
  1. function getVCode(){
  2. showMsg('提示', '手机登录正在开发中……', 5000);
  3. return;
  4. var phone = $("#phone").textbox('getValue');
  5. if(phone){
  6. $("#vCode").linkbutton("disable");
  7. setInterval('setlaveTime(laveTime)',1000);
  8. $.ajax({
  9. type:"POST",
  10. contentType: "application/x-www-form-urlencoded; charset=UTF-8",
  11. data:{
  12. "phone":phone
  13. },
  14. url:"ajax/getPhoneCode",
  15. success:function (data){
  16. $.messager.progress('close');
  17. var vData = $.parseJSON(data);
  18. showMsg('验证码', '您的验证码是:'+vData.code, 20*1000);
  19. document.getElementById("gettedCode").innerHTML="您获得的验证码是:"+vData.code;
  20. }
  21. });
  22. }else{
  23. showMsg('提示', '请输入手机号!', 5000);
  24. }
  25. }