$("body").on("click", ".layui-layer-setwin", function() { chart.createLineChart(oddsType, oddslog, "皇冠", "chart_one"); chart.createLineChart(oddsType, oddslog1, "利记", "chart_two"); chart.createLineChart(oddsType, oddslog2, "易胜博", "chart_three"); chart.createLineChart(oddsType, oddslog3, "BET365", "chart_four"); $(".highcharts-container").width("340px"); $(".highcharts-container").height("320px"); $("#highcharts-0").unbind(); openWindow = null; bindOddsChart() }); function bindOddsChart() { if ($(".highcharts-container").length > 1) { $(".highcharts-container").click(function(a) { var d; var c = $(this).parent().attr("id"); var b; b = layer.open({ title: [$(this).find(".highcharts-title").text(), "text-align:center"], type: 1, shadeClose: false, area: ["1200px", "620px"], scrollbar: false, content: $(this) }); $(this).width("1200px"); $(this).height("540px"); if (c == "chart_one") { d = oddslog } else { if (c == "chart_two") { d = oddslog1 } else { if (c == "chart_three") { d = oddslog2 } else { if (c == "chart_four") { d = oddslog3 } } } } chart.createLineChart(oddsType, d, "", $(this).attr("id")) }) } } (function() { getMatchStatusHtml = function(b) { if (b.runStatus == 0) { var c = "未开场 上半场 中场 下半场 完场".split(" "); html = "{0}".format(c[b.status]) } else { var a = " 取消 腰斩 改期 中断 待定".split(" "); html = "{0}".format(a[b.runStatus]) } return html } ; matchOddsCore.onUpdateMatch(function(a, b) { $("#match_" + a.id + " .matchscore").html("{0}:{1}".format(b.homeScore, b.guestScore)) }); matchFilter.Init = function() { (function() { if (matchFilter.getCurrentLang() == LANG.Guo) { switchTab.Select($("#div_lang .switchtab:eq(0)")) } else { switchTab.Select($("#div_lang .switchtab:eq(1)")) } } )(); matchOddsCore.loaddata({ isOddsPriority: false, matchid: page.matchID }, 1) } ; matchOddsCore.onUpdateOdds(function(d, b) { var a = "#match_" + d.matchID; var e = [d.asia, d.europe, d.size]; var c = [b.asia, b.europe, b.size]; var f = ["asia", "europe", "size"]; new ArrayEx(e).Each(function(h, i) { var g = c[i]; new ArrayEx(h).Each(function(l, j) { var k = g[j]; new ArrayEx(l[1]).Each(function(q, r) { if (q != k[1][r]) { var o = $(a + " .{0}_{1}_{2}_{3}".format(f[i], d.companyID, j, r)); if (r == 1 && i != 1) { o.text(DecimalToNormal(k[1][r])) } else { o.text(k[1][r].toFixed(2)) } SetOddsFontColor(o, l, k, r); var m = getOddsBgCss(k, r); if (!IsEmpty(m)) { var n = $(a + " .{0}_{1}_{2}_{3}_bg".format(f[i], d.companyID, j, r)); var p = "{0}_{1}_{2}_{3}_bg_{4}".format(f[i], d.companyID, j, r, h.matchID); BackgroundTimer.SetEle(p, n[0], m) } } }) }) }) }) } )(); matchFilter.Init = function() {} ; $().ready(function() { $("body").delegate(".js_overfloat", "mouseover", function() { var c = $(".js_overfloat").length; var b = $(".js_overfloat").index($(this)); if (c > 10 && b >= c - 5) { $(this).addClass("hovermtop") } else { $(this).addClass("hoverm") } }); $("body").delegate(".js_overfloat", "mouseout", function() { var c = $(".js_overfloat").length; var b = $(".js_overfloat").index($(this)); $(".js_overfloat").removeClass("hovermtop hoverm") }); var a = $("#mstatus").attr("result"); if (a >= 1 && a <= 3) { $(".gun").show(); $(".ji").hide(); $(".chartnav span").removeClass("chartnav_onesc"); $(".gunqiu").addClass("chartnav_onesc") } $("#zsdb").addClass("tabOnsec"); if (!singlechart) { chart.createLineChart(oddsType, oddslog, "皇冠", "chart_one"); chart.createLineChart(oddsType, oddslog1, "利记", "chart_two"); chart.createLineChart(oddsType, oddslog2, "易胜博", "chart_three"); chart.createLineChart(oddsType, oddslog3, "BET365", "chart_four") } else { chart.createLineChart(oddsType, oddslog, "", "chart_single", true) } $(".chartnav span").click(function() { var b = $(this).index(); if (b == 0) { $(".ji").show(); $(".gun").hide(); $(".chartnav span").removeClass("chartnav_onesc"); $(this).addClass("chartnav_onesc") } else { $(".gun").show(); $(".ji").hide(); $(".chartnav span").removeClass("chartnav_onesc"); $(this).addClass("chartnav_onesc") } }); bindOddsChart() });