/*--------------------激活STA-----------------------*/ function sendCan(product) { closeSe(); if (getMemoValbyId(product, "code") != "") {// 判断用户是否输入了验证码 if (ncode) {//判断验证码是否超时 $(".red_btn").attr("disabled", "disabled"); $(".red_btn").css("background: url(../images/btn_bg_lose.png)"); $("#major").val("正在激活请稍等...."); $.ajax({ type : "POST", contentType : "application/json; charset=utf-8", dataType : "Json", url : getRootPath() + "-s1api" + '/com/act', data : JSON.stringify(GetMasData(product)), success : function(msg) { $(".red_btn").removeAttr("disabled"); $(".red_btn").removeAttr("style"); $("#major").val("立即激活"); var resCode = eval(msg["resultCode"]); if (resCode == "0000") { pro_bounced("您已激活成功", "恭喜您APP端激活成功", "确定",true); } else { emptyM(); if (msg["resultCode"] == "6611") { hint("code",product, msg["errorInfo"]); } else { pro_bounced("激活失败","激活失败激活设备号:"+getMemoValbyId(product, "useraccount"), "确定",false); } } }, error : function(XMLHttpRequest, textStatus, errorThrown) { pro_bounced("激活失败","激活失败,请点击“确认”按键,尝试重新激活", "确定",false); $(".red_btn").removeAttr("disabled"); $(".red_btn").removeAttr("style"); $("#major").val("立即激活"); }, }); } else { hint("code",product, "验证码已失效请重新获取"); } } else { hint("code",product, "请输入验证码"); } } /*--------------------激活END-----------------------*/