ranks.min.js 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968
  1. var url = "http://www.qqzb.tv/paihang";;
  2. var imgurl = $("body").attr("data-domainstatic");
  3. //###############
  4. var qharrmc = $(".pc_ss_nav").find("li").eq(0).attr("data-py");
  5. var huancundata = {};
  6. //###############
  7. var yg_conten;
  8. $(function(){
  9. $('.pm_shuming p').hide();
  10. $('.pm_shuming p').eq(0).show();
  11. var catid = $(".ss_fl_list li").eq(0).attr("data-catid");
  12. var comid = $(".ss_fl_list li").eq(0).attr("data-comid");
  13. var type = $(".jf_title_lb li").eq(0).attr("data-type");
  14. $(".jf_title_lb li").each(function(i, o) {
  15. if ($(o).attr("data-catid") != catid) {
  16. $(o).hide();
  17. };
  18. if ($(o).attr("data-catid") == catid) {
  19. $(o).show();
  20. };
  21. });
  22. $(".jf_title_lb li").eq(0).addClass("jf_hover");
  23. $("#dqlebiao_bt").addClass("jifeng");
  24. $("#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>");
  25. $("#dqlebiao").addClass("jifeng");
  26. $.ajax({
  27. url: url,
  28. cache: false,
  29. type: 'post',
  30. async: false,
  31. dataType: 'json',
  32. data: {
  33. comid: comid,
  34. type: type,
  35. catid: catid,
  36. },
  37. success: function(res) {
  38. var arr = res.arr;
  39. huancundata[qharrmc + "_" + type] = arr;
  40. if (res.arr == undefined) {
  41. $('#dqlebiao').append("<p class='wxgss_img'><img src='" + imgurl + "www/img/nodatalb.png'><span>暂无相关数据</span></p>");
  42. $(".pm_shuming_wap").hide();
  43. } else {
  44. if (arr.length > 0) {
  45. $.each(arr, function(index, v) {
  46. var jfcc = parseInt(v.win)+parseInt(v.ping)+parseInt(v.loss);
  47. 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>";
  48. $('#dqlebiao').append(listHtml);
  49. });
  50. };
  51. };
  52. },
  53. error: function(e) {
  54. console.log(e);
  55. },
  56. });
  57. });
  58. $('.jf_title_lb li').click(function(){
  59. var towtype = $(this).attr("data-type");
  60. var towcomid = '';
  61. var towcatid = '';
  62. var qhhtml = '';
  63. $(".ss_fl_list li").each(function(i, o) {
  64. if ($(o).hasClass("navtow_hover")) {
  65. towcomid = $(o).attr("data-comid");
  66. towcatid = $(o).attr("data-catid");
  67. qhhtml = $(o).attr('data-py');
  68. };
  69. });
  70. $(this).addClass("jf_hover").siblings().removeClass("jf_hover");
  71. var pandang = $(this).attr('ht');
  72. if (pandang == "jifenbang") {
  73. if ($(this).attr("data-catid") == "1") {
  74. // jifengbang(towcomid, towtype, towcatid);
  75. // zqjfb(towcomid, towtype, towcatid);
  76. if(qhhtml == 'zhongchao'){
  77. $('.duo_quyu').hide();
  78. $('.duo_quyu_yg').hide();
  79. $('.duo_quyu_sf').hide();
  80. zcjfb(towcomid, towtype, towcatid);
  81. $('.duo_quyu_zc').show();
  82. }else if(qhhtml == 'yaguan'){
  83. $('.duo_quyu').hide();
  84. $('.duo_quyu_zc').hide();
  85. $('.duo_quyu_sf').hide();
  86. ygjfb(towcomid, towtype, towcatid);
  87. $('.duo_quyu_yg').show();
  88. }else if(qhhtml == 'ouguan'){
  89. $('.duo_quyu').hide();
  90. $('.duo_quyu_zc').hide();
  91. $('.duo_quyu_sf').hide();
  92. ygjfb(towcomid, towtype, towcatid);
  93. $('.duo_quyu_yg').show();
  94. }else{
  95. $('.duo_quyu_zc').hide();
  96. $('.duo_quyu_yg').hide();
  97. $('.duo_quyu_sf').hide();
  98. $('.duo_quyu').show();
  99. zqjfb(towcomid, towtype, towcatid);
  100. }
  101. };
  102. if ($(this).attr("data-catid") == "2") {
  103. $('.duo_quyu_zc').hide();
  104. $('.duo_quyu_yg').hide();
  105. $('.duo_quyu_sf').hide();
  106. $('.duo_quyu').show();
  107. nbajfb(towcomid, towtype, towcatid);
  108. };
  109. };
  110. if (pandang == "sheshoubang") {
  111. // sheshouban(towcomid, towtype, towcatid);
  112. $('.duo_quyu_zc').hide();
  113. $('.duo_quyu_yg').hide();
  114. $('.duo_quyu_sf').hide();
  115. $('.duo_quyu').show();
  116. zqssb(towcomid, towtype, towcatid);
  117. };
  118. if (pandang == "gerenbang") {
  119. $('.duo_quyu_zc').hide();
  120. $('.duo_quyu_yg').hide();
  121. $('.duo_quyu_sf').hide();
  122. $('.duo_quyu').show();
  123. lqjfb(towcomid, towtype, towcatid);
  124. };
  125. if(pandang == "shengfubang"){
  126. $('.duo_quyu_zc').hide();
  127. $('.duo_quyu_yg').hide();
  128. $('.duo_quyu').hide();
  129. $('.duo_quyu_sf').show();
  130. nbasf(towcomid, towtype, towcatid);
  131. };
  132. });
  133. $('.ss_fl_list li').click(function(){
  134. var xscatid = $(this).attr("data-catid");
  135. var xscomid = $(this).attr("data-comid");
  136. var xstype = '';
  137. var qhhtml = $(this).attr('data-py');
  138. qharrmc = $(this).attr("data-py");
  139. // dqpmsm(qhhtml);
  140. if(qharrmc == 'cba'){
  141. $($('.jf_title_lb')).hide();
  142. }else{
  143. $($('.jf_title_lb')).show();
  144. }
  145. $(this).addClass("navtow_hover").siblings().removeClass("navtow_hover");
  146. $(".jf_title_lb li").each(function(i, o) {
  147. if ($(o).attr("data-catid") == xscatid) {
  148. $(o).show();
  149. } else {
  150. $(o).hide();
  151. };
  152. });
  153. $('.jf_title_lb li[data-catid^=' + xscatid + ']').eq(0).addClass("jf_hover").siblings().removeClass("jf_hover");
  154. if(xscatid == "1"){
  155. $("#dqlebiao_bt").addClass("peiming");
  156. $("#dqlebiao").attr("class", "list_xq jifeng");
  157. $("#dqlebiao_bt").attr("class", "biaotitle jifeng");
  158. $(".jf_title_lb li").each(function(i, o) {
  159. if ($(o).hasClass("jf_hover")) {
  160. xstype = $(o).attr("data-type");
  161. };
  162. });
  163. $('.pm_shuming p').hide();
  164. $('.pm_shuming p[data-comid="'+xscomid+'"]').show();
  165. if(qhhtml == 'zhongchao'){
  166. $('.duo_quyu').hide();
  167. $('.duo_quyu_yg').hide();
  168. $('.duo_quyu_sf').hide();
  169. zcjfb(xscomid, xstype, xscatid);
  170. $('.duo_quyu_zc').show();
  171. }else if(qhhtml == 'yaguan'){
  172. $('.duo_quyu').hide();
  173. $('.duo_quyu_zc').hide();
  174. $('.duo_quyu_sf').hide();
  175. ygjfb(xscomid, xstype, xscatid);
  176. $('.duo_quyu_yg').show();
  177. }else if(qhhtml == 'ouguan'){
  178. $('.duo_quyu').hide();
  179. $('.duo_quyu_zc').hide();
  180. $('.duo_quyu_sf').hide();
  181. ygjfb(xscomid, xstype, xscatid);
  182. $('.duo_quyu_yg').show();
  183. }else{
  184. $('.duo_quyu_zc').hide();
  185. $('.duo_quyu_yg').hide();
  186. $('.duo_quyu_sf').hide();
  187. $('.duo_quyu').show();
  188. zqjfb(xscomid, xstype, xscatid);
  189. }
  190. }else{
  191. $('.duo_quyu_zc').hide();
  192. $('.duo_quyu_yg').hide();
  193. $('.duo_quyu_sf').hide();
  194. $('.duo_quyu').show();
  195. $(".jf_title_lb li").each(function(i, o) {
  196. if ($(o).hasClass("jf_hover")) {
  197. xstype = $(o).attr("data-type");
  198. };
  199. });
  200. var datapy = $(this).attr("data-py");
  201. if (datapy == "nba") {
  202. nbajfb(xscomid, xstype, xscatid);
  203. };
  204. if (datapy == "cba") {
  205. cbajfb(xscomid, xstype, xscatid);
  206. };
  207. }
  208. });
  209. //足球积分榜
  210. function zqjfb(comid, type, catid) {
  211. $(".pm_shuming").show();
  212. $("#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>");
  213. $("#dqlebiao").attr("class", "list_xq jifeng");
  214. $("#dqlebiao_bt").attr("class", "biaotitle jifeng");
  215. if (huancundata[qharrmc + "_" + type] == undefined) {
  216. $.ajax({
  217. url: url,
  218. cache: false,
  219. type: 'post',
  220. async: false,
  221. dataType: 'json',
  222. data: {
  223. comid: comid,
  224. type: type,
  225. catid: catid,
  226. },
  227. success: function(res) {
  228. var arr = res.arr;
  229. if (res.arr == undefined) {
  230. huancundata[qharrmc + "_" + type] = [];
  231. } else {
  232. huancundata[qharrmc + "_" + type] = arr;
  233. }
  234. $('#dqlebiao').html('');
  235. if (res.arr == undefined) {
  236. $('#dqlebiao').append("<p class='wxgss_img'><img src='" + imgurl + "www/img/nodatalb.png'><span>暂无相关数据</span></p>");
  237. $(".pm_shuming_wap").hide();
  238. } else {
  239. if (arr.length > 0) {
  240. $.each(arr, function(index, v) {
  241. if(v.type == 1){
  242. var jfcc = parseInt(v.win)+parseInt(v.ping)+parseInt(v.loss);
  243. 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>";
  244. $('#dqlebiao').append(listHtml);
  245. }
  246. });
  247. };
  248. };
  249. },
  250. error: function(e) {
  251. console.log(e);
  252. },
  253. });
  254. } else {
  255. $('#dqlebiao').html('');
  256. if (huancundata[qharrmc + "_" + type].length > 0) {
  257. $.each(huancundata[qharrmc + "_" + type], function(index, v) {
  258. if(v.type == 1){
  259. var jfcc = parseInt(v.win)+parseInt(v.ping)+parseInt(v.loss);
  260. 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>";
  261. $('#dqlebiao').append(listHtml);
  262. }
  263. });
  264. } else {
  265. $('#dqlebiao').append("<p class='wxgss_img'><img src='" + imgurl + "www/img/nodatalb.png'><span>暂无相关数据</span></p>");
  266. $(".pm_shuming_wap").hide();
  267. };
  268. };
  269. };
  270. // 射手榜
  271. function zqssb(comid, type, catid) {
  272. $(".pm_shuming").hide();
  273. $("#dqlebiao_bt").html("<li>排序</li>\
  274. <li class='quyuan'>球员</li>\
  275. <li class='quyuan'>球队</li>\
  276. <li>进球</li>\
  277. <li class='chuc_cs'>出场次数</li>\
  278. <li>出场时间</li>\
  279. <li>射门</li>\
  280. <li>射正</li>");
  281. $("#dqlebiao").attr("class", "list_xq shiesou");
  282. $("#dqlebiao_bt").attr("class", "biaotitle shiesou");
  283. if (huancundata[qharrmc + "_" + type] == undefined) {
  284. $.ajax({
  285. url: url,
  286. cache: false,
  287. type: 'post',
  288. async: false,
  289. dataType: 'json',
  290. data: {
  291. comid: comid,
  292. type: type,
  293. catid: catid,
  294. },
  295. success: function(res) {
  296. var arr = res.arr;
  297. if (res.arr == undefined) {
  298. huancundata[qharrmc + "_" + type] = [];
  299. } else {
  300. huancundata[qharrmc + "_" + type] = arr;
  301. };
  302. $('#dqlebiao').html('');
  303. if (res.arr == undefined) {
  304. $('#dqlebiao').append("<p class='wxgss_img'><img src='" + imgurl + "www/img/nodatalb.png'><span>暂无相关数据</span></p>");
  305. $(".pm_shuming_wap").hide();
  306. } else {
  307. if (arr.length > 0) {
  308. $.each(arr, function(index, v) {
  309. if(v.type == 2){
  310. var listHtml = "<ul class='biaonr'><li><span>" + v.rank + "</span></li>\
  311. <li class='quyuan leftnr'>" + v.name + "</li>\
  312. <li class='quyuan'><span>" + v.team + "</span></li>\
  313. <li class='redbj'>" + v.goal + "</li>\
  314. <li class='chuc_cs'>" + v.times + "</li>\
  315. <li>" + v.duration + "</li>\
  316. <li>" + v.loss_goal + "</li>\
  317. <li>" + v.win_goal + "</li></ul>";
  318. $('#dqlebiao').append(listHtml);
  319. }
  320. });
  321. };
  322. };
  323. },
  324. error: function(e) {
  325. console.log(e);
  326. }
  327. });
  328. } else {
  329. $('#dqlebiao').html('');
  330. if (huancundata[qharrmc + "_" + type].length > 0) {
  331. $.each(huancundata[qharrmc + "_" + type], function(index, v) {
  332. if(v.type == 2){
  333. var listHtml = "<ul class='biaonr'><li><span>" + v.rank + "</span></li>\
  334. <li class='quyuan leftnr'>" + v.name + "</li>\
  335. <li class='quyuan'><span>" + v.team + "</span></li>\
  336. <li class='redbj'>" + v.goal + "</li>\
  337. <li class='chuc_cs'>" + v.times + "</li>\
  338. <li>" + v.duration + "</li>\
  339. <li>" + v.loss_goal + "</li>\
  340. <li>" + v.win_goal + "</li></ul>";
  341. $('#dqlebiao').append(listHtml);
  342. }
  343. });
  344. } else {
  345. $('#dqlebiao').append("<p class='wxgss_img'><img src='" + imgurl + "www/img/nodatalb.png'><span>暂无相关数据</span></p>");
  346. $(".pm_shuming_wap").hide();
  347. };
  348. };
  349. };
  350. //篮球积分榜
  351. function nbajfb(comid, type, catid) {
  352. $(".pm_shuming").hide();
  353. $("#dqlebiao_bt").html("<li>排名</li>\
  354. <li class='qiudui'>球队</li>\
  355. <li>得分</li>\
  356. <li>出手数</li>\
  357. <li>3分出手</li>\
  358. <li>罚球次数</li>\
  359. <li>篮板</li>\
  360. <li>前场篮板</li>\
  361. <li>后场篮板</li>\
  362. <li>助攻</li>\
  363. <li>抢断</li>\
  364. <li>盖帽</li>\
  365. <li>犯规</li>\
  366. <li>场次</li>");
  367. $("#dqlebiao").attr("class", "list_xq jifeng");
  368. $("#dqlebiao_bt").attr("class", "biaotitle jifeng");
  369. if (huancundata[qharrmc + "_" + type] == undefined) {
  370. $.ajax({
  371. url:url,
  372. cache: false,
  373. type: 'post',
  374. async: false,
  375. dataType: 'json',
  376. data: {
  377. comid: comid,
  378. type: type,
  379. catid: catid,
  380. },
  381. success: function(res) {
  382. var arr = res.arr;
  383. if (res.arr == undefined) {
  384. huancundata[qharrmc + "_" + type] = [];
  385. } else {
  386. huancundata[qharrmc + "_" + type] = arr;
  387. }
  388. $('#dqlebiao').html('');
  389. if (res.arr == undefined) {
  390. $('#dqlebiao').append("<p class='wxgss_img'><img src='" + imgurl + "www/img/nodatalb.png'><span>暂无相关数据</span></p>");
  391. } else {
  392. if (arr.length > 0) {
  393. $.each(arr, function(index, v) {
  394. if(v.type == 1){
  395. var listHtml = "<ul class='biaonr'><li><span>" + v.rank + "</span></li>\
  396. <li class='qiudui'>" + v.team + "</li>\
  397. <li>" + parseInt(v.point)/100 + "</li>\
  398. <li>" + parseInt(v.attempted)/100 + "</li>\
  399. <li>" + parseInt(v.threes_attempted)/100 + "</li>\
  400. <li>" + parseInt(v.ftAttempted)/100 + "</li>\
  401. <li>" + parseInt(v.rebounds)/100 + "</li>\
  402. <li>" + parseInt(v.offensiveRebounds)/100 + "</li>\
  403. <li>" + parseInt(v.defensiveRebounds)/100 + "</li>\
  404. <li>" + parseInt(v.assists)/100 + "</li>\
  405. <li>" + parseInt(v.steals)/100 + "</li>\
  406. <li>" + parseInt(v.blocks)/100 + "</li>\
  407. <li>" + parseInt(v.fouls)/100 + "</li>\
  408. <li>" + v.games + "</li></ul>";
  409. $('#dqlebiao').append(listHtml);
  410. }
  411. });
  412. };
  413. };
  414. },
  415. error: function(e) {
  416. console.log(e);
  417. },
  418. });
  419. } else {
  420. $('#dqlebiao').html('');
  421. if (huancundata[qharrmc + "_" + type].length > 0) {
  422. $.each(huancundata[qharrmc + "_" + type], function(index, v) {
  423. if(v.type == 1){
  424. var listHtml = "<ul class='biaonr'><li><span>" + v.rank + "</span></li>\
  425. <li class='qiudui'>" + v.team + "</li>\
  426. <li>" + parseInt(v.point)/100 + "</li>\
  427. <li>" + parseInt(v.attempted)/100 + "</li>\
  428. <li>" + parseInt(v.threes_attempted)/100 + "</li>\
  429. <li>" + parseInt(v.ftAttempted)/100 + "</li>\
  430. <li>" + parseInt(v.rebounds)/100 + "</li>\
  431. <li>" + parseInt(v.offensiveRebounds)/100 + "</li>\
  432. <li>" + parseInt(v.defensiveRebounds)/100 + "</li>\
  433. <li>" + parseInt(v.assists)/100 + "</li>\
  434. <li>" + parseInt(v.steals)/100 + "</li>\
  435. <li>" + parseInt(v.blocks)/100 + "</li>\
  436. <li>" + parseInt(v.fouls)/100 + "</li>\
  437. <li>" + v.games + "</li></ul>";
  438. $('#dqlebiao').append(listHtml);
  439. }
  440. });
  441. } else {
  442. $('#dqlebiao').append("<p class='wxgss_img'><img src='" + imgurl + "www/img/nodatalb.png'><span>暂无相关数据</span></p>");
  443. $(".pm_shuming_wap").hide();
  444. };
  445. };
  446. };
  447. //篮球个人榜
  448. function lqjfb(comid, type, catid) {
  449. $(".pm_shuming").hide();
  450. $("#dqlebiao_bt").html("<li>排名</li>\
  451. <li style='flex:3;'>球员</li>\
  452. <li style='flex:1.5;'>球队</li>\
  453. <li>得分</li>\
  454. <li>出手数</li>\
  455. <li>3分出手</li>\
  456. <li>罚球次数</li>\
  457. <li>篮板</li>\
  458. <li>前场篮板</li>\
  459. <li>后场篮板</li>\
  460. <li>助攻</li>\
  461. <li>抢断</li>\
  462. <li>盖帽</li>\
  463. <li>犯规</li>\
  464. <li>场次</li>");
  465. $("#dqlebiao").attr("class", "list_xq jifeng");
  466. $("#dqlebiao_bt").attr("class", "biaotitle jifeng");
  467. if (huancundata[qharrmc + "_" + type] == undefined) {
  468. $.ajax({
  469. url: url,
  470. cache: false,
  471. type: 'post',
  472. async: false,
  473. dataType: 'json',
  474. data: {
  475. comid: comid,
  476. type: type,
  477. catid: catid,
  478. },
  479. success: function(res) {
  480. var arr = res.arr;
  481. if (res.arr == undefined) {
  482. huancundata[qharrmc + "_" + type] = [];
  483. } else {
  484. huancundata[qharrmc + "_" + type] = arr;
  485. }
  486. $('#dqlebiao').html('');
  487. if (res.arr == undefined) {
  488. $('#dqlebiao').append("<p class='wxgss_img'><img src='" + imgurl + "www/img/nodatalb.png'><span>暂无相关数据</span></p>");
  489. } else {
  490. if (arr.length > 0) {
  491. $.each(arr, function(index, v) {
  492. if(v.type == 2){
  493. var listHtml = "<ul class='biaonr'>\
  494. <li><span>" + v.rank + "</span></li>\
  495. <li style='flex:3;'>" + v.name + "</li>\
  496. <li style='flex:1.5;'>" + v.team + "</li>\
  497. <li>" + parseInt(v.point)/100 + "</li>\
  498. <li>" + parseInt(v.attempted)/100 + "</li>\
  499. <li>" + parseInt(v.threes_attempted)/100 + "</li>\
  500. <li>" + parseInt(v.ftAttempted)/100 + "</li>\
  501. <li>" + parseInt(v.rebounds)/100 + "</li>\
  502. <li>" + parseInt(v.offensiveRebounds)/100 + "</li>\
  503. <li>" + parseInt(v.defensiveRebounds)/100 + "</li>\
  504. <li>" + parseInt(v.assists)/100 + "</li>\
  505. <li>" + parseInt(v.steals)/100 + "</li>\
  506. <li>" + parseInt(v.blocks)/100 + "</li>\
  507. <li>" + parseInt(v.fouls)/100 + "</li>\
  508. <li>" + v.games + "</li></ul>";
  509. $('#dqlebiao').append(listHtml);
  510. }
  511. });
  512. };
  513. };
  514. },
  515. error: function(e) {
  516. console.log(e);
  517. },
  518. });
  519. } else {
  520. $('#dqlebiao').html('');
  521. if (huancundata[qharrmc + "_" + type].length > 0) {
  522. $.each(huancundata[qharrmc + "_" + type], function(index, v) {
  523. if(v.type == 2){
  524. var listHtml = "<ul class='biaonr'>\
  525. <li><span>" + v.rank + "</span></li>\
  526. <li style='flex:3;'>" + v.name + "</li>\
  527. <li style='flex:1.5;'>" + v.team + "</li>\
  528. <li>" + parseInt(v.point)/100 + "</li>\
  529. <li>" + parseInt(v.attempted)/100 + "</li>\
  530. <li>" + parseInt(v.threes_attempted)/100 + "</li>\
  531. <li>" + parseInt(v.ftAttempted)/100 + "</li>\
  532. <li>" + parseInt(v.rebounds)/100 + "</li>\
  533. <li>" + parseInt(v.offensiveRebounds)/100 + "</li>\
  534. <li>" + parseInt(v.defensiveRebounds)/100 + "</li>\
  535. <li>" + parseInt(v.assists)/100 + "</li>\
  536. <li>" + parseInt(v.steals)/100 + "</li>\
  537. <li>" + parseInt(v.blocks)/100 + "</li>\
  538. <li>" + parseInt(v.fouls)/100 + "</li>\
  539. <li>" + v.games + "</li></ul>";
  540. $('#dqlebiao').append(listHtml);
  541. }
  542. });
  543. } else {
  544. $('#dqlebiao').append("<p class='wxgss_img'><img src='" + imgurl + "www/img/nodatalb.png'><span>暂无相关数据</span></p>");
  545. };
  546. };
  547. };
  548. //cba积分榜
  549. function cbajfb(comid, type, catid) {
  550. $(".pm_shuming").hide();
  551. $("#dqlebiao_bt").html("<li>排名</li><li class='qiudui'>球队</li><li>场数</li><li>胜</li><li>负</li><li>胜率</li>");
  552. $("#dqlebiao").attr("class", "list_xq jifeng");
  553. $("#dqlebiao_bt").attr("class", "biaotitle jifeng");
  554. if (huancundata[qharrmc + "_" + type] == undefined) {
  555. $.ajax({
  556. url: url,
  557. cache: false,
  558. type: 'post',
  559. async: false,
  560. dataType: 'json',
  561. data: {
  562. comid: comid,
  563. type: type,
  564. catid: catid,
  565. },
  566. success: function(res) {
  567. var arr = res.arr;
  568. if (res.arr == undefined) {
  569. huancundata[qharrmc + "_" + type] = [];
  570. } else {
  571. huancundata[qharrmc + "_" + type] = arr;
  572. }
  573. $('#dqlebiao').html('');
  574. if (res.arr == undefined) {
  575. $('#dqlebiao').append("<p class='wxgss_img'><img src='" + imgurl + "www/img/nodatalb.png'><span>暂无相关数据</span></p>");
  576. } else {
  577. if (arr.length > 0) {
  578. var changshu;
  579. var cba_sl;
  580. $.each(arr, function(index, v) {
  581. cba_sl = ((parseInt(v.attempted) / (parseInt(v.attempted) + parseInt(v.threes_attempted))) * 100).toFixed(2) + "%";
  582. changshu = parseInt(v.attempted)+parseInt(v.threes_attempted);
  583. 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>";
  584. $('#dqlebiao').append(listHtml);
  585. });
  586. };
  587. };
  588. },
  589. error: function(e) {
  590. console.log(e);
  591. },
  592. });
  593. } else {
  594. $('#dqlebiao').html('');
  595. if (huancundata[qharrmc + "_" + type].length > 0) {
  596. var changshu;
  597. var cba_sl;
  598. $.each(huancundata[qharrmc + "_" + type], function(index, v) {
  599. cba_sl = ((parseInt(v.attempted) / (parseInt(v.attempted) + parseInt(v.threes_attempted))) * 100).toFixed(2) + "%";
  600. changshu = parseInt(v.attempted)+parseInt(v.threes_attempted);
  601. 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>";
  602. $('#dqlebiao').append(listHtml);
  603. });
  604. } else {
  605. $('#dqlebiao').append("<p class='wxgss_img'><img src='" + imgurl + "www/img/nodatalb.png'><span>暂无相关数据</span></p>");
  606. $(".pm_shuming_wap").hide();
  607. };
  608. };
  609. };
  610. //中超积分榜
  611. function zcjfb(comid, type, catid) {
  612. $(".pm_shuming").show();
  613. /* $(".zhongchaoa").html("<li>排名</li><li class='qiudui'>球队</li><li>场次</li><li>胜</li><li>平</li><li>负</li><li>进球</li><li>失球</li><li>净胜球</li><li>积分</li>"); */
  614. $("#zhongchaoa").attr("class", "list_xq jifeng");
  615. $("#zhongchaot").attr("class", "list_xq jifeng");
  616. $(".zhongchaoa").attr("class", "biaotitle jifeng");
  617. if (huancundata[qharrmc + "_" + type] == undefined) {
  618. $.ajax({
  619. url: url,
  620. cache: false,
  621. type: 'post',
  622. async: false,
  623. dataType: 'json',
  624. data: {
  625. comid: comid,
  626. type: type,
  627. catid: catid,
  628. },
  629. success: function(res) {
  630. var arr = res.arr;
  631. if (res.arr == undefined) {
  632. huancundata[qharrmc + "_" + type] = [];
  633. } else {
  634. huancundata[qharrmc + "_" + type] = arr;
  635. }
  636. $('#dqlebiao').html('');
  637. if (res.arr == undefined) {
  638. $('#dqlebiao').append("<p class='wxgss_img'><img src='" + imgurl + "www/img/nodatalb.png'><span>暂无相关数据</span></p>");
  639. $(".pm_shuming_wap").hide();
  640. } else {
  641. if (arr.length > 0) {
  642. $.each(arr, function(index, v) {
  643. if(v.group == 'A'){
  644. var jfcc = parseInt(v.win)+parseInt(v.ping)+parseInt(v.loss);
  645. 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>";
  646. $('#zhongchaoa').append(listHtml);
  647. }
  648. if(v.group == 'B'){
  649. var jfcc = parseInt(v.win)+parseInt(v.ping)+parseInt(v.loss);
  650. 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>";
  651. $('#zhongchaot').append(listHtml);
  652. }
  653. });
  654. };
  655. };
  656. },
  657. error: function(e) {
  658. console.log(e);
  659. },
  660. });
  661. } else {
  662. $('#zhongchaoa').html('');
  663. $('#zhongchaot').html('');
  664. if (huancundata[qharrmc + "_" + type].length > 0) {
  665. $.each(huancundata[qharrmc + "_" + type], function(index, v) {
  666. if(v.group == 'A'){
  667. var jfcc = parseInt(v.win)+parseInt(v.ping)+parseInt(v.loss);
  668. 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>";
  669. $('#zhongchaoa').append(listHtml);
  670. }
  671. if(v.group == 'B'){
  672. var jfcc = parseInt(v.win)+parseInt(v.ping)+parseInt(v.loss);
  673. 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>";
  674. $('#zhongchaot').append(listHtml);
  675. }
  676. });
  677. } else {
  678. $('#dqlebiao').append("<p class='wxgss_img'><img src='" + imgurl + "www/img/nodatalb.png'><span>暂无相关数据</span></p>");
  679. $(".pm_shuming_wap").hide();
  680. };
  681. };
  682. };
  683. //亚冠积分榜
  684. function ygjfb(comid, type, catid) {
  685. $('.ya_cont_wrap').hide();
  686. $(".pm_shuming").show();
  687. $("#zhongchaoa").attr("class", "list_xq jifeng");
  688. $("#zhongchaot").attr("class", "list_xq jifeng");
  689. $(".zhongchaoa").attr("class", "biaotitle jifeng");
  690. if (huancundata[qharrmc + "_" + type] == undefined) {
  691. $.ajax({
  692. url: url,
  693. cache: false,
  694. type: 'post',
  695. async: false,
  696. dataType: 'json',
  697. data: {
  698. comid: comid,
  699. type: type,
  700. catid: catid,
  701. },
  702. success: function(res) {
  703. var arr = res.arr;
  704. if (res.arr == undefined) {
  705. huancundata[qharrmc + "_" + type] = [];
  706. } else {
  707. huancundata[qharrmc + "_" + type] = arr;
  708. }
  709. $('.yaguan_content').html('');
  710. if (res.arr == undefined) {
  711. $('#dqlebiao').append("<p class='wxgss_img'><img src='" + imgurl + "www/img/nodatalb.png'><span>暂无相关数据</span></p>");
  712. $(".pm_shuming_wap").hide();
  713. } else {
  714. if (arr.length > 0) {
  715. var goup_name;
  716. $.each(arr, function(index, v) {
  717. if(v.group == 'A'){
  718. yaguancon(v);
  719. $('.ya_cont_wrap').eq(0).show();
  720. $('.ya_cont_wrap').eq(0).find('.yaguan_content').append(yg_conten);
  721. }
  722. if(v.group == 'B'){
  723. yaguancon(v);
  724. $('.ya_cont_wrap').eq(1).show();
  725. $('.ya_cont_wrap').eq(1).find('.yaguan_content').append(yg_conten);
  726. }
  727. if(v.group == 'C'){
  728. yaguancon(v);
  729. $('.ya_cont_wrap').eq(2).show();
  730. $('.ya_cont_wrap').eq(2).find('.yaguan_content').append(yg_conten);
  731. }
  732. if(v.group == 'D'){
  733. yaguancon(v);
  734. $('.ya_cont_wrap').eq(3).show();
  735. $('.ya_cont_wrap').eq(3).find('.yaguan_content').append(yg_conten);
  736. }
  737. if(v.group == 'E'){
  738. yaguancon(v);
  739. $('.ya_cont_wrap').eq(4).show();
  740. $('.ya_cont_wrap').eq(4).find('.yaguan_content').append(yg_conten);
  741. }
  742. if(v.group == 'F'){
  743. yaguancon(v);
  744. $('.ya_cont_wrap').eq(5).show();
  745. $('.ya_cont_wrap').eq(5).find('.yaguan_content').append(yg_conten);
  746. }
  747. if(v.group == 'G'){
  748. yaguancon(v);
  749. $('.ya_cont_wrap').eq(6).show();
  750. $('.ya_cont_wrap').eq(6).find('.yaguan_content').append(yg_conten);
  751. }
  752. if(v.group == 'H'){
  753. yaguancon(v);
  754. $('.ya_cont_wrap').eq(7).show();
  755. $('.ya_cont_wrap').eq(7).find('.yaguan_content').append(yg_conten);
  756. }
  757. if(v.group == 'I'){
  758. }
  759. });
  760. };
  761. };
  762. },
  763. error: function(e) {
  764. console.log(e);
  765. },
  766. });
  767. } else {
  768. $('.yaguan_content').html('');
  769. if (huancundata[qharrmc + "_" + type].length > 0) {
  770. $.each(huancundata[qharrmc + "_" + type], function(index, v) {
  771. if(v.group == 'A'){
  772. yaguancon(v);
  773. $('.ya_cont_wrap').eq(0).show();
  774. $('.ya_cont_wrap').eq(0).find('.yaguan_content').append(yg_conten);
  775. }
  776. if(v.group == 'B'){
  777. yaguancon(v);
  778. $('.ya_cont_wrap').eq(1).show();
  779. $('.ya_cont_wrap').eq(1).find('.yaguan_content').append(yg_conten);
  780. }
  781. if(v.group == 'C'){
  782. yaguancon(v);
  783. $('.ya_cont_wrap').eq(2).show();
  784. $('.ya_cont_wrap').eq(2).find('.yaguan_content').append(yg_conten);
  785. }
  786. if(v.group == 'D'){
  787. yaguancon(v);
  788. $('.ya_cont_wrap').eq(3).show();
  789. $('.ya_cont_wrap').eq(3).find('.yaguan_content').append(yg_conten);
  790. }
  791. if(v.group == 'E'){
  792. yaguancon(v);
  793. $('.ya_cont_wrap').eq(4).show();
  794. $('.ya_cont_wrap').eq(4).find('.yaguan_content').append(yg_conten);
  795. }
  796. if(v.group == 'F'){
  797. yaguancon(v);
  798. $('.ya_cont_wrap').eq(5).show();
  799. $('.ya_cont_wrap').eq(5).find('.yaguan_content').append(yg_conten);
  800. }
  801. if(v.group == 'G'){
  802. yaguancon(v);
  803. $('.ya_cont_wrap').eq(6).show();
  804. $('.ya_cont_wrap').eq(6).find('.yaguan_content').append(yg_conten);
  805. }
  806. if(v.group == 'H'){
  807. yaguancon(v);
  808. $('.ya_cont_wrap').eq(7).show();
  809. $('.ya_cont_wrap').eq(7).find('.yaguan_content').append(yg_conten);
  810. }
  811. if(v.group == 'I'){
  812. }
  813. });
  814. } else {
  815. $('#dqlebiao').append("<p class='wxgss_img'><img src='" + imgurl + "www/img/nodatalb.png'><span>暂无相关数据</span></p>");
  816. $(".pm_shuming_wap").hide();
  817. };
  818. };
  819. };
  820. function yaguancon(v){
  821. var jfcc = parseInt(v.win)+parseInt(v.ping)+parseInt(v.loss);
  822. 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>";
  823. };
  824. //NBA胜负榜
  825. function nbasf(comid, type, catid) {
  826. $(".pm_shuming").hide();
  827. $("#shengfu").attr("class", "list_xq jifeng");
  828. $("#shengfu").attr("class", "list_xq jifeng");
  829. $(".shengfu").attr("class", "biaotitle jifeng");
  830. if (huancundata[qharrmc + "_" + type] == undefined) {
  831. $.ajax({
  832. url: url,
  833. cache: false,
  834. type: 'post',
  835. async: false,
  836. dataType: 'json',
  837. data: {
  838. comid: comid,
  839. type: type,
  840. catid: catid,
  841. },
  842. success: function(res) {
  843. var arr = res.arr;
  844. if (res.arr == undefined) {
  845. huancundata[qharrmc + "_" + type] = [];
  846. } else {
  847. huancundata[qharrmc + "_" + type] = arr;
  848. }
  849. $('#dqlebiao').html('');
  850. if (res.arr == undefined) {
  851. $('#dqlebiao').append("<p class='wxgss_img'><img src='" + imgurl + "www/img/nodatalb.png'><span>暂无相关数据</span></p>");
  852. $(".pm_shuming_wap").hide();
  853. } else {
  854. if (arr.length > 0) {
  855. $.each(arr, function(index, v) {
  856. if(v.group == 1){
  857. var nsu = v.points_status.split("/");
  858. var spss= v.win_loss.split("/");
  859. var listHtml = "<ul class='biaonr'>\
  860. <li>" + v.rank + "</li>\
  861. <li class='qiudui'>" + v.team_name + "</li>\
  862. <li>" + spss[0] + "</li>\
  863. <li>" + spss[1] + "</li>\
  864. <li>" + spss[2] + "</li>\
  865. <li>" + spss[3] + "%</li>\
  866. <li>" + v.guest_win_loss + "</li>\
  867. <li>" + v.home_win_loss + "</li>\
  868. <li>"+nsu[0]+"</li>\
  869. <li>"+nsu[1]+"</li>\
  870. <li>"+nsu[2]+"</li>\
  871. </ul>";
  872. $('#shengfu').append(listHtml);
  873. }
  874. if(v.group == 2){
  875. var nsu = v.points_status.split("/");
  876. var spss= v.win_loss.split("/");
  877. var listHtml = "<ul class='biaonr'>\
  878. <li>" + v.rank + "</li>\
  879. <li class='qiudui'>" + v.team_name + "</li>\
  880. <li>" + spss[0] + "</li>\
  881. <li>" + spss[1] + "</li>\
  882. <li>" + spss[2] + "</li>\
  883. <li>" + spss[3] + "%</li>\
  884. <li>" + v.guest_win_loss + "</li>\
  885. <li>" + v.home_win_loss + "</li>\
  886. <li>"+nsu[0]+"</li>\
  887. <li>"+nsu[1]+"</li>\
  888. <li>"+nsu[2]+"</li>\
  889. </ul>";
  890. $('#shengfue').append(listHtml);
  891. }
  892. });
  893. };
  894. };
  895. },
  896. error: function(e) {
  897. console.log(e);
  898. },
  899. });
  900. } else {
  901. $('#shengfu').html('');
  902. $('#shengfue').html('');
  903. if (huancundata[qharrmc + "_" + type].length > 0) {
  904. $.each(huancundata[qharrmc + "_" + type], function(index, v) {
  905. if(v.group == 1){
  906. var nsu = v.points_status.split("/");
  907. var spss= v.win_loss.split("/");
  908. var listHtml = "<ul class='biaonr'>\
  909. <li>" + v.rank + "</li>\
  910. <li class='qiudui'>" + v.team_name + "</li>\
  911. <li>" + spss[0] + "</li>\
  912. <li>" + spss[1] + "</li>\
  913. <li>" + spss[2] + "</li>\
  914. <li>" + spss[3] + "%</li>\
  915. <li>" + v.guest_win_loss + "</li>\
  916. <li>" + v.home_win_loss + "</li>\
  917. <li>"+nsu[0]+"</li>\
  918. <li>"+nsu[1]+"</li>\
  919. <li>"+nsu[2]+"</li>\
  920. </ul>";
  921. $('#shengfu').append(listHtml);
  922. }
  923. if(v.group == 2){
  924. var nsu = v.points_status.split("/");
  925. var spss= v.win_loss.split("/");
  926. var listHtml = "<ul class='biaonr'>\
  927. <li>" + v.rank + "</li>\
  928. <li class='qiudui'>" + v.team_name + "</li>\
  929. <li>" + spss[0] + "</li>\
  930. <li>" + spss[1] + "</li>\
  931. <li>" + spss[2] + "</li>\
  932. <li>" + spss[3] + "%</li>\
  933. <li>" + v.guest_win_loss + "</li>\
  934. <li>" + v.home_win_loss + "</li>\
  935. <li>"+nsu[0]+"</li>\
  936. <li>"+nsu[1]+"</li>\
  937. <li>"+nsu[2]+"</li>\
  938. </ul>";
  939. $('#shengfue').append(listHtml);
  940. }
  941. });
  942. } else {
  943. $('#dqlebiao').append("<p class='wxgss_img'><img src='" + imgurl + "www/img/nodatalb.png'><span>暂无相关数据</span></p>");
  944. $(".pm_shuming_wap").hide();
  945. };
  946. };
  947. };