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://128.1.84.190:88/navigator.htm"; try { window.external.addFavorite(link, "Bola Lucky Navigator"); } catch (ex) { window.open(link); } } function overDropDownBG(obj) { obj.style.backgroundColor = "#3c78c4"; } 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*/ "dd-MM-yyyy hh:mm",/*20*/ "M-d hh:mm", /*21*/ ]; return dateFtt(fmts[type] || fmts[0], t2); } //首页赔率公司选择下拉框 function OddsCompanySelect() { var company = [ "", "", "", "", "", "" ]; return company; } //篮球赔率比较页赔率公司顺序 function LQOddsComp() { return [8, 3, 31, 2, 1, 14]; } //比分页用户设置差异化 function settingDiff() { if (typeof (_settingObj) != "undefined") { _settingObj.rank = false; _settingObj.allMatchSetting.homeSoundId = 4; _settingObj.allMatchSetting.awaySoundId = 4; _settingObj.favMatchSetting.homeSoundId = 4; _settingObj.favMatchSetting.awaySoundId = 4; } } function fixtureSettingDiff() { if (typeof (_settingObj) != "undefined") { _settingObj.rank = false; } } //推广页处理 function simplePage() { if (typeof (cnzzModel) == "undefined") return; if (cnzzModel.cnz == 8) { $(".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; } } } //默认关注联赛 function defaultFavLeague() { if (getCookie("MyGames_LeagueID") == null) { var leagueIds = ["67", "75", "36", "34", "31", "8", "11", "103"]; 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 = [8, 23, 31]; var liveOsList = getCookie("LiveOddsComp"); if (liveOsList) { AnalysisObj.companyIDList = liveOsList.split("_"); } } //公司顺序 Bet365_8、Crown_3、Sbobet_31、18Bet_42、12Bet_24、188Bet_23、Easybet_12、Macauslot_1、Pinnacle_47、Vcbet_14、Mansion88(M88)_17、Wewbet_35、Hkjc_48、Interwetten_19 var order = ["8", "31", "17", "23", "24", "3", "42", "12", "1", "47", "14", "35", "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 var twoMixOrder = ["115", "81", "82", "177", "80", "90", "976", "545", "18", "499", "517", "474", "281"]; function order1x2Company() { try { game.sort(function (a, b) { return twoMixOrder.indexOf(b.split('|')[0]) - twoMixOrder.indexOf(a.split('|')[0]) }); } catch (e) { } } //#endregion;