123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968 |
- 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("<li>排名</li><li class='qiudui'>球队</li><li>场次</li><li>胜</li><li>平</li><li>负</li><li>进球</li><li>失球</li><li>净胜球</li><li>积分</li>");
- $("#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("<p class='wxgss_img'><img src='" + imgurl + "www/img/nodatalb.png'><span>暂无相关数据</span></p>");
- $(".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 = "<ul class='biaonr'><li><span class='rankimg'>" + v.rank + "</span></li><li class='qiudui'>" + v.team + "</li><li>" + jfcc + "</li><li>" + v.win + "</li><li>" + v.ping + "</li><li>" + v.loss + "</li><li>" + v.goal + "</li><li>" + v.loss_goal + "</li><li>" + v.win_goal + "</li><li class='redbj'>" + v.point + "</li></ul>";
- $('#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("<li>排名</li><li class='qiudui'>球队</li><li>场次</li><li>胜</li><li>平</li><li>负</li><li>进球</li><li>失球</li><li>净胜球</li><li>积分</li>");
- $("#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("<p class='wxgss_img'><img src='" + imgurl + "www/img/nodatalb.png'><span>暂无相关数据</span></p>");
- $(".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 = "<ul class='biaonr'><li><span class='rankimg'>" + v.rank + "</span></li><li class='qiudui'>" + v.team + "</li><li>" + jfcc+ "</li><li>" + v.win + "</li><li>" + v.ping + "</li><li>" + v.loss + "</li><li>" + v.goal + "</li><li>" + v.loss_goal + "</li><li>" + v.win_goal + "</li><li class='redbj'>" + v.point + "</li></ul>";
- $('#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 = "<ul class='biaonr'><li><span class='rankimg'>" + v.rank + "</span></li><li class='qiudui'>" + v.team + "</li><li>" + jfcc + "</li><li>" + v.win + "</li><li>" + v.ping + "</li><li>" + v.loss + "</li><li>" + v.goal + "</li><li>" + v.loss_goal + "</li><li>" + v.win_goal + "</li><li class='redbj'>" + v.point + "</li></ul>";
- $('#dqlebiao').append(listHtml);
- }
- });
- } else {
- $('#dqlebiao').append("<p class='wxgss_img'><img src='" + imgurl + "www/img/nodatalb.png'><span>暂无相关数据</span></p>");
- $(".pm_shuming_wap").hide();
- };
- };
- };
- // 射手榜
- function zqssb(comid, type, catid) {
- $(".pm_shuming").hide();
- $("#dqlebiao_bt").html("<li>排序</li>\
- <li class='quyuan'>球员</li>\
- <li class='quyuan'>球队</li>\
- <li>进球</li>\
- <li class='chuc_cs'>出场次数</li>\
- <li>出场时间</li>\
- <li>射门</li>\
- <li>射正</li>");
- $("#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("<p class='wxgss_img'><img src='" + imgurl + "www/img/nodatalb.png'><span>暂无相关数据</span></p>");
- $(".pm_shuming_wap").hide();
- } else {
- if (arr.length > 0) {
- $.each(arr, function(index, v) {
- if(v.type == 2){
- var listHtml = "<ul class='biaonr'><li><span>" + v.rank + "</span></li>\
- <li class='quyuan leftnr'>" + v.name + "</li>\
- <li class='quyuan'><span>" + v.team + "</span></li>\
- <li class='redbj'>" + v.goal + "</li>\
- <li class='chuc_cs'>" + v.times + "</li>\
- <li>" + v.duration + "</li>\
- <li>" + v.loss_goal + "</li>\
- <li>" + v.win_goal + "</li></ul>";
- $('#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 = "<ul class='biaonr'><li><span>" + v.rank + "</span></li>\
- <li class='quyuan leftnr'>" + v.name + "</li>\
- <li class='quyuan'><span>" + v.team + "</span></li>\
- <li class='redbj'>" + v.goal + "</li>\
- <li class='chuc_cs'>" + v.times + "</li>\
- <li>" + v.duration + "</li>\
- <li>" + v.loss_goal + "</li>\
- <li>" + v.win_goal + "</li></ul>";
- $('#dqlebiao').append(listHtml);
- }
- });
- } else {
- $('#dqlebiao').append("<p class='wxgss_img'><img src='" + imgurl + "www/img/nodatalb.png'><span>暂无相关数据</span></p>");
- $(".pm_shuming_wap").hide();
- };
- };
- };
- //篮球积分榜
- function nbajfb(comid, type, catid) {
- $(".pm_shuming").hide();
- $("#dqlebiao_bt").html("<li>排名</li>\
- <li class='qiudui'>球队</li>\
- <li>得分</li>\
- <li>出手数</li>\
- <li>3分出手</li>\
- <li>罚球次数</li>\
- <li>篮板</li>\
- <li>前场篮板</li>\
- <li>后场篮板</li>\
- <li>助攻</li>\
- <li>抢断</li>\
- <li>盖帽</li>\
- <li>犯规</li>\
- <li>场次</li>");
- $("#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("<p class='wxgss_img'><img src='" + imgurl + "www/img/nodatalb.png'><span>暂无相关数据</span></p>");
- } else {
- if (arr.length > 0) {
- $.each(arr, function(index, v) {
- if(v.type == 1){
- var listHtml = "<ul class='biaonr'><li><span>" + v.rank + "</span></li>\
- <li class='qiudui'>" + v.team + "</li>\
- <li>" + parseInt(v.point)/100 + "</li>\
- <li>" + parseInt(v.attempted)/100 + "</li>\
- <li>" + parseInt(v.threes_attempted)/100 + "</li>\
- <li>" + parseInt(v.ftAttempted)/100 + "</li>\
- <li>" + parseInt(v.rebounds)/100 + "</li>\
- <li>" + parseInt(v.offensiveRebounds)/100 + "</li>\
- <li>" + parseInt(v.defensiveRebounds)/100 + "</li>\
- <li>" + parseInt(v.assists)/100 + "</li>\
- <li>" + parseInt(v.steals)/100 + "</li>\
- <li>" + parseInt(v.blocks)/100 + "</li>\
- <li>" + parseInt(v.fouls)/100 + "</li>\
- <li>" + v.games + "</li></ul>";
- $('#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 = "<ul class='biaonr'><li><span>" + v.rank + "</span></li>\
- <li class='qiudui'>" + v.team + "</li>\
- <li>" + parseInt(v.point)/100 + "</li>\
- <li>" + parseInt(v.attempted)/100 + "</li>\
- <li>" + parseInt(v.threes_attempted)/100 + "</li>\
- <li>" + parseInt(v.ftAttempted)/100 + "</li>\
- <li>" + parseInt(v.rebounds)/100 + "</li>\
- <li>" + parseInt(v.offensiveRebounds)/100 + "</li>\
- <li>" + parseInt(v.defensiveRebounds)/100 + "</li>\
- <li>" + parseInt(v.assists)/100 + "</li>\
- <li>" + parseInt(v.steals)/100 + "</li>\
- <li>" + parseInt(v.blocks)/100 + "</li>\
- <li>" + parseInt(v.fouls)/100 + "</li>\
- <li>" + v.games + "</li></ul>";
- $('#dqlebiao').append(listHtml);
- }
- });
- } else {
- $('#dqlebiao').append("<p class='wxgss_img'><img src='" + imgurl + "www/img/nodatalb.png'><span>暂无相关数据</span></p>");
- $(".pm_shuming_wap").hide();
- };
- };
- };
- //篮球个人榜
- function lqjfb(comid, type, catid) {
- $(".pm_shuming").hide();
- $("#dqlebiao_bt").html("<li>排名</li>\
- <li style='flex:3;'>球员</li>\
- <li style='flex:1.5;'>球队</li>\
- <li>得分</li>\
- <li>出手数</li>\
- <li>3分出手</li>\
- <li>罚球次数</li>\
- <li>篮板</li>\
- <li>前场篮板</li>\
- <li>后场篮板</li>\
- <li>助攻</li>\
- <li>抢断</li>\
- <li>盖帽</li>\
- <li>犯规</li>\
- <li>场次</li>");
- $("#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("<p class='wxgss_img'><img src='" + imgurl + "www/img/nodatalb.png'><span>暂无相关数据</span></p>");
- } else {
- if (arr.length > 0) {
- $.each(arr, function(index, v) {
- if(v.type == 2){
- var listHtml = "<ul class='biaonr'>\
- <li><span>" + v.rank + "</span></li>\
- <li style='flex:3;'>" + v.name + "</li>\
- <li style='flex:1.5;'>" + v.team + "</li>\
- <li>" + parseInt(v.point)/100 + "</li>\
- <li>" + parseInt(v.attempted)/100 + "</li>\
- <li>" + parseInt(v.threes_attempted)/100 + "</li>\
- <li>" + parseInt(v.ftAttempted)/100 + "</li>\
- <li>" + parseInt(v.rebounds)/100 + "</li>\
- <li>" + parseInt(v.offensiveRebounds)/100 + "</li>\
- <li>" + parseInt(v.defensiveRebounds)/100 + "</li>\
- <li>" + parseInt(v.assists)/100 + "</li>\
- <li>" + parseInt(v.steals)/100 + "</li>\
- <li>" + parseInt(v.blocks)/100 + "</li>\
- <li>" + parseInt(v.fouls)/100 + "</li>\
- <li>" + v.games + "</li></ul>";
- $('#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 = "<ul class='biaonr'>\
- <li><span>" + v.rank + "</span></li>\
- <li style='flex:3;'>" + v.name + "</li>\
- <li style='flex:1.5;'>" + v.team + "</li>\
- <li>" + parseInt(v.point)/100 + "</li>\
- <li>" + parseInt(v.attempted)/100 + "</li>\
- <li>" + parseInt(v.threes_attempted)/100 + "</li>\
- <li>" + parseInt(v.ftAttempted)/100 + "</li>\
- <li>" + parseInt(v.rebounds)/100 + "</li>\
- <li>" + parseInt(v.offensiveRebounds)/100 + "</li>\
- <li>" + parseInt(v.defensiveRebounds)/100 + "</li>\
- <li>" + parseInt(v.assists)/100 + "</li>\
- <li>" + parseInt(v.steals)/100 + "</li>\
- <li>" + parseInt(v.blocks)/100 + "</li>\
- <li>" + parseInt(v.fouls)/100 + "</li>\
- <li>" + v.games + "</li></ul>";
- $('#dqlebiao').append(listHtml);
- }
- });
- } else {
- $('#dqlebiao').append("<p class='wxgss_img'><img src='" + imgurl + "www/img/nodatalb.png'><span>暂无相关数据</span></p>");
- };
- };
- };
- //cba积分榜
- function cbajfb(comid, type, catid) {
- $(".pm_shuming").hide();
- $("#dqlebiao_bt").html("<li>排名</li><li class='qiudui'>球队</li><li>场数</li><li>胜</li><li>负</li><li>胜率</li>");
- $("#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("<p class='wxgss_img'><img src='" + imgurl + "www/img/nodatalb.png'><span>暂无相关数据</span></p>");
- } 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 = "<ul class='biaonr'><li><span>" + v.rank + "</span></li><li class='qiudui'>" + v.name + "<li>" + changshu + "</li><li>" + v.attempted + "</li><li>" + v.threes_attempted + "</li><li>" + cba_sl+ "</li></ul>";
- $('#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 = "<ul class='biaonr'><li><span>" + v.rank + "</span></li><li class='qiudui'>" + v.name + "<li>" + changshu + "</li><li>" + v.attempted + "</li><li>" + v.threes_attempted + "</li><li>" + cba_sl+ "</li></ul>";
- $('#dqlebiao').append(listHtml);
- });
- } else {
- $('#dqlebiao').append("<p class='wxgss_img'><img src='" + imgurl + "www/img/nodatalb.png'><span>暂无相关数据</span></p>");
- $(".pm_shuming_wap").hide();
- };
- };
- };
- //中超积分榜
- function zcjfb(comid, type, catid) {
- $(".pm_shuming").show();
- /* $(".zhongchaoa").html("<li>排名</li><li class='qiudui'>球队</li><li>场次</li><li>胜</li><li>平</li><li>负</li><li>进球</li><li>失球</li><li>净胜球</li><li>积分</li>"); */
- $("#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("<p class='wxgss_img'><img src='" + imgurl + "www/img/nodatalb.png'><span>暂无相关数据</span></p>");
- $(".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 = "<ul class='biaonr'><li><span class='rankimg'>" + v.rank + "</span></li><li class='qiudui'>" + v.team + "</li><li>" + jfcc+ "</li><li>" + v.win + "</li><li>" + v.ping + "</li><li>" + v.loss + "</li><li>" + v.goal + "</li><li>" + v.loss_goal + "</li><li>" + v.win_goal + "</li><li class='redbj'>" + v.point + "</li></ul>";
- $('#zhongchaoa').append(listHtml);
- }
- if(v.group == 'B'){
- var jfcc = parseInt(v.win)+parseInt(v.ping)+parseInt(v.loss);
- var listHtml = "<ul class='biaonr'><li><span class='rankimg'>" + v.rank + "</span></li><li class='qiudui'>" + v.team + "</li><li>" + jfcc+ "</li><li>" + v.win + "</li><li>" + v.ping + "</li><li>" + v.loss + "</li><li>" + v.goal + "</li><li>" + v.loss_goal + "</li><li>" + v.win_goal + "</li><li class='redbj'>" + v.point + "</li></ul>";
- $('#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 = "<ul class='biaonr'><li><span class='rankimg'>" + v.rank + "</span></li><li class='qiudui'>" + v.team + "</li><li>" + jfcc+ "</li><li>" + v.win + "</li><li>" + v.ping + "</li><li>" + v.loss + "</li><li>" + v.goal + "</li><li>" + v.loss_goal + "</li><li>" + v.win_goal + "</li><li class='redbj'>" + v.point + "</li></ul>";
- $('#zhongchaoa').append(listHtml);
- }
- if(v.group == 'B'){
- var jfcc = parseInt(v.win)+parseInt(v.ping)+parseInt(v.loss);
- var listHtml = "<ul class='biaonr'><li><span class='rankimg'>" + v.rank + "</span></li><li class='qiudui'>" + v.team + "</li><li>" + jfcc+ "</li><li>" + v.win + "</li><li>" + v.ping + "</li><li>" + v.loss + "</li><li>" + v.goal + "</li><li>" + v.loss_goal + "</li><li>" + v.win_goal + "</li><li class='redbj'>" + v.point + "</li></ul>";
- $('#zhongchaot').append(listHtml);
- }
- });
- } else {
- $('#dqlebiao').append("<p class='wxgss_img'><img src='" + imgurl + "www/img/nodatalb.png'><span>暂无相关数据</span></p>");
- $(".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("<p class='wxgss_img'><img src='" + imgurl + "www/img/nodatalb.png'><span>暂无相关数据</span></p>");
- $(".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("<p class='wxgss_img'><img src='" + imgurl + "www/img/nodatalb.png'><span>暂无相关数据</span></p>");
- $(".pm_shuming_wap").hide();
- };
- };
- };
- function yaguancon(v){
- var jfcc = parseInt(v.win)+parseInt(v.ping)+parseInt(v.loss);
- yg_conten = "<ul class='biaonr'><li><span class='rankimg'>" + v.rank + "</span></li><li class='qiudui'>" + v.team + "</li><li>" + jfcc+ "</li><li>" + v.win + "</li><li>" + v.ping + "</li><li>" + v.loss + "</li><li>" + v.goal + "</li><li>" + v.loss_goal + "</li><li>" + v.win_goal + "</li><li class='redbj'>" + v.point + "</li></ul>";
- };
- //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("<p class='wxgss_img'><img src='" + imgurl + "www/img/nodatalb.png'><span>暂无相关数据</span></p>");
- $(".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 = "<ul class='biaonr'>\
- <li>" + v.rank + "</li>\
- <li class='qiudui'>" + v.team_name + "</li>\
- <li>" + spss[0] + "</li>\
- <li>" + spss[1] + "</li>\
- <li>" + spss[2] + "</li>\
- <li>" + spss[3] + "%</li>\
- <li>" + v.guest_win_loss + "</li>\
- <li>" + v.home_win_loss + "</li>\
- <li>"+nsu[0]+"</li>\
- <li>"+nsu[1]+"</li>\
- <li>"+nsu[2]+"</li>\
- </ul>";
- $('#shengfu').append(listHtml);
- }
- if(v.group == 2){
- var nsu = v.points_status.split("/");
- var spss= v.win_loss.split("/");
- var listHtml = "<ul class='biaonr'>\
- <li>" + v.rank + "</li>\
- <li class='qiudui'>" + v.team_name + "</li>\
- <li>" + spss[0] + "</li>\
- <li>" + spss[1] + "</li>\
- <li>" + spss[2] + "</li>\
- <li>" + spss[3] + "%</li>\
- <li>" + v.guest_win_loss + "</li>\
- <li>" + v.home_win_loss + "</li>\
- <li>"+nsu[0]+"</li>\
- <li>"+nsu[1]+"</li>\
- <li>"+nsu[2]+"</li>\
- </ul>";
- $('#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 = "<ul class='biaonr'>\
- <li>" + v.rank + "</li>\
- <li class='qiudui'>" + v.team_name + "</li>\
- <li>" + spss[0] + "</li>\
- <li>" + spss[1] + "</li>\
- <li>" + spss[2] + "</li>\
- <li>" + spss[3] + "%</li>\
- <li>" + v.guest_win_loss + "</li>\
- <li>" + v.home_win_loss + "</li>\
- <li>"+nsu[0]+"</li>\
- <li>"+nsu[1]+"</li>\
- <li>"+nsu[2]+"</li>\
- </ul>";
- $('#shengfu').append(listHtml);
- }
- if(v.group == 2){
- var nsu = v.points_status.split("/");
- var spss= v.win_loss.split("/");
- var listHtml = "<ul class='biaonr'>\
- <li>" + v.rank + "</li>\
- <li class='qiudui'>" + v.team_name + "</li>\
- <li>" + spss[0] + "</li>\
- <li>" + spss[1] + "</li>\
- <li>" + spss[2] + "</li>\
- <li>" + spss[3] + "%</li>\
- <li>" + v.guest_win_loss + "</li>\
- <li>" + v.home_win_loss + "</li>\
- <li>"+nsu[0]+"</li>\
- <li>"+nsu[1]+"</li>\
- <li>"+nsu[2]+"</li>\
- </ul>";
- $('#shengfue').append(listHtml);
- }
- });
- } else {
- $('#dqlebiao').append("<p class='wxgss_img'><img src='" + imgurl + "www/img/nodatalb.png'><span>暂无相关数据</span></p>");
- $(".pm_shuming_wap").hide();
- };
- };
- };
|