demo20230512/Views/Partial/templates/page.cshtml
2023-05-12 10:20:28 +08:00

26 lines
1.2 KiB
Plaintext

<div class="page_change_wrap" ng-show="passedTotalPage != 0">
<div class="page_change pagination">
@*DL-10*@
<div class="page_change_left" ng-click="changePage(passedCurrentPage-1)">
<img src="@ViewBag.baseUrl/Browser_Local/img/a03-01.png" />
</div>
<div class="page_change_count">
<div class="page_item first"
ng-show="(-5 + passedCurrentPage) > 1"
ng-click="changePage(-6+passedCurrentPage)">...</div>
<div class="page_item"
ng-repeat="page in [-5,-4,-3,-2,-1,0,1,2,3,4,5] | filter :test "
ng-click="changePage(page+passedCurrentPage)"
ng-class="{ first: $index == 0 && !((-5 + passedCurrentPage) > 1), current: page == 0 }"
ng-bind="page+passedCurrentPage">
</div>
<div class="page_item"
ng-show="(5 + passedCurrentPage) < passedTotalPage"
ng-click="changePage(6+passedCurrentPage)">...</div>
</div>
@*DL-10*@
<div class="page_change_right" ng-click="changePage(passedCurrentPage+1)">
<img src="@ViewBag.baseUrl/Browser_Local/img/a03-02.png" />
</div>
</div>
</div>