zaopan.tmpl 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. var parent={};
  2. var top={};
  3. function checkCorner(item){
  4. if(item.split('角球数')>1){
  5. return 1;
  6. }
  7. return 0;
  8. }
  9. parent.body_var_onLoad=function(){
  10. this.data={};
  11. this.data.total_page=this.t_page;
  12. this.data.retime=this.retime;
  13. this.result=[];
  14. for(let index in G)
  15. {
  16. var item=this.GameFT[index];
  17. var col_length=item.length;
  18. var tmp={};
  19. var date=new Date;
  20. tmp.match_id=item[0];
  21. var tit=item[1];
  22. tit=tit.split('<br>');
  23. var year=date.getFullYear();
  24. tmp.is_roll=0;
  25. if(tit.length>2){
  26. tmp.is_roll=1;
  27. }
  28. tmp.mdate=year+'-'+tit[0];
  29. tmp.mtime=tit[1];
  30. tmp.half_match_id=item[22];
  31. tmp.league_name=item[2];
  32. tmp.host_id=item[3];
  33. tmp.guest_id=item[4];
  34. tmp.host_name=item[5];
  35. tmp.guest_name=item[6];
  36. tmp.league_id=item[39];
  37. tmp.odds_num=item[34];
  38. tmp.hot=item[36];
  39. tmp.play=item[38];
  40. tmp.special=item[45];
  41. tmp.ptype=item[44];//联赛附属类型,比如,会晋级,角球数
  42. tmp.is_corner=checkCorner(tmp.ptype);
  43. this.result.push(tmp);
  44. }
  45. this.data.data=this.result;
  46. console.log(JSON.stringify(this.data));
  47. }
  48. #CONTENT#
  49. onLoad();