zhibo.tmpl 464 B

12345678910111213141516171819202122232425
  1. var parent={};
  2. parent.parseGameList=function(){
  3. this.result=[];
  4. for(let index in this.GameData)
  5. {
  6. var item=this.GameData[index];
  7. var tmp={};
  8. tmp.game_type=item[0];
  9. tmp.start_time=item[2];
  10. tmp.host_team=item[3];
  11. tmp.guest_team=item[4];
  12. tmp.doing=0;
  13. tmp.showid=item[10];
  14. tmp.shower=item[13];
  15. if(item[6]=='Y'){
  16. tmp.doing=1;
  17. }
  18. tmp.league_name=item[9];
  19. this.result.push(tmp);
  20. }
  21. console.log(JSON.stringify(this.result));
  22. }
  23. #CONTENT#