jy988s.com
Open in
urlscan Pro
147.92.47.80
Public Scan
URL:
https://jy988s.com/common/template/member/common.js
Submission: On August 18 via api from US — Scanned from CA
Submission: On August 18 via api from US — Scanned from CA
Form analysis
0 forms found in the DOMText Content
var siteKey = $("#verifySiteKey").val(); var hideVerifyCode = $("#hideVerifyCode").val(); var verifyDomain = $("#verifyDomain").val(); var hasRegisterVerify = $("#hasRegisterVerify").val(); var hasLoginVerify = $("#hasLoginVerify").val(); var verifySeuccessParams,verifySeuccessUrl,verifySite,verifySeuccessType,verifySeuccessReUrl; //验è¯ç function reloadImg(type,reg){ if (siteKey) { getToken(type); } if (!hideVerifyCode || hideVerifyCode == false || hideVerifyCode == 'false') { var url = ''; if(reg){ url = base + "/regVerifycode.do?timestamp=" + (new Date().getTime()) }else{ url = base + "/verifycode.do?timestamp=" + (new Date().getTime()) } $(".validcode").attr("src", url); } } $(function(){ $('input#verifyCode').click(function(){ reloadImg("login"); }); $("#RverifyCode").click(function(){ reloadImg("register",1); }); /*$('.validcode').click(function(){ reloadImg("register"); });*/ if ($('input#verifyCode').length) { $('input#verifyCode').click(); } if ($("#RverifyCode").length) { $("#RverifyCode").click(); } // reloadImg("login"); // reloadImg("register",1); //setInterval(mem_refresh, 5000); }); //A站登录 function loginA(){ toLoginMember(); } //B站登录 function loginB(){ toLoginMember('B'); } //D站登录 function loginD(){ toLoginMember('D'); } //B站备用登录 function loginBY(){ toLoginMember('B','by'); } function toLoginMember(p,tmp){ var username,password,verifyCode; var url = base + '/lottery/index.do'; if(p == 'B'){ url = base + '/index.do'; }else if(p == 'D'){ url = base + '/lotteryV3/index.do'; } if(tmp){ username = $('input#username1').val(); password = $('input#password1').val(); verifyCode = $('input#verifyCode1').val(); }else{ username = $('input#username').val(); password = $('input#password').val(); verifyCode = $('input#verifyCode').val(); } login_tmp(url,username,password,verifyCode); } function login_tmp(url,username,password,verifyCode){ if(!username){ alert("用户åä¸èƒ½ä¸ºç©º"); $('input#username').focus(); return; } else if(!password){ alert("密ç ä¸èƒ½ä¸ºç©º"); $('input#password').focus(); return; } else if(password.length<6){ alert("密ç ä¸èƒ½å°äºŽ6ä½!"); $('input#password').focus(); return; } else if(!hideVerifyCode || hideVerifyCode == false || hideVerifyCode == 'false'){ if(!verifyCode){ alert("验è¯ç ä¸èƒ½ä¸ºç©º"); $('input#verifyCode').focus(); return; } } var data = {}; data["account"] = username; data["password"] = password; data["verifyCode"] = verifyCode; data["gToken"]= $("input#gToken").val(); if(hasLoginVerify){ verifySeuccessParams = data; verifySeuccessUrl=url; verifySite = 'login'; showVerify("login"); }else{ loginNew(data,url); } } function loginNew(data,url){ $.ajax({ url : base + "/login.do", type : "post", data : data, success : function(result, textStatus, xhr) { let accountId = result.accountId; var ceipstate = xhr.getResponseHeader("ceipstate") if (!ceipstate || ceipstate == 1) {// æ£å¸¸å“应 if(result.success){ window.location.href = url; }else if(result.code){ switch(result.code){ case "555": verification_qa(url,accountId); break; case "666": verification_check(url,accountId); break; } }else{ layer.alert("ä¸æ˜Žé”™è¯¯ï¼Œè¯·è”系客æœ", {icon: 2}); } } else if (ceipstate == 2) {// åŽå°å¼‚常 alert("åŽå°å¼‚常,请è”系管ç†å‘˜!"); $('.verify-overlay').hide(); refreshVerify('login','refresh'); reloadImg("login"); } else if (ceipstate == 3) { // 业务异常 alert(result.msg); $('.verify-overlay').hide(); refreshVerify('login','refresh'); reloadImg("login"); } } }); } //A站注册 function regA(){ toRegMember(); } //A站代ç†æ³¨å†Œ function daili(){ toRegMember('daili'); } //B站注册 function regB(){ toRegMember('B'); } //D站注册 function regD(){ toRegMember('D'); } function toRegMember(p){ var username = $('input#Rusername').val(); var password = $('input#Rpassword').val(); var repassword = $('input#Rrepassword').val(); var verifyCode = $('input#RverifyCode').val(); if(!username){ alert("用户åä¸èƒ½ä¸ºç©º!"); return false; } if(!password){ alert("密ç ä¸èƒ½ä¸ºç©º!"); return false; } if(password.length<6){ alert("密ç ä¸èƒ½å°äºŽ6ä½!"); return false; } if(!repassword){ alert("确认密ç ä¸èƒ½ä¸ºç©º!"); return false; } if(password != repassword){ alert("两次密ç ä¸ä¸€è‡´!"); return false; } if(!hideVerifyCode || hideVerifyCode == false || hideVerifyCode == 'false'){ if(!verifyCode){ alert("验è¯ç ä¸èƒ½ä¸ºç©º!"); return false; } } var data = getCommitData(); data["account"] = username; data["password"] = password; data["rpassword"] = repassword; data["verifyCode"] = verifyCode; data["gToken"]=$("input[name='gToken']").val(); var url = base + '/index.do'; var turl = base + '/register.do'; if(!p){ url = base + '/lottery/index.do'; } if(p == 'daili'){ url = base + '/daili'; turl = base + '/agtregister.do'; }else if(p == 'D'){ url = base + '/lotteryV3/index.do'; } if(p=='daili'){ registerNew(data,url,turl); }else{ if (hasRegisterVerify) { verifySeuccessParams = data; verifySeuccessUrl=url; verifySeuccessReUrl=turl; verifySite = 'register'; showVerify("register"); } else { registerNew(data,url,turl); } } } function registerNew(data,url,turl){ $.ajax({ url: turl, data : { data : JSON.encode(data) }, type:"POST", success : function(result, textStatus, xhr) { var ceipstate = xhr.getResponseHeader("ceipstate") if (!ceipstate || ceipstate == 1) {// æ£å¸¸å“应 if(!result.success){ $('.verify-overlay').hide(); refreshVerify("register","refresh"); alert(result.msg); }else{ alert("注册æˆåŠŸ!"); window.location.href = url; } } else if (ceipstate == 2) {// åŽå°å¼‚常 reloadImg("register",1); $('input#verifyCode').val(''); $('.verify-overlay').hide(); refreshVerify("register","refresh"); alert("åŽå°å¼‚常,请è”系管ç†å‘˜!"); } else if (ceipstate == 3) { // 业务异常 reloadImg("register",1); $('input#verifyCode').val(''); $('.verify-overlay').hide(); refreshVerify("register","refresh"); alert(result.msg); } }, complete: function(jqXHR ,textStatus){ var ceipstate = jqXHR.getResponseHeader("ceipstate"); let result =JSON.parse(jqXHR.responseText); if (!ceipstate || ceipstate == 1) {// æ£å¸¸å“应 if(!result.success){ $('.verify-overlay').hide(); refreshVerify("register","refresh"); }else{ window.location.href = url; } } else if (ceipstate == 2) {// åŽå°å¼‚常 reloadImg("register",1); $('input#verifyCode').val(''); $('.verify-overlay').hide(); refreshVerify("register","refresh"); } else if (ceipstate == 3) { // 业务异常 reloadImg("register",1); $('input#verifyCode').val(''); $('.verify-overlay').hide(); refreshVerify("register","refresh"); } } }); } function mem_refresh(){ $.ajax({ url: base + '/meminfo.do', type:"POST", success : function(result, textStatus, xhr) { var ceipstate = xhr.getResponseHeader("ceipstate") if (!ceipstate || ceipstate == 1) {// æ£å¸¸å“应 $('.station_money').html(result.money); } else if (ceipstate == 2) {// åŽå°å¼‚常 alert("åŽå°å¼‚常,请è”系管ç†å‘˜!"); } else if (ceipstate == 3) { // 业务异常 alert(result.msg); } } }); } //menu_首页 function toIndex(){ window.location.href = base + '/index.do' } //menu_å½©ç¥¨æ¸¸æˆ function toCp(code){ var url = base + '/index/games.do'; if(code){ url += '?lotCode=' + code; } window.location.href = url; } //menu_电åæ¸¸æˆ function toDz(){ window.location.href = base + '/index/egame.do' } //menu_体育赛事 function toTy(){ window.location.href = base + '/index/sport.do' } //menu_çœŸäººæ¸¸æˆ function toZr(){ window.location.href = base + '/index/real.do' } //menu_ä¼˜æƒ æ´»åŠ¨ function toAc(){ window.location.href = base + '/index/active.do' } //menu_帮助ä¸å¿ƒcode function userHelp(code){ if(!code){ alert('未æ£ç¡®è®¾ç½®code值!'); return false; } window.location.href = base + '/index/rookieHelp.do?code=' + code; } //button_å…费试玩 function toSw(){ window.open(base + '/registerGuestPage.do'); } //button_APP下载 function toDown(){ window.open(base + '/down.do'); } //button_手机投注 function toMobile(){ window.open(base + '/mobile'); } //button_代ç†ç™»å…¥ function toDaili(){ window.open(base + '/daili'); } //button_代ç†æ³¨å†Œ function toAgt(){ window.location.href = base + '/agtregpage.do' } //button_å…费注册 function toReg(){ window.location.href = base + '/regpage.do' } //button_在线ç¾åˆ° function toZxqd(){ window.open(base + '/index/signNew.do'); } //button_大转盘 function toDzp(){ window.open(base + '/index/luckyLottery.do'); } //button_红包 function toRed(){ window.open(base + '/index/redPackage.do'); } //button_公共页é¢çº¿è·¯æ£€æµ‹ function toXljc(){ window.open(base + '/user_xljc.do'); } //button_æ–°çª—æœ€æ–°æ¶ˆæ¯ function toNews(){ window.open(base + '/index/news.do'); } //=============登陆åŽ_会员登录ä¸å¿ƒ=============// function toCenter(p){ var url = ''; switch (p) { case 1: url = '/center/member/meminfo/page.do'; //会员ä¸å¿ƒ break; case 2: url ='/center/banktrans/deposit/page.do'; //在线å˜æ¬¾ break; case 3: url ='/center/banktrans/draw/page.do'; //在线å–款 break; case 4: url ='/center/banktrans/mnychg/page.do'; //é¢åº¦è½¬æ¢ break; case 5: url ='/center/record/betrecord/page.do'; //交易记录 break; case 6: url ='/center/news/message/page.do'; //æœªè¯»æ¶ˆæ¯ break; case 7: url ='/center/record/hisrecord/page.do'; //å¾€æ¥è®°å½• break; case 8: url ='/center/record/mnyrecord/page.do'; //è´¦å˜è®°å½• break; } window.open(base + url); } //设为首页 function SetHome() { var url = location.href; if (document.all) { document.body.style.behavior = 'url(#default#homepage)'; document.body.setHomePage(url); } else { alert("您好,您的æµè§ˆå™¨ä¸æ”¯æŒè‡ªåŠ¨è®¾ç½®é¡µé¢ä¸ºé¦–页功能,请您手动在æµè§ˆå™¨é‡Œè®¾ç½®è¯¥é¡µé¢ä¸ºé¦–页!"); } } //åŠ å…¥æ”¶è— param:sURL 收è—网å€, 收è—æ ‡é¢˜ function AddFavorite() { var sTitle = document.title; var sURL = location.href; sURL = encodeURI(sURL); try { window.external.addFavorite(sURL, sTitle); } catch (e) { try { window.sidebar.addPanel(sTitle, sURL, ""); } catch (e) { alert("åŠ å…¥æ”¶è—失败,请使用Ctrl+Dè¿›è¡Œæ·»åŠ ,或手动在æµè§ˆå™¨é‡Œè¿›è¡Œè®¾ç½®."); } } } //æ–‡å—é—ªçƒ //new toggleColor('.mfsw', [ 'yellow', '#FF0000' ], 1000); function toggleColor( id , arr , s ){ var self = this; self._i = 0; self._timer = null; self.run = function(){ if(arr[self._i]){ $(id).css('color', arr[self._i]); } self._i == 0 ? self._i++ : self._i = 0; self._timer = setTimeout(function(){ self.run( id , arr , s); }, s); } self.run(); } function yicaipiao(){ if(!isLogin || isLogin == 'false'){ alert('请先登录å†è¿›è¡Œæ¸¸æˆ!'); return; } var windowOpen = window.open(); var result = null; $.ajax({ url: base + "/forwardTtLottery.do", type:'POST', async:false, success:function(res){ result = res; } }); if(result.success){ windowOpen.location.href = result.url; }else{ var new_doc = windowOpen.document.open("text/html","replace"); new_doc.write("<script>alert('" + (result.msg || result.description || result.message) + "');window.close();<\/script>"); new_doc.close(); } } function getToken(action) { if (siteKey) { grecaptcha.ready(function () { grecaptcha.execute(siteKey, {action: action}).then(function(token) { if (action == 'login') { $("input#gToken").val(token); } else if (action == 'register') { $("input[name='gToken']").val(token) } }); }); } } function showVerify(code) { (hasLoginVerify && code ==='login' && $("#verify-frame-login-id").show()&&$(".verify-overlay").show()) || (hasRegisterVerify && code ==='register' && $("#verify-frame-register-id").show() && $(".verify-overlay").show()) } function hideVerify(code){ (hasLoginVerify && code ==='login' && $("#verify-frame-login-id").hide()&&$(".verify-overlay").hide()) || (hasRegisterVerify && code ==='register' && $("#verify-frame-register-id").hide()&&$(".verify-overlay").hide()) } function refreshVerify(code,msg) { if ( code=== 'login' && hasLoginVerify) { let $frame = $("#verify-frame-login-id"); let url = $frame.attr("src"); url=url+"×tamp="+new Date().getTime(); $frame.attr("src",url); }else if (code === 'register' && hasRegisterVerify) { let $frame = $("#verify-frame-register-id"); let url = $frame.attr("src"); url=url+"×tamp="+new Date().getTime(); $frame.attr("src",url); } } // aé¡µé¢ window.addEventListener("message", function( event ) { if (event.origin !== verifyDomain) return; if (event.data.status) { if (verifySite ==='login') { hideVerify("login"); loginNew(verifySeuccessParams,verifySeuccessUrl); } else { hideVerify("register"); registerNew(verifySeuccessParams,verifySeuccessUrl,verifySeuccessReUrl); } }else { if(event.data.msg){ layer.msg(event.data.msg,{icon:5}); if(verifySite ==='login'){ refreshVerify('login','refresh'); }else{ refreshVerify("register","refresh"); } } } });