{ "status": "success", "second": 3, "msg": { "closePop": "tips", "type": "authentication", "status": "no", "html": "<div class=\"authentication-content\">\r\n <div class=\"authentication-body\">\r\n <div class=\"authentication-channel bind-idCard\">\r\n <form action=\"/index.php?ac=authentication&op=authentication&gameId=188\">\r\n <div class=\"authentication-title\">实名认证\r\n <a class=\"bind-close-btn close_pop\" href=\"javascript:void(0)\"\r\n onclick=\"bindClose('authenticationBox')\">\r\n <span class=\"icon_img close_icon\" style=\"margin-top:7px\"></span>\r\n </a>\r\n </div>\r\n <div class=\"authentication-info\">\r\n <span>根据国家规定,您需进行实名认证。</span>\r\n <br>\r\n <span>以下信息仅用于认证且绝对保密。</span>\r\n <input class=\"authentication-input\" type=\"text\" name=\"realName\" placeholder=\"真实姓名\" />\r\n <input class=\"authentication-input\" type=\"text\" name=\"idCard\" placeholder=\"身份证号\" />\r\n <input type=\"hidden\" name=\"submit\" value=\"绑定\" />\r\n <input type=\"hidden\" name=\"type\" value=\"authentication\" />\r\n <input class=\"bind-submit pay-btn\" type=\"button\" value=\"绑定\" />\r\n </div>\r\n </form>\r\n </div>\r\n </div>\r\n</div>\r\n<input type=\"hidden\" id=\"formhash\" name=\"formhash\" value=\"b907bf21\" />\r\n<style>\r\n .authentication-content {\r\n text-align: center;\r\n white-space: nowrap;\r\n width: 88%;\r\n max-width: 325px;\r\n left: 0;\r\n right: 0;\r\n top: 50%;\r\n position: fixed;\r\n margin: auto;\r\n transform: translateY(-50%);\r\n -moz-transform: translateY(-50%);\r\n -webkit-transform: translateY(-50%);\r\n -ms-transform: translateY(-50%);\r\n }\r\n\r\n .authentication-body {\r\n background: #fff;\r\n border-radius: .35rem;\r\n }\r\n\r\n .authentication-title {\r\n position: relative;\r\n padding: .7rem 0;\r\n border-radius: .35rem .35rem 0 0;\r\n font-size: 20px;\r\n text-align: center;\r\n box-sizing: border-box;\r\n background: #e7f3ff;\r\n color: #1283f3;\r\n }\r\n\r\n .authentication-title .authentication-back-home {\r\n position: absolute;\r\n top: 13px;\r\n left: 14px;\r\n background: url(../images/back_2.png) no-repeat center;\r\n background-size: 20px;\r\n height: 20px;\r\n width: 20px;\r\n }\r\n\r\n .authentication-info {\r\n padding: 10px 20px;\r\n text-align: center;\r\n }\r\n\r\n .authentication-info .authentication-input {\r\n width: 100%;\r\n box-sizing: border-box;\r\n background-color: #f5f5f5;\r\n border-radius: 9px;\r\n color: #999;\r\n display: block;\r\n font-size: 13px;\r\n height: 34px;\r\n line-height: 34px;\r\n padding: 0 6px;\r\n margin: 8px 0;\r\n border: 1px solid\r\n }\r\n\r\n .authentication-info .authentication-submit {\r\n background-color: #42cccc;\r\n border-radius: 9px;\r\n color: #ffffff;\r\n display: block;\r\n font-size: 16px;\r\n height: 42px;\r\n line-height: 42px;\r\n text-align: center;\r\n width: 100%;\r\n margin: 12px auto;\r\n border: 0;\r\n }\r\n\r\n .authentication-info .authentication-register-code {\r\n position: relative;\r\n }\r\n\r\n .authentication-info .authentication-get-code {\r\n position: absolute;\r\n top: 0px;\r\n padding: 8px;\r\n border-radius: 0 9px 9px 0;\r\n color: #ffffff;\r\n background-color: #42dddd;\r\n right: 0px;\r\n height: 34px;\r\n box-sizing: border-box;\r\n font-size: 13px;\r\n }\r\n\r\n .authentication-info .authentication-get-er-code {\r\n position: absolute;\r\n top: 1px;\r\n right: 1px;\r\n border-radius: 0 9px 9px 0;\r\n height: 32px;\r\n }\r\n\r\n .authentication-info .authentication-info-footer {\r\n font-size: 14px;\r\n }\r\n\r\n .authentication-info .authentication-info-footer a {\r\n color: #1283f3;\r\n }\r\n\r\n .authentication-content .authentication-other {\r\n padding: 0 8px;\r\n }\r\n\r\n .authentication-other-item {\r\n margin: 8px 0;\r\n text-align: center;\r\n overflow-y: hidden;\r\n float: left;\r\n box-sizing: border-box;\r\n }\r\n\r\n .authentication-other-item img {\r\n max-width: 60px;\r\n width: 60%;\r\n }\r\n\r\n .authentication-other-item .tip {\r\n display: block;\r\n font-size: 12px;\r\n height: 1.5em\r\n }\r\n</style>\r\n<script>\r\n function get_code(dome) {\r\n var _th = $(dome);\r\n var form = _th.parents(\"form\");\r\n var to = form.find(\".phone\").val(); //手机号码val\r\n var op = \"phone\";\r\n var type = _th.data(\"type\");\r\n var seccode = form.find(\".authentication-input-er-code\").val();\r\n var disabled = form.find('.verfycode').attr(\"disabled\");\r\n if (!(/^1[0-9]{10}$/.test(to))) {\r\n //报错\r\n // alert(\"请输入11位手机号码\");\r\n form.find(\".phone\").focus();\r\n message_fade_out(\"error\", \"请输入11位手机号码\", 3);\r\n\r\n return false;\r\n }\r\n if (seccode.length != 4) {\r\n //必须验证码\r\n message_fade_out(\"error\", \"请输入验证码\", 3);\r\n form.find(\".authentication-input-er-code\").focus();\r\n\r\n return false;\r\n }\r\n\r\n if (disabled != 'disabled') {\r\n var post = {\r\n op: op,\r\n type: type,\r\n to: to,\r\n formhash: $(\"#formhash\").val(),\r\n seccode: seccode\r\n };\r\n ajax_post(\"/index.php?ac=verifycode&inajax=1\", post, function (response) {\r\n if (response.status == 'success') {\r\n // start_timer();\r\n new djs(_th)\r\n } else {\r\n message_fade_out(\"error\", response.msg, 3);\r\n }\r\n });\r\n }\r\n }\r\n\r\n var usetime = \"1\";\r\n var count_time = 60 * parseInt(usetime); //定义规定的时间,60秒后再次发送\r\n\r\n function djs(obj) {\r\n this.count_time = count_time;\r\n this.usetime = usetime;\r\n var _this = this;\r\n var that = $(obj)\r\n this.timer = setInterval(function () {\r\n if (_this.count_time == 0) {\r\n that.removeAttr(\"disabled\");\r\n that.html('获取验证码');\r\n _this.count_time = 60 * parseInt(_this.usetime);\r\n clearInterval(_this.timer)\r\n } else {\r\n\r\n that.attr(\"disabled\", true);\r\n that.html(\"重新发送(\" + _this.count_time + \")\");\r\n _this.count_time--;\r\n }\r\n }, 1000)\r\n\r\n }\r\n</script>" }, "url": "" }