register.blade.php 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  7. <title>registration</title>
  8. <link rel="stylesheet" href="/uploads/css/style.css">
  9. <link rel="stylesheet" href="/uploads/css/register.css">
  10. </head>
  11. <body>
  12. <div style="margin-bottom: -40px;float:right;">
  13. <a href="{{ $info->StatusString}}">
  14. <img src="/uploads/sign/kefu.png" alt="" style="margin: 2px 6px -4px 1px;">
  15. <div style="color: white">AYUDA</div>
  16. </a>
  17. </div>
  18. {{--<div class="xxx" style="float:right">--}}
  19. {{-- <a href="{{ $info->StatusString}}" target="">--}}
  20. {{-- <div>--}}
  21. {{-- <img src="/uploads/sign/kefu.png" alt="">--}}
  22. {{-- </div>--}}
  23. {{-- <div style="color: white">--}}
  24. {{-- AYUDA--}}
  25. {{-- </div>--}}
  26. {{-- </a>--}}
  27. {{--</div>--}}
  28. {{--<div style="float: right;">--}}
  29. {{--<div style="float: right">--}}
  30. {{--</div>--}}
  31. <div style="clear: both"></div>
  32. <header>
  33. {{-- <a href="{{ $info->StatusString}}" target="true">--}}
  34. {{-- <div class="whatsapp">--}}
  35. {{-- <div style="color: white;margin-top: 57px">AYUDA</div>--}}
  36. {{-- </div>--}}
  37. {{-- </a>--}}
  38. <img src="https://d3rgufauva6fuc.cloudfront.net/web-images/icon.png" style="width: auto;margin: 70px auto">
  39. </header>
  40. <div class="tel">
  41. <svg t="1574666664432" class="icon" viewBox="0 0 1200 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
  42. p-id="1961" width="200" height="200">
  43. <path
  44. d="M353.7609 781.237718l-0.188774-581.515716c0-14.91308 11.420776-27.655268 20.859435-27.655268H807.94912c10.193751 0 23.407872 13.308508 23.502258 27.466495l-0.471933 581.704489h42.285188l0.471933-581.610103c0-34.639875-30.203705-66.259379-64.560421-67.014471H373.204535c-33.129689 0.660706-59.935478 30.298092-61.82321 63.427781v46.815744l0.094387 538.381049h42.285188z"
  45. p-id="1962" fill="#858585"></path>
  46. <path
  47. d="M353.666513 755.470182l-0.188773 81.266844c0 14.91308 11.420776 27.655268 20.859434 27.655268h433.517559c10.193751 0 23.407872-13.308508 23.502258-27.466494l-0.471932-81.455618H873.07586l0.471932 81.361231c0 34.639875-30.203705 66.259379-64.56042 67.014471H373.110148c-33.129689-0.660706-59.935478-30.298092-61.823209-63.427781v-46.815743l0.094386-38.132178h42.285188zM331.580053 263.904876h521.957785v42.379574h-521.957785zM331.485667 682.603742h521.957784v42.379574h-521.957784z"
  48. p-id="1963" fill="#858585"></path>
  49. <path
  50. d="M592.464559 796.33957m-37.754632 0a37.754632 37.754632 0 1 0 75.509264 0 37.754632 37.754632 0 1 0-75.509264 0Z"
  51. p-id="1964" fill="#858585"></path>
  52. </svg>
  53. <span style="line-height: 44px; margin: 0px 8px 0px -7px;">+55</span>
  54. <input id="txtTelNumber" type="text" class="telNumber" maxlength="11"
  55. oninput="value=value.replace(/[^\d]/g,&#39;&#39;)" placeholder="Teléfono">
  56. </div>
  57. <!--滑块-->
  58. <div id="slidingBlock" class=" tel nc-container " style="display:none;" data-nc-idx="1">
  59. <div id="nc_1_wrapper" class="nc_wrapper">
  60. <div id="nc_1_n1t" class="nc_scale">
  61. <div id="nc_1__bg" class="nc_bg"></div>
  62. <span id="nc_1_n1z" class="nc_iconfont btn_slide"></span>
  63. <div id="nc_1__scale_text" class="scale_text slidetounlock">
  64. <span class="nc-lang-cnt"
  65. data-nc-lang="_startTEXT">Press and hold the slider and drag to the far right</span>
  66. </div>
  67. <div id="nc_1_clickCaptcha" class="clickCaptcha">
  68. <div class="clickCaptcha_text">
  69. <b id="nc_1__captcha_text" class="nc_captch_text"></b>
  70. <i id="nc_1__btn_2" class="nc_iconfont nc_btn_2 btn_refresh"></i>
  71. </div>
  72. <div class="clickCaptcha_img"></div>
  73. <div class="clickCaptcha_btn"></div>
  74. </div>
  75. <div id="nc_1_imgCaptcha" class="imgCaptcha">
  76. <div class="imgCaptcha_text"><input id="nc_1_captcha_input" maxlength="6" type="text"
  77. style="ime-mode:disabled"></div>
  78. <div class="imgCaptcha_img" id="nc_1__imgCaptcha_img"></div>
  79. <i id="nc_1__btn_1" class="nc_iconfont nc_btn_1 btn_refresh"
  80. onclick="document.getElementById(&#39;nc_1__imgCaptcha_img&#39;).children[0].click()"></i>
  81. <div class="imgCaptcha_btn">
  82. <div id="nc_1__captcha_img_text" class="nc_captcha_img_text"></div>
  83. <div id="nc_1_scale_submit" class="nc_scale_submit"></div>
  84. </div>
  85. </div>
  86. <div id="nc_1_cc" class="nc-cc"></div>
  87. <i id="nc_1__voicebtn" tabindex="0" role="button" class="nc_voicebtn nc_iconfont" style="display:none"></i>
  88. <b id="nc_1__helpbtn" class="nc_helpbtn"><span class="nc-lang-cnt" data-nc-lang="_learning">Learn about new features</span></b>
  89. </div>
  90. <div id="nc_1__voice" class="nc_voice"></div>
  91. </div>
  92. </div>
  93. <input id="hidcsessionid" name="hidcsessionid" type="hidden" value="">
  94. <div class="verificationCode" style="height:3rem;">
  95. <div class="verification">
  96. <svg t="1574666920744" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
  97. p-id="12708" width="200" height="200">
  98. <path
  99. d="M791.589047 224.121527l-567.979212 0c-30.189886 0-54.751149 24.561263-54.751149 54.751149l0 369.442335c0 30.189886 24.561263 54.751149 54.751149 54.751149l361.357585 0 140.203878 101.008195c5.423946 4.605237 12.178293 6.959025 19.034979 6.959025 3.786528 0 7.675395-0.71637 11.359584-2.251449 11.052568-4.605237 18.113932-15.248451 18.113932-27.222067L773.679792 703.06616l17.909254 0c30.189886 0 54.751149-24.561263 54.751149-54.751149l0-369.442335C846.340196 248.68279 821.778933 224.121527 791.589047 224.121527zM801.311213 648.315011c0 5.219268-4.502898 9.722167-9.722167 9.722167L728.65081 658.037178l0 45.028983 0 0 0 47.996802-129.560664-93.3328-0.409354 0.511693L598.680792 658.037178 223.609834 658.037178c-5.219268 0-9.722167-4.502898-9.722167-9.722167l0-369.442335c0-5.219268 4.502898-9.722167 9.722167-9.722167l567.979212 0c5.219268 0 9.722167 4.502898 9.722167 9.722167L801.311213 648.315011z"
  100. p-id="12709" fill="#858585"></path>
  101. <path
  102. d="M380.69958 429.822107l-40.935439 0c-5.628623 0-10.23386 4.605237-10.23386 10.23386l0 40.935439c0 5.628623 4.605237 10.23386 10.23386 10.23386l40.935439 0c5.628623 0 10.23386-4.605237 10.23386-10.23386l0-40.935439C390.93344 434.427344 386.328203 429.822107 380.69958 429.822107z"
  103. p-id="12710" fill="#858585"></path>
  104. <path
  105. d="M536.254247 439.03258c0-5.628623-4.605237-10.23386-10.23386-10.23386l-40.935439 0c-5.628623 0-10.23386 4.605237-10.23386 10.23386l0 40.935439c0 5.628623 4.605237 10.23386 10.23386 10.23386l40.935439 0c5.628623 0 10.23386-4.605237 10.23386-10.23386L536.254247 439.03258z"
  106. p-id="12711" fill="#858585"></path>
  107. <path
  108. d="M683.621827 439.03258c0-5.628623-4.605237-10.23386-10.23386-10.23386l-40.935439 0c-5.628623 0-10.23386 4.605237-10.23386 10.23386l0 40.935439c0 5.628623 4.605237 10.23386 10.23386 10.23386l40.935439 0c5.628623 0 10.23386-4.605237 10.23386-10.23386L683.621827 439.03258z"
  109. p-id="12712" fill="#858585"></path>
  110. </svg>
  111. <input id="txtPhoneCode" type="text" placeholder="Código">
  112. </div>
  113. <div class="button">
  114. <button id="numbtn" style="background-color: rgb(227, 193, 132);">comprobar</button>
  115. </div>
  116. </div>
  117. <div class="pswd" style="margin-top:20px;">
  118. <svg t="1574817177368" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
  119. p-id="1874" width="48" height="48">
  120. <path
  121. d="M860.8 448l-9.6 0c3.2-19.2 6.4-41.6 6.4-64 0-188.8-153.6-336-345.6-336s-345.6 147.2-345.6 336c0 22.4 3.2 41.6 6.4 64l-12.8 0c-54.4 0-96 41.6-96 96l0 320c0 54.4 41.6 96 96 96l700.8 0c54.4 0 96-41.6 96-96l0-320C956.8 489.6 915.2 448 860.8 448zM220.8 444.8c-3.2-19.2-6.4-38.4-6.4-60.8 0-163.2 131.2-288 294.4-288s294.4 128 294.4 288c0 22.4-3.2 44.8-6.4 64l-32 0L224 448 220.8 444.8zM908.8 864c0 25.6-22.4 48-48 48L160 912c-25.6 0-48-22.4-48-48l0-320c0-25.6 22.4-48 48-48l608 0 89.6 0c25.6 0 48 22.4 48 48L905.6 864z"
  122. p-id="1875" fill="#858585"></path>
  123. <path
  124. d="M512 592c-12.8 0-25.6 9.6-25.6 25.6l0 195.2c0 12.8 9.6 25.6 25.6 25.6s25.6-9.6 25.6-25.6l0-195.2C537.6 604.8 524.8 592 512 592z"
  125. p-id="1876" fill="#858585"></path>
  126. </svg>
  127. <input id="txtPswdNumber" type="password" class="pswdNumber" placeholder="digite a senha">
  128. </div>
  129. <div class="pswd pwagain">
  130. <svg t="1574817177368" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
  131. p-id="1874" width="48" height="48">
  132. <path
  133. d="M860.8 448l-9.6 0c3.2-19.2 6.4-41.6 6.4-64 0-188.8-153.6-336-345.6-336s-345.6 147.2-345.6 336c0 22.4 3.2 41.6 6.4 64l-12.8 0c-54.4 0-96 41.6-96 96l0 320c0 54.4 41.6 96 96 96l700.8 0c54.4 0 96-41.6 96-96l0-320C956.8 489.6 915.2 448 860.8 448zM220.8 444.8c-3.2-19.2-6.4-38.4-6.4-60.8 0-163.2 131.2-288 294.4-288s294.4 128 294.4 288c0 22.4-3.2 44.8-6.4 64l-32 0L224 448 220.8 444.8zM908.8 864c0 25.6-22.4 48-48 48L160 912c-25.6 0-48-22.4-48-48l0-320c0-25.6 22.4-48 48-48l608 0 89.6 0c25.6 0 48 22.4 48 48L905.6 864z"
  134. p-id="1875" fill="#858585"></path>
  135. <path
  136. d="M512 592c-12.8 0-25.6 9.6-25.6 25.6l0 195.2c0 12.8 9.6 25.6 25.6 25.6s25.6-9.6 25.6-25.6l0-195.2C537.6 604.8 524.8 592 512 592z"
  137. p-id="1876" fill="#858585"></path>
  138. </svg>
  139. <input id="txtPswdNumberAgain" type="password" class="pswdNumberAgain"
  140. placeholder="Digite a senha novamente">
  141. </div>
  142. <div class="tel" id="RegisterDiv" style="display: none;margin-top:20px;">
  143. <input id="imgRegisterInput" type="text" placeholder="Reintroducir la contraseña" style="height:45px">
  144. <img id="imgRegister" src="https://register007.fsprm.com/index.html?userid=752409436&amp;channelCode=007"
  145. height="45" style="margin-bottom: -17px; ">
  146. </div>
  147. {{--<div class="recommendid">--}}
  148. {{-- <input id="txtSpreadId" unselectable="on" onfocus="this.blur();" type="text" readonly="" value="recommend ID:0">--}}
  149. {{-- --}}{{-- <span id="txtSpreadId" unselectable="on" onfocus="this.blur();" type="text" readonly="" >recommend ID:0</span>--}}
  150. {{--</div>--}}
  151. <div class="already" style="margin-bottom:30px;">
  152. <span href="javascript:void(0)" id="txtSpreadId" unselectable="on" onfocus="this.blur();" type="text" readonly="">Convidar ID:0</span>
  153. </div>
  154. <button class="immediately" style="background-color: rgb(227, 193, 132);">Registrador</button>
  155. <div class="already">Já registrado?
  156. <a id="btnAlready" href="javascript:void(0)">Clique aqui para baixar</a>
  157. </div>
  158. <div>
  159. &nbsp;
  160. </div>
  161. {{--<div class="cover">{{ __('auto.请先移动滑块') }}</div>--}}
  162. <div class="cover"></div>
  163. <script src="/uploads/js/um.js" id="AWSC_umidPCModule"></script>
  164. <script src="/uploads/js/collina.js" id="AWSC_uabModule"></script>
  165. <script type="text/javascript" class="nc-required-js-1 nc-awsc-script" src="/uploads/js/awsc.js"></script>
  166. <script src="/uploads/js/initialize.jsonp"></script>
  167. <script src="/uploads/js/jquery-2.1.4.min.js"></script>
  168. <script src="/uploads/js/mobile-detect.min.js"></script>
  169. <script type="text/javascript" charset="utf-8" src="/uploads/js/nc.js"></script>
  170. <style type="text/css" class="nc-style">
  171. .nc-container #nc_1_wrapper, .nc-container.tb-login #nc_1_wrapper {
  172. width: 300px
  173. }
  174. .nc-container .imgCaptcha, .nc-container .clickCaptcha {
  175. width: 298px;
  176. }
  177. .nc-container.tb-login .imgCaptcha, .nc-container.tb-login .clickCaptcha {
  178. width: 300px;
  179. }
  180. .nc-container.tb-login .imgCaptcha .captcha-error, .nc-container.tb-login .clickCaptcha .captcha-error {
  181. width: 292px;
  182. }
  183. .nc-container.tb-login .errloading, .nc-container .errloading {
  184. width: 290px;
  185. }
  186. </style>
  187. <script type="text/javascript">
  188. var webRequestUrl = 'http://'+window.location.host;
  189. //获取验证码 按钮初始灰色
  190. $("#numbtn").attr("disabled", "true");
  191. $("#numbtn").css({'background-color': 'gray'});
  192. //注册按钮 初始灰色
  193. $(".immediately").attr("disabled", "true");
  194. $(".immediately").css({'background-color': 'gray'});
  195. var Index_Global = {
  196. goUrl: webRequestUrl+'/api/rev/download',
  197. postUrl: '',
  198. downloadUrl: "", // 正式
  199. webApiUrl: webRequestUrl,
  200. agentTypeStr: '007',
  201. slideKey: '',
  202. isFirst: 1,
  203. sendValidCode: '123_456',
  204. JwtSmsData: {
  205. JwtSecret: '',
  206. JwtTimeStamp: 0,
  207. JwtRandomKey: ''
  208. },
  209. spreadId: 0,
  210. quDao: '',
  211. SendSms: null,
  212. GetUrlParameterVal: function (parname) {
  213. var href = "?" + decodeURI(window.location.search.substr(1)).toLowerCase();
  214. parname = parname.toLowerCase();
  215. var reg = new RegExp("[&|?]" + parname + "=[^&]*&?");
  216. var par = href.match(reg);
  217. if (par != null) {
  218. par = unescape(par);
  219. par = par.substr((par.indexOf('=') + 1), (par.length - (par.indexOf('=') + 1))).replace("&", "").replace("?", "");
  220. return par;
  221. } else {
  222. return "";
  223. }
  224. },
  225. Init: null
  226. }
  227. //初始化
  228. Index_Global.Init = function () {
  229. //设置发送短信验证码 按钮可用
  230. var obj = $('#numbtn');
  231. obj.removeAttr("disabled");
  232. obj.css({'background-color': '#e3c184'});
  233. //设置注册验证 按钮可用
  234. obj = $('.immediately');
  235. obj.removeAttr("disabled");
  236. obj.css({'background-color': '#e3c184'});
  237. Index_Global.spreadId = Index_Global.GetUrlParameterVal('userId') || 0;
  238. $('#txtSpreadId').html('Invitar ID:' + Index_Global.spreadId);
  239. }
  240. //发短信
  241. Index_Global.SendSms = function () {
  242. var postData = {
  243. AgentName: Index_Global.agentTypeStr,
  244. JwtRandomKey: Index_Global.JwtSmsData.JwtRandomKey,
  245. JwtTimeStamp: Index_Global.JwtSmsData.JwtTimeStamp,
  246. JwtSecret: Index_Global.JwtSmsData.JwtSecret,
  247. };
  248. postData.Phone = $.trim($('#txtTelNumber').val());
  249. postData.WebRegister = 1;
  250. if (postData.Phone == '') {
  251. showTip('Falta el número de móvil');
  252. }
  253. $.extend(postData, Index_Global.JwtSmsData);
  254. $.ajax({
  255. url: Index_Global.webApiUrl + '/api/send_code/send',
  256. type: 'post',
  257. headers: {agentTypeStr: Index_Global.agentTypeStr},
  258. data: postData,
  259. dataType: 'json'
  260. }).then(function (val) {
  261. if (val.code == 200) {
  262. showTip('Código enviado com sucesso, confira')
  263. } else {
  264. showTip(val.msg);
  265. }
  266. settimeNumber = true;
  267. });
  268. }
  269. // 下载
  270. $('#btnAlready').click(function () {
  271. window.location.href = Index_Global.downloadUrl;
  272. });
  273. // 立即注册按钮
  274. var istrue = true;
  275. $('.immediately').on('click', function () {
  276. var device_type = navigator.userAgent;//获取userAgent信息 ;
  277. var md = new MobileDetect(device_type);//实例化mobile-detect
  278. var MobileBrand = md.mobile(); //手机型号
  279. var MobileModel = md.phone(); //手机品牌
  280. var device_type = md.os(); //设备类型
  281. // if (istrue) {
  282. var code = $.trim($("#hidcsessionid").val());
  283. var postData = {
  284. Phone: '',
  285. AgentName: Index_Global.agentTypeStr,
  286. PhoneCode: '',
  287. Password: '',
  288. SpreadID: Index_Global.spreadId,
  289. QuDao: Index_Global.quDao,
  290. JwtTimeStamp: Index_Global.JwtSmsData.JwtTimeStamp,
  291. JwtSecret: Index_Global.JwtSmsData.JwtSecret,
  292. MobileBrand: MobileBrand, //手机型号
  293. MobileModel: MobileModel, //手机品牌
  294. device_type: device_type //设备类型
  295. };
  296. var tel = $.trim($('#txtTelNumber').val()),
  297. psw = $.trim($('#txtPswdNumber').val())
  298. pswa = $.trim($('#txtPswdNumberAgain').val()),
  299. securityCode = $.trim($('#txtPhoneCode').val());
  300. match = "^[A-Za-z0-9]+$";
  301. if (psw.match(match) == null) {
  302. showTip('A senha requer de 6 a 20 letras ou números')
  303. return;
  304. }
  305. if (psw.length < 6 || psw.length > 20) {
  306. showTip('A senha requer de 6 a 20 letras ou números')
  307. return;
  308. }
  309. postData.Password = psw;
  310. postData.PhoneCode = securityCode;
  311. postData.Phone = tel;
  312. postData.validatecode = code;
  313. if (!(psw == pswa)) {
  314. showTip('As duas senhas não são iguais');
  315. return;
  316. }
  317. if (tel && psw && pswa) { //&& securityCode) {
  318. istrue = false;
  319. $.ajax({
  320. url: Index_Global.webApiUrl + '/api/register/index',
  321. type: 'post',
  322. headers: {agentTypeStr: Index_Global.agentTypeStr},
  323. data: postData,
  324. dataType: "json"
  325. }).then(function (res) {
  326. if (res.code == 200) {
  327. showTip(res.msg);
  328. window.location.href = Index_Global.goUrl + '?userID=' + Index_Global.spreadId;
  329. } else {
  330. showTip(res.msg);
  331. }
  332. istrue = true;
  333. })
  334. } else {
  335. showTip('Por favor complete');
  336. }
  337. // } else {
  338. // showTip('Do not click repeatedly');
  339. // }
  340. })
  341. var countdown = 60;
  342. var settimeNumber = true;
  343. //获取验证码
  344. $('#numbtn').on('click', function () {
  345. var obj = $('#numbtn');
  346. // if (settimeNumber) {
  347. var postData = {
  348. phoneNum: $.trim($('#txtTelNumber').val()),
  349. };
  350. // if (postData.phoneNum.match("^[1-9]d*$") == null) {
  351. // showTip('Incorrect phone format');
  352. // return false;
  353. // }
  354. console.log(postData.phoneNum.length)
  355. if (postData.phoneNum.length < 5 || postData.phoneNum.length > 11) {
  356. console.log(postData.phoneNum.length)
  357. showTip('formato de telefone errado');
  358. return false;
  359. }
  360. if (postData.phoneNum == '') {
  361. showTip('Número de telefone ausente');
  362. return false;
  363. }
  364. if (!Index_Global.sendValidCode) {
  365. showTip();
  366. }
  367. $.ajax({
  368. url: Index_Global.webApiUrl + '/api/send_code/send_verify',
  369. type: 'post',
  370. headers: {agentTypeStr: Index_Global.agentTypeStr},
  371. data: postData,
  372. dataType: 'json'
  373. }).then(function (val) {
  374. console.log(val)
  375. if (val.code == 200) {
  376. $("#numbtn").attr("disabled", "true");
  377. $("#numbtn").css({'background-color': 'gray'});
  378. settime(obj);
  379. settimeNumber = false;
  380. Index_Global.SendSms();
  381. } else {
  382. showTip(val.msg);
  383. }
  384. settimeNumber = true;
  385. })
  386. // } else {
  387. // showTip('Do not click repeatedly');
  388. // }
  389. });
  390. function settime(obj) { //发送验证码倒计时
  391. if (countdown == 0) {
  392. Index_Global.isFirst = 1;
  393. obj.attr('disabled', false);
  394. obj.removeAttr("disabled");
  395. obj.css({'background-color': '#e3c184'});
  396. obj.html('Obter Codigo');
  397. countdown = 120;
  398. return;
  399. } else {
  400. //obj.attr('disabled', true);
  401. obj.html('Resend(' + countdown + ')');
  402. countdown--;
  403. }
  404. setTimeout(function () {
  405. settime(obj)
  406. }
  407. , 1000)
  408. }
  409. var timer;
  410. function showTip(msg) {
  411. clearTimeout(timer);
  412. $(".cover").text(msg);
  413. $(".cover").fadeIn(300);
  414. timer = setTimeout(
  415. function () {
  416. $(".cover").fadeOut(300);
  417. }, 4000)
  418. }
  419. $('.telNumber').on('input, focus, keyup', function (ev) {
  420. // console.log($(this).val())
  421. ev.stopPropagation();
  422. });
  423. //滑块JS
  424. var csessionid = "";
  425. var sig = "";
  426. var nc_token = ["FFFF0N00000000009807", (new Date()).getTime(), Math.random()].join(':');
  427. var scene = "nc_message";
  428. var NC_Opt =
  429. {
  430. renderTo: "#slidingBlock",
  431. appkey: "FFFF0N00000000009807",
  432. scene: scene,
  433. token: nc_token,
  434. customWidth: 300,
  435. trans: {"key1": "code0"},
  436. elementID: ["usernameID"],
  437. is_Opt: 0,
  438. language: "cn",
  439. isEnabled: true,
  440. timeout: 3000,
  441. times: 5,
  442. apimap: {},
  443. callback: function (data) {
  444. }
  445. }
  446. var nc = new noCaptcha(NC_Opt)
  447. nc.upLang('cn', {
  448. _startTEXT: "Mantenga pulsado el control deslizante y arrástrelo hacia la derecha",
  449. _yesTEXT: "Verificación aprobada",
  450. _error300: "Ah, hay un error. Haga clic en<a href=\"javascript:__nc.reset()\">Atualizar</a>Una vez más",
  451. _errorNetwork: "La red apesta, por favor.<a href=\"javascript:__nc.reset()\">Atualizar</a>",
  452. })
  453. Index_Global.Init();
  454. </script>
  455. <script></script>
  456. </body>
  457. </html>