function getBkHdpDetailUrl(sclassId, teamId, matchSeason, halfOrAll) { var url = _basketballWebDomain + "team/handicapdetail?sclassid=" + sclassId + "&teamid=" + teamId + "&matchseason=" + matchSeason + "&halforall=" + halfOrAll; return url; } function getBkOuDetailUrl(sclassId, teamId, matchSeason, halfOrAll) { var url = _basketballWebDomain + "team/ouhandicapdetail?sclassid=" + sclassId + "&teamid=" + teamId + "&matchseason=" + matchSeason + "&halforall=" + halfOrAll; return url; } function getFbPanluUrl(scheduleId, companyId) { var url = "/soccer/oddsstats/" + scheduleId; if (typeof (companyId) != "undefined" && companyId != '') url += "?cid=" + companyId; return url; } function openFbPanlu(scheduleId, companyId) { window.open(getFbPanluUrl(scheduleId, companyId),'', 'scrollbars=yes,resizable=yes,width=662, height=650,left=50,top=100'); } function getHistoryCornerUrl(scheduleId) { var url = "/history/corner/" + scheduleId; return url; } function openHistoryCornerUrl(scheduleId) { window.open(getHistoryCornerUrl(scheduleId)); } function SetShuntingFav() { var link = "http://171.244.33.244:9898/navigator.htm"; try { window.external.addFavorite(link, "Bongdalu Navigator"); } catch (ex) { window.open(link); } } function timeToText(t2, type) { type = type || 0; var fmts = [ "dd/MM/yyyy hh:mm:ss",/*0*/ "dd/MM/yyyy hh:mm:ss",/*1*/ "dd/MM/yyyy",/*2*/ "dd/MM",/*3*/ "hh:mm",/*4*/ "t2 dd",/*5*/ "dd/MM hh:mm",/*6*/ "dd/MM/yy",/*7*/ "yyyy",/*8*/ "dd/MM/yyyy",/*9*/ "t2 dd hh:mm",/*10*/ "hh:mm,ww,dd/MM/yyyy",/*11*/ "dd/MM/yyyy(w)",/*12*/ "dd/MM/yyyy hh:mm w",/*13*/ "dd/MM hh:mm",/*14*/ "dd/MM hh:mm",/*15*/ "dd/MM/yy",/*16*/ "dd/MM/yyyy",/*17*/ "dd/MM/yyyy hh:mm",/*18*/ "d/M/yyyy hh:mm",/*19*/ "yyyy.MM.dd hh:mm",/*20*/ "M-d hh:mm", /*21*/ "dd/MM/yyyy hh:mm", /*22*/ "dd/MM/yyyy hh:mm" /*23*/ ]; return dateFtt(fmts[type] || fmts[0], t2); } function overDropDownBG(obj) { obj.style.backgroundColor = "#3d980a"; } //安全着陆页入口显隐处理 function simplePage() { if (typeof (cnzzModel) == 'undefined') return; if (cnzzModel.cnz == 7) { document.getElementsByClassName("data_td")[0].style.display = "table-cell"; var toolimg = document.getElementsByClassName("toolimg"); for (var i = 0; i < toolimg.length; i++) { toolimg[i].style.display = "table-cell"; } } if (cnzzModel.cnz == 5) { $(".loginBox").css("display", "none"); $(".liveOddsFilter").css("display", "none"); var tvLinks = $(".tvLinkBtn"); for (var i = 0; i < tvLinks.length; i++) { tvLinks[i].innerHTML = " "; } if (typeof (_settingObj) != "undefined") { _settingObj.showCorner = false; } } if (cnzzModel.cnz == 11 || cnzzModel.cnz == 12) { $(".oddsHead").attr("style", "display:table-cell !important"); $(".oddstd").attr("style", "display:table-cell !important"); } } //首页赔率公司选择下拉框 function OddsCompanySelect() { var company = [ "", "", "", "", "", "", "" ]; return company; } //篮球赔率比较页赔率公司顺序 function LQOddsComp() { return [31, 8, 3, 1, 2, 14]; } //展示进行中的赛事 function ShowInPlay() { //清空旧选择 filter.league = new Array(); filter.state = 1; SelectReset(1); SelectAll(2); SelectAll(3); SelectAll(4); var i; var hh = 0; //先全部隐藏,再显示进行中的赛事 var trs = document.getElementById("table_live").getElementsByTagName("tr"); for (var i = 1; i < trs.length; i++) { if (trs[i].getAttribute("index") != null) { trs[i].style.display = "none"; if (trs[i + 1]) trs[i + 1].style.display = "none"; if (!isFromSch && trs[i + 2]) trs[i + 2].style.display = "none"; } } if (orderby == "league") { if ($('.Leaguestitle')) $('.Leaguestitle').hide(); } for (var i = 1; i <= matchcount; i++) { var isShow = true; //状态过滤 if (filter.state == 1 && parseInt(A[i][8]) <= 0) { isShow = false; } if (isShow) { var elem = null; elem = document.getElementById("tr1_" + A[i][0]); if (elem) elem.style.display = ""; elem = document.getElementById("tr2_" + A[i][0]); if (elem) { if ((typeof (_showRemark) != "undefined" && _showRemark) && (!isFromSch && A[i][22] != "") || (isFromSch && (A[i][19] != "" || A[i][21] != ""))) { elem.style.display = ""; } else { elem.style.display = "none"; } } if (orderby == "league" && document.getElementById("tr_" + A[i][1])) document.getElementById("tr_" + A[i][1]).style.display = ""; } else hh = hh + 1; } document.getElementById("hiddencount").innerHTML = hh; SyncMatchClass(); if (typeof HandleDateTitle != "undefined" && HandleDateTitle instanceof Function) HandleDateTitle(); if (typeof InitFlashShow != "undefined" && InitFlashShow instanceof Function) InitFlashShow(); if (document.getElementById("topLine")) { if (matchcount > 0 && matchcount == hh) { $("#topLine").show(); } else { $("#topLine").hide(); } if (typeof (HandleTitle) == "function") HandleTitle(); } if (typeof (reorderAd) == "function") reorderAd(); if (typeof (InitTipsNum) != "undefined") InitTipsNum(); if (typeof (InitHeadShow) != "undefined") InitHeadShow(); hideResultTr(); } function OpenMobile() { if (!CheckEmpty(_touchWebDomain)) window.open(_touchWebDomain + "?from=pc"); } //比分页用户设置差异化 function settingDiff() { if (typeof (_settingObj) != "undefined") { _settingObj.forAllMatch = false; } } //默认关注联赛 function defaultFavLeague() { if (getCookie(_favLeagueKey) == null) { var leagueIds = ["766", "1248", "103", "31", "34", "36", "11", "8", "113"]; Config.setFavLeagueIds(leagueIds); } } if (typeof (Config) != "undefined") setTimeout("defaultFavLeague()"); //#region 足球详情内页 function LoadLiveData(result) { var data = "" if (!CheckEmpty(result)) { result = JSON.parse(result); if (result.ErrCode != 0) { ReOrderAd(); return; } else { data = result.Data; if (!CheckEmpty(data)) { var difCom = data.split('!'); if (difCom.length > 0) { var html = new Array(); html.push('
'); html.push('

' + _locModel.T.T_TIL_LiveOdds); var oddsTbl = new Array(); var compIds = ""; for (var i = 0; i < difCom.length; i++) { var record = difCom[i].split('#'); if (record.length < 2) continue; var compId = record[0].split(',')[1]; var odds = record[1]; oddsTbl.push("") compIds += compId + ","; } if (compIds != "") { html.push(''); } html.push(` `) html.push('

'); html.push(oddsTbl.join("")); html.push('
'); html.push(' : ' + _locModel.T.T_HistoryData + '   '); html.push(' : ' + _locModel.T.T_LastestData + '
'); html.push('
'); html.push(''); document.getElementById("oddsDiv").innerHTML = html.join(""); if (document.getElementById("detail-oddsSel")) { //判断用户是否有选择记录 var cookieCompanyId = getCookie("detail_company"); if (cookieCompanyId != null && compIds.indexOf(cookieCompanyId + ',') != -1) { CompanyId = cookieCompanyId; } if (CompanyId == 0) CompanyId = document.getElementById("detail-oddsSel").options[0].value; SwitchOddsComp(CompanyId); } needInitOddsType = false; ReOrderAd(); } } else { ReOrderAd(); } } } } function SwitchOddsComp(compId) { $(".oddsDiv").hide(); $("#oddsDiv_" + compId).show(); CompanyId = compId; writeCookie("detail_company", compId); $("#detail-oddsSel").val(CompanyId); } //#endregion //#region 足球分析内页 //Live Odds Comparison板块赔率公司选择弹窗 //默认选择的公司 if (typeof (AnalysisObj) != "undefined") { AnalysisObj.companyIDList = [31, 8, 23, 17, 3]; var liveOsList = getCookie("LiveOddsComp"); if (liveOsList) { AnalysisObj.companyIDList = liveOsList.split("_"); } } //公司顺序 Sbobet_31、Bet365_8、188Bet_23、Mansion88(M88)_17、Crown_3、12Bet_24、18Bet_42、Macauslot_1、Easybet_12、Vcbet_14、Wewbet_35、Pinnacle_47、Hkjc_48、Interwetten_19 var order = ["31", "8", "23", "17", "24", "3", "42", "1", "12", "14", "35", "47", "48", "19"]; //选择窗口公司排序 function orderCompany() { var company = new Array(); var cmpList = AnalysisObj.cmpList; for (var i = 0; i < cmpList.length; i += 2) { company.push([cmpList[i].trim(" "), cmpList[i + 1].trim(" ")]); } company.sort(function (a, b) { if (order.indexOf(a[0]) == -1 || order.indexOf(b[0]) == -1) return order.indexOf(b[0]) - order.indexOf(a[0]); return order.indexOf(a[0]) - order.indexOf(b[0]); }); AnalysisObj.cmpList = new Array(); for (var i = 0; i < company.length; i++) { var item = company[i]; AnalysisObj.cmpList.push(item[0], item[1]); } } //赔率表格公司排序 function orderTableCompany(allCompOdds) { allCompOdds.sort(function (a, b) { if (order.indexOf(a[0]) == -1 || order.indexOf(b[0]) == -1) return order.indexOf(b[0]) - order.indexOf(a[0]); return order.indexOf(a[0]) - order.indexOf(b[0]); }); } //#endregion //#region 足球1x2赔率内页 //公司顺序 Bet365_281、Crown_545、Sbobet_474、18Bet_976、12Bet_18、188Bet_499、 Easybet_90、Macauslot_80、Pinnacle_177、 Ladbrokes_82、 Vcbet_81、William Hill_115、Mansion88_517、10Bet_16 var twoMixOrder = ["16", "545", "18", "517", "499", "281", "474"]; function order1x2Company() { try { game.sort(function (a, b) { return twoMixOrder.indexOf(b.split('|')[0]) - twoMixOrder.indexOf(a.split('|')[0]) }); } catch (e) { } } //#endregion basketInPage = { gethost: function () { return _mainWebDomain.substr(0, _mainWebDomain.length - 1); }, analysis: function (id) { window.open(this.gethost() + "/bong-ro/analysis/" + id); }, oddscomp: function (id) { window.open(this.gethost() + "/oddscompbasket/" + id); }, euroodds: function (id) { window.open(this.gethost() + "/bong-ro/1x2-" + id); }, playertech: function (id) { window.open(this.gethost() + "/statistics/" + id); } };