增加高新区首页
@ -3,7 +3,6 @@ package com.cm.serviceusercenter.controller;
|
||||
import com.cm.common.component.SecurityComponent;
|
||||
import com.cm.common.config.properties.SystemProperties;
|
||||
import com.cm.common.constants.ISystemConstant;
|
||||
import com.cm.common.dingding.config.properties.DingDingAppProperties;
|
||||
import com.cm.common.exception.SearchException;
|
||||
import com.cm.common.pojo.bos.UserInfoBO;
|
||||
import com.cm.common.utils.verification.code.Captcha;
|
||||
@ -15,6 +14,7 @@ import com.cm.serviceusercenter.manager.ConfigManager;
|
||||
import com.cm.serviceusercenter.service.system.menu.IMenuService;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.security.web.authentication.logout.SecurityContextLogoutHandler;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
@ -47,10 +47,12 @@ public class SignController {
|
||||
private IMenuService menuService;
|
||||
@Autowired
|
||||
private DingDingScanCodeLoginProperties dingDingScanCodeLoginProperties;
|
||||
@Value("${server.default-home-page:index}")
|
||||
private String defaultHomePage;
|
||||
|
||||
@GetMapping("index")
|
||||
public ModelAndView goIndex() throws SearchException {
|
||||
ModelAndView mv = new ModelAndView("index");
|
||||
ModelAndView mv = new ModelAndView(defaultHomePage);
|
||||
UserInfoBO userInfoBO = securityComponent.getCurrentUser();
|
||||
mv.addObject("userUsername", userInfoBO.getUserUsername());
|
||||
return mv;
|
||||
|
@ -4,6 +4,7 @@ server:
|
||||
ws: ws://192.168.0.103:7021/usercenter/ws
|
||||
title: 统一用户管理平台
|
||||
login-page-name: 统一用户管理平台
|
||||
default-home-page: index-gxq
|
||||
servlet:
|
||||
context-path: /usercenter
|
||||
|
||||
|
@ -28,11 +28,13 @@ spring:
|
||||
max-request-size: 1GB
|
||||
datasource:
|
||||
druid:
|
||||
url: jdbc:mysql://127.0.0.1:3306/db_cloud_v2_test?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false&serverTimezone=UTC
|
||||
# url: jdbc:mysql://127.0.0.1:3306/db_cloud_v2_test?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false&serverTimezone=UTC
|
||||
url: jdbc:mysql://127.0.0.1:3306/db_btyjj_usercenter1?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false&serverTimezone=UTC
|
||||
db-type: mysql
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
username: root
|
||||
password: TSkj@0471.123
|
||||
# password: TSkj@0471.123
|
||||
password: root
|
||||
initial-size: 2
|
||||
min-idle: 2
|
||||
max-active: 10
|
||||
|
BIN
src/main/resources/static/assets/images/gxq/1.jpg
Normal file
After Width: | Height: | Size: 24 KiB |
BIN
src/main/resources/static/assets/images/gxq/2.jpg
Normal file
After Width: | Height: | Size: 34 KiB |
BIN
src/main/resources/static/assets/images/gxq/3.jpg
Normal file
After Width: | Height: | Size: 44 KiB |
BIN
src/main/resources/static/assets/images/gxq/4.jpg
Normal file
After Width: | Height: | Size: 30 KiB |
BIN
src/main/resources/static/assets/images/gxq/5.jpg
Normal file
After Width: | Height: | Size: 42 KiB |
BIN
src/main/resources/static/assets/images/gxq/logo.png
Normal file
After Width: | Height: | Size: 22 KiB |
BIN
src/main/resources/static/assets/images/gxq/map.png
Normal file
After Width: | Height: | Size: 600 KiB |
BIN
src/main/resources/static/assets/images/gxq/title.png
Normal file
After Width: | Height: | Size: 25 KiB |
155
src/main/resources/templates/index-gxq.html
Normal file
@ -0,0 +1,155 @@
|
||||
<!DOCTYPE html>
|
||||
<html xmlns:th="http://www.thymeleaf.org">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<base href="/usercenter/">
|
||||
<title th:text="${loginPageName}"></title>
|
||||
<style>
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.container {
|
||||
padding: 2% 3%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.main, .right-title {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.logo {
|
||||
margin-bottom: 20px
|
||||
}
|
||||
|
||||
.left {
|
||||
width: 60%;
|
||||
float: left;
|
||||
padding: 15px;
|
||||
box-sizing: border-box;
|
||||
border: 1px solid #DDD;
|
||||
}
|
||||
|
||||
.left img {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.right {
|
||||
float: right;
|
||||
width: 39%;
|
||||
}
|
||||
|
||||
.right .title {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.right-item {
|
||||
font-size: 0;
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.right-item a {
|
||||
display: inline-block;
|
||||
width: 24%;
|
||||
margin-right: 1.333333%;
|
||||
text-align: center;
|
||||
margin-bottom: 20px
|
||||
}
|
||||
|
||||
.right-item a:nth-child(4n) {
|
||||
margin-right: 0
|
||||
}
|
||||
|
||||
.right-item a img {
|
||||
height: 80px;
|
||||
margin-bottom: 10px
|
||||
}
|
||||
|
||||
.right-item a p {
|
||||
text-align: center;
|
||||
font-size: 16px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="logo">
|
||||
<img src="assets/images/gxq/logo.png" alt="">
|
||||
</div>
|
||||
<div class="main">
|
||||
<div class="left">
|
||||
<img src="assets/images/gxq/map.png" alt="">
|
||||
</div>
|
||||
<div class="right">
|
||||
<div class="right-title">
|
||||
<img src="assets/images/gxq/title.png" alt="" class="title">
|
||||
</div>
|
||||
<div class="right-item" id="oauthClientTemplateBox"></div>
|
||||
<script id="oauthClientTemplate" type="text/html">
|
||||
<a href="main" title="用户管理系统">
|
||||
<img src="assets/images/gxq/1.jpg" alt="">
|
||||
<p>用户管理系统</p>
|
||||
</a>
|
||||
{{# if(d.length > 0) { }}
|
||||
{{# for(var i = 0, item; item = d[i++];) { }}
|
||||
<a href="{{item.webServerRedirectUri}}" title="{{item.clientName}}">
|
||||
{{# if(!item.systemIcon) { }}
|
||||
<img src="assets/images/gxq/1.jpg" class="system-icon">
|
||||
{{# } else { }}
|
||||
<img src="route/file/downloadfile/true/{{item.systemIcon}}" class="system-icon">
|
||||
{{# } }}
|
||||
<p>{{item.clientName}}</p>
|
||||
</a>
|
||||
{{#} }}
|
||||
{{#} }}
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="assets/layuiadmin/layui/layui.js"></script>
|
||||
<script>
|
||||
layui.config({
|
||||
base: 'assets/layuiadmin/' //静态资源所在路径
|
||||
}).extend({
|
||||
index: 'lib/index' //主入口模块
|
||||
}).use(['index', 'restajax', 'datamessage', 'dialog'], function () {
|
||||
var $ = layui.$;
|
||||
var $win = $(window);
|
||||
var layer = layui.layer;
|
||||
var laytpl = layui.laytpl;
|
||||
var dialog = layui.dialog;
|
||||
var restAjax = layui.restajax;
|
||||
var dataMessage = layui.datamessage;
|
||||
|
||||
function initOauthClientTemplate(data) {
|
||||
laytpl(document.getElementById('oauthClientTemplate').innerHTML).render(data, function (html) {
|
||||
document.getElementById('oauthClientTemplateBox').innerHTML = html;
|
||||
});
|
||||
}
|
||||
|
||||
function initOauthClient() {
|
||||
restAjax.get('api/oauthclient/listoauthclient', {
|
||||
environment: 'formal'
|
||||
}, null, function (code, data) {
|
||||
initOauthClientTemplate(data);
|
||||
}, function (code, data) {
|
||||
dialog.msg(data.msg);
|
||||
initOauthClientTemplate([]);
|
||||
});
|
||||
}
|
||||
|
||||
initOauthClient();
|
||||
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|