var url = "http://www.qqzb.tv/paihang";; var imgurl = $("body").attr("data-domainstatic"); //############### var qharrmc = $(".pc_ss_nav").find("li").eq(0).attr("data-py"); var huancundata = {}; //############### var yg_conten; $(function(){ $('.pm_shuming p').hide(); $('.pm_shuming p').eq(0).show(); var catid = $(".ss_fl_list li").eq(0).attr("data-catid"); var comid = $(".ss_fl_list li").eq(0).attr("data-comid"); var type = $(".jf_title_lb li").eq(0).attr("data-type"); $(".jf_title_lb li").each(function(i, o) { if ($(o).attr("data-catid") != catid) { $(o).hide(); }; if ($(o).attr("data-catid") == catid) { $(o).show(); }; }); $(".jf_title_lb li").eq(0).addClass("jf_hover"); $("#dqlebiao_bt").addClass("jifeng"); $("#dqlebiao_bt").html("
  • 排名
  • 球队
  • 场次
  • 进球
  • 失球
  • 净胜球
  • 积分
  • "); $("#dqlebiao").addClass("jifeng"); $.ajax({ url: url, cache: false, type: 'post', async: false, dataType: 'json', data: { comid: comid, type: type, catid: catid, }, success: function(res) { var arr = res.arr; huancundata[qharrmc + "_" + type] = arr; if (res.arr == undefined) { $('#dqlebiao').append("

    暂无相关数据

    "); $(".pm_shuming_wap").hide(); } else { if (arr.length > 0) { $.each(arr, function(index, v) { var jfcc = parseInt(v.win)+parseInt(v.ping)+parseInt(v.loss); var listHtml = ""; $('#dqlebiao').append(listHtml); }); }; }; }, error: function(e) { console.log(e); }, }); }); $('.jf_title_lb li').click(function(){ var towtype = $(this).attr("data-type"); var towcomid = ''; var towcatid = ''; var qhhtml = ''; $(".ss_fl_list li").each(function(i, o) { if ($(o).hasClass("navtow_hover")) { towcomid = $(o).attr("data-comid"); towcatid = $(o).attr("data-catid"); qhhtml = $(o).attr('data-py'); }; }); $(this).addClass("jf_hover").siblings().removeClass("jf_hover"); var pandang = $(this).attr('ht'); if (pandang == "jifenbang") { if ($(this).attr("data-catid") == "1") { // jifengbang(towcomid, towtype, towcatid); // zqjfb(towcomid, towtype, towcatid); if(qhhtml == 'zhongchao'){ $('.duo_quyu').hide(); $('.duo_quyu_yg').hide(); $('.duo_quyu_sf').hide(); zcjfb(towcomid, towtype, towcatid); $('.duo_quyu_zc').show(); }else if(qhhtml == 'yaguan'){ $('.duo_quyu').hide(); $('.duo_quyu_zc').hide(); $('.duo_quyu_sf').hide(); ygjfb(towcomid, towtype, towcatid); $('.duo_quyu_yg').show(); }else if(qhhtml == 'ouguan'){ $('.duo_quyu').hide(); $('.duo_quyu_zc').hide(); $('.duo_quyu_sf').hide(); ygjfb(towcomid, towtype, towcatid); $('.duo_quyu_yg').show(); }else{ $('.duo_quyu_zc').hide(); $('.duo_quyu_yg').hide(); $('.duo_quyu_sf').hide(); $('.duo_quyu').show(); zqjfb(towcomid, towtype, towcatid); } }; if ($(this).attr("data-catid") == "2") { $('.duo_quyu_zc').hide(); $('.duo_quyu_yg').hide(); $('.duo_quyu_sf').hide(); $('.duo_quyu').show(); nbajfb(towcomid, towtype, towcatid); }; }; if (pandang == "sheshoubang") { // sheshouban(towcomid, towtype, towcatid); $('.duo_quyu_zc').hide(); $('.duo_quyu_yg').hide(); $('.duo_quyu_sf').hide(); $('.duo_quyu').show(); zqssb(towcomid, towtype, towcatid); }; if (pandang == "gerenbang") { $('.duo_quyu_zc').hide(); $('.duo_quyu_yg').hide(); $('.duo_quyu_sf').hide(); $('.duo_quyu').show(); lqjfb(towcomid, towtype, towcatid); }; if(pandang == "shengfubang"){ $('.duo_quyu_zc').hide(); $('.duo_quyu_yg').hide(); $('.duo_quyu').hide(); $('.duo_quyu_sf').show(); nbasf(towcomid, towtype, towcatid); }; }); $('.ss_fl_list li').click(function(){ var xscatid = $(this).attr("data-catid"); var xscomid = $(this).attr("data-comid"); var xstype = ''; var qhhtml = $(this).attr('data-py'); qharrmc = $(this).attr("data-py"); // dqpmsm(qhhtml); if(qharrmc == 'cba'){ $($('.jf_title_lb')).hide(); }else{ $($('.jf_title_lb')).show(); } $(this).addClass("navtow_hover").siblings().removeClass("navtow_hover"); $(".jf_title_lb li").each(function(i, o) { if ($(o).attr("data-catid") == xscatid) { $(o).show(); } else { $(o).hide(); }; }); $('.jf_title_lb li[data-catid^=' + xscatid + ']').eq(0).addClass("jf_hover").siblings().removeClass("jf_hover"); if(xscatid == "1"){ $("#dqlebiao_bt").addClass("peiming"); $("#dqlebiao").attr("class", "list_xq jifeng"); $("#dqlebiao_bt").attr("class", "biaotitle jifeng"); $(".jf_title_lb li").each(function(i, o) { if ($(o).hasClass("jf_hover")) { xstype = $(o).attr("data-type"); }; }); $('.pm_shuming p').hide(); $('.pm_shuming p[data-comid="'+xscomid+'"]').show(); if(qhhtml == 'zhongchao'){ $('.duo_quyu').hide(); $('.duo_quyu_yg').hide(); $('.duo_quyu_sf').hide(); zcjfb(xscomid, xstype, xscatid); $('.duo_quyu_zc').show(); }else if(qhhtml == 'yaguan'){ $('.duo_quyu').hide(); $('.duo_quyu_zc').hide(); $('.duo_quyu_sf').hide(); ygjfb(xscomid, xstype, xscatid); $('.duo_quyu_yg').show(); }else if(qhhtml == 'ouguan'){ $('.duo_quyu').hide(); $('.duo_quyu_zc').hide(); $('.duo_quyu_sf').hide(); ygjfb(xscomid, xstype, xscatid); $('.duo_quyu_yg').show(); }else{ $('.duo_quyu_zc').hide(); $('.duo_quyu_yg').hide(); $('.duo_quyu_sf').hide(); $('.duo_quyu').show(); zqjfb(xscomid, xstype, xscatid); } }else{ $('.duo_quyu_zc').hide(); $('.duo_quyu_yg').hide(); $('.duo_quyu_sf').hide(); $('.duo_quyu').show(); $(".jf_title_lb li").each(function(i, o) { if ($(o).hasClass("jf_hover")) { xstype = $(o).attr("data-type"); }; }); var datapy = $(this).attr("data-py"); if (datapy == "nba") { nbajfb(xscomid, xstype, xscatid); }; if (datapy == "cba") { cbajfb(xscomid, xstype, xscatid); }; } }); //足球积分榜 function zqjfb(comid, type, catid) { $(".pm_shuming").show(); $("#dqlebiao_bt").html("
  • 排名
  • 球队
  • 场次
  • 进球
  • 失球
  • 净胜球
  • 积分
  • "); $("#dqlebiao").attr("class", "list_xq jifeng"); $("#dqlebiao_bt").attr("class", "biaotitle jifeng"); if (huancundata[qharrmc + "_" + type] == undefined) { $.ajax({ url: url, cache: false, type: 'post', async: false, dataType: 'json', data: { comid: comid, type: type, catid: catid, }, success: function(res) { var arr = res.arr; if (res.arr == undefined) { huancundata[qharrmc + "_" + type] = []; } else { huancundata[qharrmc + "_" + type] = arr; } $('#dqlebiao').html(''); if (res.arr == undefined) { $('#dqlebiao').append("

    暂无相关数据

    "); $(".pm_shuming_wap").hide(); } else { if (arr.length > 0) { $.each(arr, function(index, v) { if(v.type == 1){ var jfcc = parseInt(v.win)+parseInt(v.ping)+parseInt(v.loss); var listHtml = ""; $('#dqlebiao').append(listHtml); } }); }; }; }, error: function(e) { console.log(e); }, }); } else { $('#dqlebiao').html(''); if (huancundata[qharrmc + "_" + type].length > 0) { $.each(huancundata[qharrmc + "_" + type], function(index, v) { if(v.type == 1){ var jfcc = parseInt(v.win)+parseInt(v.ping)+parseInt(v.loss); var listHtml = ""; $('#dqlebiao').append(listHtml); } }); } else { $('#dqlebiao').append("

    暂无相关数据

    "); $(".pm_shuming_wap").hide(); }; }; }; // 射手榜 function zqssb(comid, type, catid) { $(".pm_shuming").hide(); $("#dqlebiao_bt").html("
  • 排序
  • \
  • 球员
  • \
  • 球队
  • \
  • 进球
  • \
  • 出场次数
  • \
  • 出场时间
  • \
  • 射门
  • \
  • 射正
  • "); $("#dqlebiao").attr("class", "list_xq shiesou"); $("#dqlebiao_bt").attr("class", "biaotitle shiesou"); if (huancundata[qharrmc + "_" + type] == undefined) { $.ajax({ url: url, cache: false, type: 'post', async: false, dataType: 'json', data: { comid: comid, type: type, catid: catid, }, success: function(res) { var arr = res.arr; if (res.arr == undefined) { huancundata[qharrmc + "_" + type] = []; } else { huancundata[qharrmc + "_" + type] = arr; }; $('#dqlebiao').html(''); if (res.arr == undefined) { $('#dqlebiao').append("

    暂无相关数据

    "); $(".pm_shuming_wap").hide(); } else { if (arr.length > 0) { $.each(arr, function(index, v) { if(v.type == 2){ var listHtml = ""; $('#dqlebiao').append(listHtml); } }); }; }; }, error: function(e) { console.log(e); } }); } else { $('#dqlebiao').html(''); if (huancundata[qharrmc + "_" + type].length > 0) { $.each(huancundata[qharrmc + "_" + type], function(index, v) { if(v.type == 2){ var listHtml = ""; $('#dqlebiao').append(listHtml); } }); } else { $('#dqlebiao').append("

    暂无相关数据

    "); $(".pm_shuming_wap").hide(); }; }; }; //篮球积分榜 function nbajfb(comid, type, catid) { $(".pm_shuming").hide(); $("#dqlebiao_bt").html("
  • 排名
  • \
  • 球队
  • \
  • 得分
  • \
  • 出手数
  • \
  • 3分出手
  • \
  • 罚球次数
  • \
  • 篮板
  • \
  • 前场篮板
  • \
  • 后场篮板
  • \
  • 助攻
  • \
  • 抢断
  • \
  • 盖帽
  • \
  • 犯规
  • \
  • 场次
  • "); $("#dqlebiao").attr("class", "list_xq jifeng"); $("#dqlebiao_bt").attr("class", "biaotitle jifeng"); if (huancundata[qharrmc + "_" + type] == undefined) { $.ajax({ url:url, cache: false, type: 'post', async: false, dataType: 'json', data: { comid: comid, type: type, catid: catid, }, success: function(res) { var arr = res.arr; if (res.arr == undefined) { huancundata[qharrmc + "_" + type] = []; } else { huancundata[qharrmc + "_" + type] = arr; } $('#dqlebiao').html(''); if (res.arr == undefined) { $('#dqlebiao').append("

    暂无相关数据

    "); } else { if (arr.length > 0) { $.each(arr, function(index, v) { if(v.type == 1){ var listHtml = ""; $('#dqlebiao').append(listHtml); } }); }; }; }, error: function(e) { console.log(e); }, }); } else { $('#dqlebiao').html(''); if (huancundata[qharrmc + "_" + type].length > 0) { $.each(huancundata[qharrmc + "_" + type], function(index, v) { if(v.type == 1){ var listHtml = ""; $('#dqlebiao').append(listHtml); } }); } else { $('#dqlebiao').append("

    暂无相关数据

    "); $(".pm_shuming_wap").hide(); }; }; }; //篮球个人榜 function lqjfb(comid, type, catid) { $(".pm_shuming").hide(); $("#dqlebiao_bt").html("
  • 排名
  • \
  • 球员
  • \
  • 球队
  • \
  • 得分
  • \
  • 出手数
  • \
  • 3分出手
  • \
  • 罚球次数
  • \
  • 篮板
  • \
  • 前场篮板
  • \
  • 后场篮板
  • \
  • 助攻
  • \
  • 抢断
  • \
  • 盖帽
  • \
  • 犯规
  • \
  • 场次
  • "); $("#dqlebiao").attr("class", "list_xq jifeng"); $("#dqlebiao_bt").attr("class", "biaotitle jifeng"); if (huancundata[qharrmc + "_" + type] == undefined) { $.ajax({ url: url, cache: false, type: 'post', async: false, dataType: 'json', data: { comid: comid, type: type, catid: catid, }, success: function(res) { var arr = res.arr; if (res.arr == undefined) { huancundata[qharrmc + "_" + type] = []; } else { huancundata[qharrmc + "_" + type] = arr; } $('#dqlebiao').html(''); if (res.arr == undefined) { $('#dqlebiao').append("

    暂无相关数据

    "); } else { if (arr.length > 0) { $.each(arr, function(index, v) { if(v.type == 2){ var listHtml = ""; $('#dqlebiao').append(listHtml); } }); }; }; }, error: function(e) { console.log(e); }, }); } else { $('#dqlebiao').html(''); if (huancundata[qharrmc + "_" + type].length > 0) { $.each(huancundata[qharrmc + "_" + type], function(index, v) { if(v.type == 2){ var listHtml = ""; $('#dqlebiao').append(listHtml); } }); } else { $('#dqlebiao').append("

    暂无相关数据

    "); }; }; }; //cba积分榜 function cbajfb(comid, type, catid) { $(".pm_shuming").hide(); $("#dqlebiao_bt").html("
  • 排名
  • 球队
  • 场数
  • 胜率
  • "); $("#dqlebiao").attr("class", "list_xq jifeng"); $("#dqlebiao_bt").attr("class", "biaotitle jifeng"); if (huancundata[qharrmc + "_" + type] == undefined) { $.ajax({ url: url, cache: false, type: 'post', async: false, dataType: 'json', data: { comid: comid, type: type, catid: catid, }, success: function(res) { var arr = res.arr; if (res.arr == undefined) { huancundata[qharrmc + "_" + type] = []; } else { huancundata[qharrmc + "_" + type] = arr; } $('#dqlebiao').html(''); if (res.arr == undefined) { $('#dqlebiao').append("

    暂无相关数据

    "); } else { if (arr.length > 0) { var changshu; var cba_sl; $.each(arr, function(index, v) { cba_sl = ((parseInt(v.attempted) / (parseInt(v.attempted) + parseInt(v.threes_attempted))) * 100).toFixed(2) + "%"; changshu = parseInt(v.attempted)+parseInt(v.threes_attempted); var listHtml = ""; $('#dqlebiao').append(listHtml); }); }; }; }, error: function(e) { console.log(e); }, }); } else { $('#dqlebiao').html(''); if (huancundata[qharrmc + "_" + type].length > 0) { var changshu; var cba_sl; $.each(huancundata[qharrmc + "_" + type], function(index, v) { cba_sl = ((parseInt(v.attempted) / (parseInt(v.attempted) + parseInt(v.threes_attempted))) * 100).toFixed(2) + "%"; changshu = parseInt(v.attempted)+parseInt(v.threes_attempted); var listHtml = ""; $('#dqlebiao').append(listHtml); }); } else { $('#dqlebiao').append("

    暂无相关数据

    "); $(".pm_shuming_wap").hide(); }; }; }; //中超积分榜 function zcjfb(comid, type, catid) { $(".pm_shuming").show(); /* $(".zhongchaoa").html("
  • 排名
  • 球队
  • 场次
  • 进球
  • 失球
  • 净胜球
  • 积分
  • "); */ $("#zhongchaoa").attr("class", "list_xq jifeng"); $("#zhongchaot").attr("class", "list_xq jifeng"); $(".zhongchaoa").attr("class", "biaotitle jifeng"); if (huancundata[qharrmc + "_" + type] == undefined) { $.ajax({ url: url, cache: false, type: 'post', async: false, dataType: 'json', data: { comid: comid, type: type, catid: catid, }, success: function(res) { var arr = res.arr; if (res.arr == undefined) { huancundata[qharrmc + "_" + type] = []; } else { huancundata[qharrmc + "_" + type] = arr; } $('#dqlebiao').html(''); if (res.arr == undefined) { $('#dqlebiao').append("

    暂无相关数据

    "); $(".pm_shuming_wap").hide(); } else { if (arr.length > 0) { $.each(arr, function(index, v) { if(v.group == 'A'){ var jfcc = parseInt(v.win)+parseInt(v.ping)+parseInt(v.loss); var listHtml = ""; $('#zhongchaoa').append(listHtml); } if(v.group == 'B'){ var jfcc = parseInt(v.win)+parseInt(v.ping)+parseInt(v.loss); var listHtml = ""; $('#zhongchaot').append(listHtml); } }); }; }; }, error: function(e) { console.log(e); }, }); } else { $('#zhongchaoa').html(''); $('#zhongchaot').html(''); if (huancundata[qharrmc + "_" + type].length > 0) { $.each(huancundata[qharrmc + "_" + type], function(index, v) { if(v.group == 'A'){ var jfcc = parseInt(v.win)+parseInt(v.ping)+parseInt(v.loss); var listHtml = ""; $('#zhongchaoa').append(listHtml); } if(v.group == 'B'){ var jfcc = parseInt(v.win)+parseInt(v.ping)+parseInt(v.loss); var listHtml = ""; $('#zhongchaot').append(listHtml); } }); } else { $('#dqlebiao').append("

    暂无相关数据

    "); $(".pm_shuming_wap").hide(); }; }; }; //亚冠积分榜 function ygjfb(comid, type, catid) { $('.ya_cont_wrap').hide(); $(".pm_shuming").show(); $("#zhongchaoa").attr("class", "list_xq jifeng"); $("#zhongchaot").attr("class", "list_xq jifeng"); $(".zhongchaoa").attr("class", "biaotitle jifeng"); if (huancundata[qharrmc + "_" + type] == undefined) { $.ajax({ url: url, cache: false, type: 'post', async: false, dataType: 'json', data: { comid: comid, type: type, catid: catid, }, success: function(res) { var arr = res.arr; if (res.arr == undefined) { huancundata[qharrmc + "_" + type] = []; } else { huancundata[qharrmc + "_" + type] = arr; } $('.yaguan_content').html(''); if (res.arr == undefined) { $('#dqlebiao').append("

    暂无相关数据

    "); $(".pm_shuming_wap").hide(); } else { if (arr.length > 0) { var goup_name; $.each(arr, function(index, v) { if(v.group == 'A'){ yaguancon(v); $('.ya_cont_wrap').eq(0).show(); $('.ya_cont_wrap').eq(0).find('.yaguan_content').append(yg_conten); } if(v.group == 'B'){ yaguancon(v); $('.ya_cont_wrap').eq(1).show(); $('.ya_cont_wrap').eq(1).find('.yaguan_content').append(yg_conten); } if(v.group == 'C'){ yaguancon(v); $('.ya_cont_wrap').eq(2).show(); $('.ya_cont_wrap').eq(2).find('.yaguan_content').append(yg_conten); } if(v.group == 'D'){ yaguancon(v); $('.ya_cont_wrap').eq(3).show(); $('.ya_cont_wrap').eq(3).find('.yaguan_content').append(yg_conten); } if(v.group == 'E'){ yaguancon(v); $('.ya_cont_wrap').eq(4).show(); $('.ya_cont_wrap').eq(4).find('.yaguan_content').append(yg_conten); } if(v.group == 'F'){ yaguancon(v); $('.ya_cont_wrap').eq(5).show(); $('.ya_cont_wrap').eq(5).find('.yaguan_content').append(yg_conten); } if(v.group == 'G'){ yaguancon(v); $('.ya_cont_wrap').eq(6).show(); $('.ya_cont_wrap').eq(6).find('.yaguan_content').append(yg_conten); } if(v.group == 'H'){ yaguancon(v); $('.ya_cont_wrap').eq(7).show(); $('.ya_cont_wrap').eq(7).find('.yaguan_content').append(yg_conten); } if(v.group == 'I'){ } }); }; }; }, error: function(e) { console.log(e); }, }); } else { $('.yaguan_content').html(''); if (huancundata[qharrmc + "_" + type].length > 0) { $.each(huancundata[qharrmc + "_" + type], function(index, v) { if(v.group == 'A'){ yaguancon(v); $('.ya_cont_wrap').eq(0).show(); $('.ya_cont_wrap').eq(0).find('.yaguan_content').append(yg_conten); } if(v.group == 'B'){ yaguancon(v); $('.ya_cont_wrap').eq(1).show(); $('.ya_cont_wrap').eq(1).find('.yaguan_content').append(yg_conten); } if(v.group == 'C'){ yaguancon(v); $('.ya_cont_wrap').eq(2).show(); $('.ya_cont_wrap').eq(2).find('.yaguan_content').append(yg_conten); } if(v.group == 'D'){ yaguancon(v); $('.ya_cont_wrap').eq(3).show(); $('.ya_cont_wrap').eq(3).find('.yaguan_content').append(yg_conten); } if(v.group == 'E'){ yaguancon(v); $('.ya_cont_wrap').eq(4).show(); $('.ya_cont_wrap').eq(4).find('.yaguan_content').append(yg_conten); } if(v.group == 'F'){ yaguancon(v); $('.ya_cont_wrap').eq(5).show(); $('.ya_cont_wrap').eq(5).find('.yaguan_content').append(yg_conten); } if(v.group == 'G'){ yaguancon(v); $('.ya_cont_wrap').eq(6).show(); $('.ya_cont_wrap').eq(6).find('.yaguan_content').append(yg_conten); } if(v.group == 'H'){ yaguancon(v); $('.ya_cont_wrap').eq(7).show(); $('.ya_cont_wrap').eq(7).find('.yaguan_content').append(yg_conten); } if(v.group == 'I'){ } }); } else { $('#dqlebiao').append("

    暂无相关数据

    "); $(".pm_shuming_wap").hide(); }; }; }; function yaguancon(v){ var jfcc = parseInt(v.win)+parseInt(v.ping)+parseInt(v.loss); yg_conten = ""; }; //NBA胜负榜 function nbasf(comid, type, catid) { $(".pm_shuming").hide(); $("#shengfu").attr("class", "list_xq jifeng"); $("#shengfu").attr("class", "list_xq jifeng"); $(".shengfu").attr("class", "biaotitle jifeng"); if (huancundata[qharrmc + "_" + type] == undefined) { $.ajax({ url: url, cache: false, type: 'post', async: false, dataType: 'json', data: { comid: comid, type: type, catid: catid, }, success: function(res) { var arr = res.arr; if (res.arr == undefined) { huancundata[qharrmc + "_" + type] = []; } else { huancundata[qharrmc + "_" + type] = arr; } $('#dqlebiao').html(''); if (res.arr == undefined) { $('#dqlebiao').append("

    暂无相关数据

    "); $(".pm_shuming_wap").hide(); } else { if (arr.length > 0) { $.each(arr, function(index, v) { if(v.group == 1){ var nsu = v.points_status.split("/"); var spss= v.win_loss.split("/"); var listHtml = ""; $('#shengfu').append(listHtml); } if(v.group == 2){ var nsu = v.points_status.split("/"); var spss= v.win_loss.split("/"); var listHtml = ""; $('#shengfue').append(listHtml); } }); }; }; }, error: function(e) { console.log(e); }, }); } else { $('#shengfu').html(''); $('#shengfue').html(''); if (huancundata[qharrmc + "_" + type].length > 0) { $.each(huancundata[qharrmc + "_" + type], function(index, v) { if(v.group == 1){ var nsu = v.points_status.split("/"); var spss= v.win_loss.split("/"); var listHtml = ""; $('#shengfu').append(listHtml); } if(v.group == 2){ var nsu = v.points_status.split("/"); var spss= v.win_loss.split("/"); var listHtml = ""; $('#shengfue').append(listHtml); } }); } else { $('#dqlebiao').append("

    暂无相关数据

    "); $(".pm_shuming_wap").hide(); }; }; };