自定义首页添加数量
This commit is contained in:
parent
e28f24ba0d
commit
f63a315c28
@ -43,7 +43,9 @@ public class CustomIndexPageRouteController {
|
||||
@GetMapping("index")
|
||||
public ModelAndView index() {
|
||||
ModelAndView mv = new ModelAndView("index/index");
|
||||
mv.addObject("listOAuth2Client", listOAuth2ClientOfMine());
|
||||
List<OAuth2ClientSimpleDTO> oAuth2ClientSimpleDTOs = listOAuth2ClientOfMine();
|
||||
mv.addObject("listOAuth2Client", oAuth2ClientSimpleDTOs);
|
||||
mv.addObject("listOAuth2ClientSize", oAuth2ClientSimpleDTOs.size());
|
||||
mv.addObject("systemTitle", ConfigManager.getInstance().getConfig().get("systemTitle"));
|
||||
return mv;
|
||||
}
|
||||
|
@ -3,6 +3,7 @@ server:
|
||||
url: http://192.168.0.155:7011/usercenter
|
||||
system-title: 统一用户管理系统
|
||||
system-sub-title: 智慧城市
|
||||
default-index-page: route/custom/index
|
||||
servlet:
|
||||
context-path: /usercenter
|
||||
|
||||
|
@ -23,6 +23,7 @@
|
||||
<div class="swiper-pagination"></div>
|
||||
<div class="swiper-button-prev"></div>
|
||||
<div class="swiper-button-next"></div>
|
||||
<input type="hidden" id="listOAuth2ClientSize" th:value="${listOAuth2ClientSize}">
|
||||
</div>
|
||||
<a id="logoutBtn" href="oauth/logout" title="退出系统"></a>
|
||||
<script src="assets/js/jquery-3.5.1.min.js"></script>
|
||||
@ -33,9 +34,9 @@
|
||||
watchSlidesProgress: true,
|
||||
slidesPerView: 'auto',
|
||||
centeredSlides: true,
|
||||
// loop: true,
|
||||
loop: $('#listOAuth2ClientSize').val() > 2 ? true : false,
|
||||
loopedSlides: 5,
|
||||
// autoplay: true,
|
||||
autoplay: true,
|
||||
navigation: {
|
||||
nextEl: '.swiper-button-next',
|
||||
prevEl: '.swiper-button-prev',
|
||||
|
Loading…
Reference in New Issue
Block a user