1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| let pageList = this._view._PageC_List; let pageCount = pageList.getPages().length; let duration = 3; let currentPageIndex = 0; let direction = 1; let scrollTiem = 1; pageList.schedule(()=>{ if(currentPageIndex === pageCount-1){ direction = -1; }else if(currentPageIndex === 0){ direction = 1; } currentPageIndex += direction; pageList.scrollToPage(currentPageIndex,scrollTiem); },duration)
|