Authored by 高小祥

默认focus第一个

@@ -480,30 +480,30 @@ function parseActivityTimeLsit(json, focusTime=0) { @@ -480,30 +480,30 @@ function parseActivityTimeLsit(json, focusTime=0) {
480 activityTimeItem.over = true; 480 activityTimeItem.over = true;
481 }else{ 481 }else{
482 activityTimeItem.now = true; 482 activityTimeItem.now = true;
483 - focusIndex || (activityTimeItem.focus = focusIndex = true); 483 + // focusIndex || (activityTimeItem.focus = focusIndex = true);
484 } 484 }
485 } else { 485 } else {
486 activityTimeItem.wait = true; 486 activityTimeItem.wait = true;
487 } 487 }
488 }); 488 });
489 if (newActivityTimeList.length && newActivityTimeList.findIndex(activityTimeItem => activityTimeItem.focus) < 0) { 489 if (newActivityTimeList.length && newActivityTimeList.findIndex(activityTimeItem => activityTimeItem.focus) < 0) {
490 - let i = newActivityTimeList.length; 490 + // let i = newActivityTimeList.length;
491 491
492 - // 没有focus的活动,则focus 最后一个 over 的活动  
493 - while (i) {  
494 - let activityTimeItem = newActivityTimeList[i - 1]; 492 + // // 没有focus的活动,则focus 最后一个 over 的活动
  493 + // while (i) {
  494 + // let activityTimeItem = newActivityTimeList[i - 1];
495 495
496 - if (activityTimeItem.over) {  
497 - activityTimeItem.focus = true;  
498 - break;  
499 - }  
500 - i = i - 1;  
501 - } 496 + // if (activityTimeItem.over) {
  497 + // activityTimeItem.focus = true;
  498 + // break;
  499 + // }
  500 + // i = i - 1;
  501 + // }
502 502
503 - // 没有over,全部都是未开抢,则focus第一个  
504 - if (!i) { 503 + // // 没有over,全部都是未开抢,则focus第一个
  504 + // if (!i) {
505 newActivityTimeList[0].focus = true; 505 newActivityTimeList[0].focus = true;
506 - } 506 + // }
507 } 507 }
508 508
509 let focusActivity = newActivityTimeList.find(activityTimeItem => activityTimeItem.focus); 509 let focusActivity = newActivityTimeList.find(activityTimeItem => activityTimeItem.focus);