eyoucms get current page number

Application scenario: In the paging list, we need to obtain the current page number to determine when it is on the first page, so that you can customize some effects before paging has begun, please accept the current page number acquisition method below.

Find Core / library / think / paginator / driver / mobile.php This may be the paging method on the mobile side

Find $ pageArr = array (); and add a new method below

if (in_array('current', $listitemArr)) {
    array_push($pageArr, $this->currentPage);
}

Foreground call

{eyou:pagelist listitem="current"}

Guess you like

Origin blog.51cto.com/14747960/2486349