//重新获取验证码
$('#codeagain').click(function() {
- var o = this;
- $.ajax({
- url:"Tea_sendCode.action?jsoncallback=?",type:"post",data: {accountId:accountId},dataType: "json",success: function (data) {
- if(data.status == 1 && data.code == 200){
- alert("验证码已发送至您的手机");
- get_code_time(o);
- } else {
- if(data.msg != ""){
- alert(data.msg);
- } else {
- alert("短信验证码发送失败");
- }
- }
- },error: function (data) {
- if(data.status == 0) {
- alert(data.msg);
- } else {
- alert("短信验证码发送失败");
- }
- }
- });
});