Parcourir la source

更新伊宁退出登录接口 增加保康模块

1037015548@qq.com il y a 1 mois
Parent
commit
2f8893639f

+ 72 - 3
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysIndexController.java

@@ -37,7 +37,7 @@ import com.ruoyi.system.service.ISysMenuService;
 
 /**
  * 首页 业务处理
- * 
+ *
  * @author ruoyi
  */
 @Controller
@@ -284,9 +284,10 @@ public class SysIndexController extends BaseController
         mmap.put("rightThreeList",rightThreeList);
 //        return "mainLhk";
 //        return "main";
-//        return "mainYining";
+        return "mainYining";
 //        return "mainDangyang";
-        return "mainJiangjin";
+//        return "mainJiangjin";
+//        return "mainBaokang";
     }
 
 
@@ -377,6 +378,74 @@ public class SysIndexController extends BaseController
         return "mainJiangjinView";
     }
 
+    @GetMapping("/system/mainBaokangView")
+    public String mainBaokangView(ModelMap mmap){
+        mmap.put("version", RuoYiConfig.getVersion());
+
+        String sessionId = ShiroUtils.getSessionId();
+
+
+        UserRelate userRelate = new UserRelate();
+        userRelate.setUserId(getUserId());
+        List<UserRelate> userRelates = userRelateService.selectUserRelateList(userRelate);
+        //获取档案列表
+//        List<Dangan>  danganList = danganService.selectDanganList(new Dangan());
+
+        mmap.put("sessionId",sessionId);
+
+        //23年2月14日新增,加入档案信息
+        if(!CollectionUtils.isEmpty(userRelates)) {
+            for (UserRelate relate : userRelates) {
+                Dangan dangan = danganService.selectDanganById(relate.getDanganId());
+                if(!ObjectUtils.isEmpty(dangan)){
+                    if(!StringUtils.isEmpty(dangan.getIconInfo())){
+                        if(dangan.getIconInfo().contains("/upload")){
+                            //期望给用户展示用的可直接访问的URL
+                            String newStr = dangan.getIconInfo();
+                            String[] ipPorts = ipPort.split(",");
+                            //分ip+端口号 和 域名情况
+                            if(ipPorts.length>=2){
+                                //说明是由ip,端口组成的参数
+                                newStr = "http://"+ipPorts[0]+":"+ipPorts[1]+"/iconShow"+newStr;
+                            }else if(ipPorts.length==1){
+                                //说明ip配置的是域名
+                                newStr = "http://"+ipPorts[0]+"/iconShow"+newStr;
+                            }
+                            dangan.setIconInfo(newStr);
+                        }
+                    }else{
+                        //说明档案图标未上传,那么使用默认图标
+                        SysConfig configQuery = new SysConfig();
+                        configQuery.setConfigKey("sys.main.defaultIcon");
+                        SysConfig configEntity = configMapper.selectConfig(configQuery);
+                        if(!ObjectUtils.isEmpty(configEntity)) {
+                            String config = configEntity.getConfigValue();
+                            if (!StringUtils.isEmpty(config)) {
+                                //说明全局config表中已配置
+                                //期望给用户展示用的可直接访问的URL
+                                String newStr = config;
+//                                String[] ipPorts = ipPort.split(",");
+//                                //分ip+端口号 和 域名情况
+//                                if (ipPorts.length >= 2) {
+//                                    //说明是由ip,端口组成的参数
+//                                    newStr = "http://" + ipPorts[0] + ":" + ipPorts[1] + "/iconShow" + newStr;
+//                                } else if (ipPorts.length == 1) {
+//                                    //说明ip配置的是域名
+//                                    newStr = "http://" + ipPorts[0] + "/iconShow" + newStr;
+//                                }
+                                dangan.setIconInfo(newStr);
+                            }
+                        }
+                    }
+                    relate.setDangan(dangan);
+                }
+            }
+        }
+        //TODO 当阳专有逻辑
+        mmap.put("danganList",userRelates);
+        return "mainBaokangView";
+    }
+
     @GetMapping("/system/mainDangyangView")
     public String mainDangyangView(ModelMap mmap){
         mmap.put("version", RuoYiConfig.getVersion());

+ 3 - 2
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysLoginController.java

@@ -76,9 +76,10 @@ public class SysLoginController extends BaseController
         // 是否开启用户注册
         mmap.put("isAllowRegister", Convert.toBool(configService.getKey("sys.account.registerUser"), false));
 //        return "login";
-//        return "loginYining";
+        return "loginYining";
 //        return "loginDangyang";
-        return "loginJiangjin";
+//        return "loginJiangjin";
+//        return "loginBaokang";
     }
 
     @PostMapping("/login")

+ 8 - 5
ruoyi-admin/src/main/resources/application-test.yml

@@ -58,15 +58,18 @@ spring:
 #                     username: postgres
 #                     password: lhk.postgres.2347
 #                     password: kpr.23417.postgres
-#                      url: jdbc:postgresql://140.246.183.164:5432/union_mgr_new?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull
+                      url: jdbc:postgresql://140.246.183.164:5432/union_mgr_new?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull
+                      username: postgres
+                      password: kpr.23417.postgres
+#                      url: jdbc:postgresql://60.13.253.94:54321/union_mgr?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull
 #                      username: postgres
 #                      password: kpr.23417.postgres
-#                      url: jdbc:postgresql://60.13.253.94:54321/union_mgr?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull
+#                      url: jdbc:postgresql://10.101.3.104:5432/union_mgr?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull
+#                      username: postgres
+#                      password: kpr.23417.postgres
+#                      url: jdbc:postgresql://111.170.129.106:5432/union_mgr?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull
 #                      username: postgres
 #                      password: kpr.23417.postgres
-                      url: jdbc:postgresql://10.101.3.104:5432/union_mgr?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&useSSL=false&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull
-                      username: postgres
-                      password: kpr.23417.postgres
                 # 从库数据源
                 slave:
                     # 从数据源开关/默认关闭

+ 4 - 4
ruoyi-admin/src/main/resources/static/ruoyi/index.js

@@ -53,18 +53,18 @@ document.addEventListener('keypress', resetTimer, false);
 document.addEventListener('touchmove', resetTimer, false);
 document.addEventListener('',resetTimer,false);
 
-var danganYiningList = [[${danganList}]];
-document.getElementById('yiningLogoutLink').addEventListener('click', function(event) {
+// var danganYiningList = [[${danganList}]];
+/*document.getElementById('yiningLogoutLink').addEventListener('click', function(event) {
     // // 阻止默认的链接跳转行为
     // event.preventDefault();
     // alert(111);
     debugger
     // 执行你的方法
-    console.log(danganYiningList);
+    console.log(1111);
 
     // // 如果需要,可以在这里进行其他操作,例如重定向
     // window.location.href = this.href;
-});
+});*/
 
 $(function() {
     // 初始化定时器

+ 1 - 1
ruoyi-admin/src/main/resources/templates/index.html

@@ -250,7 +250,7 @@
 							<li class="divider"></li>
 							<li>
 								<a id="yiningLogoutLink" th:href="@{logout}">
-								<a><i class="fa fa-sign-out"></i> 退出登录</a>
+								<i class="fa fa-sign-out"></i> 退出登录</a>
 							</li>
 						</ul>
 					</li>

+ 222 - 0
ruoyi-admin/src/main/resources/templates/loginBaokang.html

@@ -0,0 +1,222 @@
+<!DOCTYPE html>
+<html lang="zh" xmlns:th="http://www.thymeleaf.org">
+<head>
+    <meta charset="utf-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
+    <title>登录智慧水务系统-认证系统</title>
+    <meta name="description" content="智慧水务系统-认证系统">
+    <meta name="referrer" content="no-referrer" />
+    <meta name="referrer" content="never">
+    <meta name="referrer" content="same-origin" />
+    <link href="../static/css/bootstrap.min.css" th:href="@{/css/bootstrap.min.css}" rel="stylesheet"/>
+    <link href="../static/css/font-awesome.min.css" th:href="@{/css/font-awesome.min.css}" rel="stylesheet"/>
+    <link href="../static/css/style.min.css" th:href="@{/css/style.min.css}" rel="stylesheet"/>
+    <link href="../static/css/login.min.css" th:href="@{/css/login.min.css}" rel="stylesheet"/>
+    <link href="../static/ruoyi/css/ry-ui.css" th:href="@{/ruoyi/css/ry-ui.css?v=4.7.5}" rel="stylesheet"/>
+    <script src="../static/js/jquery.min.js" th:src="@{/js/jquery.min.js}"></script>
+    <!-- 360浏览器急速模式 -->
+    <meta name="renderer" content="webkit">
+    <!-- 避免IE使用兼容模式 -->
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+    <link rel="shortcut icon" href="../static/favicon.ico" th:href="@{favicon.ico}"/>
+    <style type="text/css">label.error { position:inherit;  }</style>
+    <script>
+        if(window.top!==window.self){alert('未登录或登录超时。请重新登录');window.top.location=window.location};
+    </script>
+    <script th:inline="javascript"> var ctx = [[@{/}]]; var captchaType = [[${captchaType}]]; </script>
+    <!--[if lte IE 8]><script>window.location.href=ctx+'html/ie.html';</script><![endif]-->
+    <!-- 全局js -->
+    <script src="../static/js/jquery.min.js" th:src="@{/js/jquery.min.js}"></script>
+    <script src="../static/ajax/libs/validate/jquery.validate.min.js" th:src="@{/ajax/libs/validate/jquery.validate.min.js}"></script>
+    <script src="../static/ajax/libs/layer/layer.min.js" th:src="@{/ajax/libs/layer/layer.min.js}"></script>
+    <script src="../static/ajax/libs/blockUI/jquery.blockUI.js" th:src="@{/ajax/libs/blockUI/jquery.blockUI.js}"></script>
+    <script src="../static/ruoyi/js/ry-ui.js" th:src="@{/ruoyi/js/ry-ui.js?v=4.7.5}"></script>
+    <script src="../static/ruoyi/login.js" th:src="@{/ruoyi/login.js}"></script>
+    <style type="text/css">
+        .hClass{
+            position:absolute;
+            left:3%;
+            top:4%;
+            font-size: 25px;
+        }
+        .gradient-text {
+            font-size: 40px;
+            font-weight: bold;
+            background: -webkit-linear-gradient( white, rgb(188,214,249),white); /* Chrome, Safari */
+            background: linear-gradient( white, rgb(188,214,249),white); /* 标准语法 */
+            -webkit-background-clip: text; /* Chrome, Safari */
+            background-clip: text;
+            -webkit-text-fill-color: transparent; /* Chrome, Safari */
+            color: transparent; /* 标准语法, 如果背景剪辑支持的好 */
+            -webkit-font-smoothing: antialiased; /* 针对WebKit浏览器 */
+            -moz-osx-font-smoothing: grayscale; /* 针对Firefox浏览器 */
+            text-rendering: optimizeLegibility; /* 更一般的CSS属性 */
+            /*font-family: 'Arial Italic', 'Arial', sans-serif!important;*/
+            /*font-style: italic;*/
+        }
+        .divHead{
+            font-size: 20px;
+            position: absolute!important;
+            top: 30px!important;
+            left: 15%;
+            color: #1a1a1a;
+        }
+        .divFoot{
+            position: absolute!important;
+            bottom: -20px!important;
+            padding-bottom: 20px;
+            left: 0;
+            width: 100%!important;
+            font-size: 10px!important;
+            text-align: center;
+            color: rgb(153,169,189);
+        }
+        .loginInput:focus{
+            border: 2px dashed #458BF5;
+            color: #458BF5;
+        }
+        body{
+            background-color: #00173A;
+        }
+        .video-bg{position:absolute;top: 0;left:0;/* bottom: 0; */min-width: 100%;min-height: 100%;z-index:-9999;}
+    </style>
+</head>
+<video class="video-bg" autoplay loop muted><source th:src="@{img/yining/loginVideo.mp4}" type="video/mp4">
+</video>
+<body class="signin">
+    <div class="signinpanel">
+        <h4 class="hClass">
+            <span class="gradient-text">襄阳市保康供水智慧管理服务平台</span>
+        </h4>
+        <div class="row" style="height: 500px;">
+            <div class="col-sm-7">
+                <div class="signin-info">
+                    <div class="logopanel m-b">
+                        <h1></h1>
+                    </div>
+                    <div class="m-b"></div>
+
+                    <strong th:if="${isAllowRegister}">还没有账号? <a th:href="@{/register}">立即注册&raquo;</a></strong>
+                </div>
+            </div>
+            <div class="col-sm-5" style="height: 500px;width:400px;position: absolute;right: 20%;">
+                <div class="divHead">
+                    <p>Hello~</p>
+                    <p style="font-weight: bold!important;font-size: 30px">欢迎您登录</p>
+                </div>
+                <form id="signupForm" autocomplete="off" style="height: 520px!important;width:380px;padding-top: 100px;border-radius:24px;background-color: rgb(197,214,232);">
+                        <p style="position: absolute;right: 40px;top: 10px;" onclick="qiehuan()">APP下载→</p>
+                        <img class="leftTwoIcon" alt="[ APP下载二维码 ]" th:src="${codeUrl}" src="https://140.246.183.164:9000/base/apply/apk"
+                             style="display: inline-block;vertical-align:middle;position: absolute;right: 20px;top: 10px;;margin-left: 1em;width: 20px;height: 20px" onclick="qiehuan()">
+                        <input style="border-radius: 12px!important;margin-top: 40px;margin-left:10px;margin-bottom: 20px;width: 300px;height: 56px!important;" type="text"     name="username" class="form-control uname"   placeholder="用户名"  />
+                        <!--<input style="border-radius: 12px!important; margin-bottom: 20px;margin-left:10px;width: 300px;height: 56px!important;" type="password" id="password" name="password" class="form-control pword"  hidden autocomplete="off"   placeholder="密码" />-->
+                        <input type="text" style="border-radius: 12px!important; margin-bottom: -15px;margin-left:10px;width: 300px;height: 56px!important;" id="passwordDisc" class="form-control pword" placeholder="密码"
+                                oncontextmenu="return false;" autocomplete="off" >
+                        <!--密码真实保存位置-->
+                        <input type="text" style="visibility: hidden;border: 0;height: 0;width: 1px;padding: 0;margin: 0" name="password"
+                               id="password" placeholder="密码">
+                    <div class="row m-t" th:if="${captchaEnabled==true}" style="margin-bottom: 10px">
+                            <div class="col-xs-6">
+                                <input style="border-radius: 12px!important;margin-left:10px;width: 130px;height: 56px!important;" type="text" name="validateCode" class="form-control code" placeholder="验证码" maxlength="5" />
+                            </div>
+                            <div class="col-xs-6">
+                                <a style="" href="javascript:void(0);" title="点击更换验证码">
+                                    <img th:src="@{/captcha/captchaImage(type=${captchaType})}" class="imgcode" style="border-radius: 12px;width: 135px;height: 56px"/>
+                                </a>
+                            </div>
+                        </div>
+                        <!--<div class="checkbox-custom" style="width: 100%!important;margin-bottom: 15px;margin-left: 10px" th:if="${isRemembered}" th:classappend="${captchaEnabled==false} ? 'm-t'">-->
+                            <!--<input type="checkbox" id="rememberme" name="rememberme"> <label for="rememberme">记住密码</label>-->
+                            <!--<a style="margin-left: 160px" href="javascript:void(0)"  onclick="forgetpassword()"  >忘记密码&raquo;</a></strong>-->
+                        <!--</div>-->
+                        <button class="btn btn-success btn-block" style="border-radius: 12px!important;width: 300px!important;height:50px!important;margin-left: 10px;margin-top: 0;
+                                color: #FFFFFF!important;" id="btnSubmit" data-loading="正在验证登录,请稍候...">登录</button>
+                </form>
+                <div class="divFoot">
+                    <div>
+                        <br>
+                    </div>
+                </div>
+
+                <form id="signupFormCode" autocomplete="off" style="display:none;height: 520px!important;width:380px;padding-top: 100px;border-radius:24px;background-color: rgb(197,214,232);">
+                    <p style="position: absolute;right: 40px;top: 10px;" onclick="qiehuan()">返回账密登录→</p>
+                    <img class="leftTwoIcon" alt="[ APP下载二维码 ]" th:src="${codeUrl}" src="https://140.246.183.164:9000/base/apply/apk"
+                         style="display: inline-block;vertical-align:middle;position: absolute;right: 45px;top: 100px;;margin-left: 1em;width: 300px;height: 320px" onclick="qiehuan()">
+                </form>
+            </div>
+        </div>
+    </div>.
+<script type="text/javascript">
+    var passwordDisc = document.getElementById("passwordDisc");
+    var password = document.getElementById("password");
+    // 键盘按下执行,主要用于删除操作
+    passwordDisc.addEventListener("keydown", function (event) {
+        // 后面事件会改变,所以先记录选择的文本坐标
+        this.selectStartIndex = this.selectionStart;
+        this.selectEndIndex = this.selectionEnd;
+        if (event.key === 'Backspace') { // 如果是退格键
+            if (this.selectionStart === this.selectionEnd) {// 未选择文本
+                var str1 = password.value.substring(0, this.selectionStart - 1);
+                var str2 = password.value.substring(this.selectionStart);
+                password.value = str1 + str2;
+            } else { // 选择了文本
+                var str1 = password.value.substring(0, this.selectionStart);
+                var str2 = password.value.substring(this.selectionEnd);
+                password.value = str1 + str2;
+            }
+        } else if (event.key === 'Delete') { // 如果是删除键
+            if (this.selectionStart === this.selectionEnd) {// 未选择文本
+                var str1 = password.value.substring(0, this.selectionStart);
+                var str2 = password.value.substring(this.selectionStart + 1);
+                password.value = str1 + str2;
+            } else { // 选择了文本
+                var str1 = password.value.substring(0, this.selectionStart);
+                var str2 = password.value.substring(this.selectionEnd);
+                password.value = str1 + str2;
+            }
+        }
+    });
+
+    // 输入事件,保存密码
+    passwordDisc.addEventListener("input", function (event) {
+        if ((event.data || event.data != null || event.inputType === 'insertFromPaste') && event.inputType !== 'insertCompositionText') {
+            // 输入有数据或者是粘贴操作,并且不是中文输入
+            var data = event.data || event.data != null ? event.data : this.pasteString;
+            // 除ascii里的都替换为空,避免粘贴有其他符号
+            data = data.replace(/[^\x00-\x7e]/g, '');
+            var str1 = password.value.substring(0, this.selectStartIndex);
+            var str2 = password.value.substring(this.selectEndIndex);
+            password.value = str1 + data + str2;
+        }
+        // 文本框密文显示
+        passwordDisc.value = password.value.replace(/./g, '*');
+        // console.log(password.value);
+    })
+    // 获取粘贴板的文本数据
+    passwordDisc.addEventListener("paste", function (event) {
+        this.pasteString = event.clipboardData.getData('text/plain');
+    })
+
+    var cordFlag = false;
+
+    $("#password").val("");
+    function qiehuan() {
+        if(!cordFlag) {
+            $(".divHead").hide(100);
+            $("#signupForm").hide(100);
+            $("#divFoot").hide(100);
+
+            $("#signupFormCode").show(300);
+            cordFlag = true;
+        }else{
+            $(".divHead").show(300);
+            $("#signupForm").show(300);
+            $("#divFoot").show(300);
+
+            $("#signupFormCode").hide(100);
+            cordFlag = false;
+        }
+    }
+</script>
+</body>
+</html>

+ 82 - 0
ruoyi-admin/src/main/resources/templates/mainBaokang.html

@@ -0,0 +1,82 @@
+<!DOCTYPE html>
+<html  lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
+<head>
+	<meta charset="utf-8">
+	<link rel="shortcut icon" href="../static/images/favicon.ico" type="image/icon">
+	<meta http-equiv="X-UA-Compatible" content="IE=edge">
+	<meta name="viewport" content="width=device-width, initial-scale=1.0">
+	<!--360浏览器优先以webkit内核解析-->
+	<title></title>
+	<link rel="shortcut icon" href="favicon.ico">
+	<link href="../static/css/bootstrap.min.css" th:href="@{/css/bootstrap.min.css}" rel="stylesheet"/>
+	<link href="../static/css/font-awesome.min.css" th:href="@{/css/font-awesome.min.css}" rel="stylesheet"/>
+	<link href="../static/css/animate.min.css" th:href="@{/css/animate.min.css}" rel="stylesheet"/>
+	<link href="../static/css/style.min862f.css" th:href="@{/css/style.min862f.css}" rel="stylesheet"/>
+	<script src="../static/js/jquery.min.js" th:src="@{/js/jquery.min.js}"></script>
+	<th:block th:include="include :: header('首页')" />
+	<style type="text/css">
+		/* html,
+        html body {
+            height: 100%;
+            width: 100%;
+        } */
+		body {
+			margin: 0;
+			overflow: hidden;
+			background-color: #00173A;
+            /*background: url("/img/yining/testBack.png") no-repeat center fixed;*/
+            background-size: cover;
+		}
+
+		.test1 {
+			width: 100%;
+			height: 100%;
+			position: absolute;
+			left: 0;
+			top: 0;
+			display: flex;
+			align-items: center;
+			justify-content: center;
+			overflow: hidden;
+			/*background: radial-gradient(#055fd1, #04345c, #001f34);*/
+			/*background: radial-gradient(rgb(0,84,72), rgb(3,41,71), rgb(3,27,64));*/
+			z-index: -9999;
+		}
+
+		.ifreamClass {
+			flex:0 0 1920px!important;
+			height: 1080px!important;
+			z-index: 1;
+		}
+	</style>
+</head>
+
+
+
+<body>
+	<div id="app" class="assembly-html-body" style="position:relative;height: 100%">
+		<div class="test1" style="position:absolute;z-index:2;">
+			<iframe id="iframeView" th:src="@{/system/mainBaokangView}" frameborder="0" allowfullscreen="allowfullscreen"></iframe>
+		</div>
+	</div>
+	<script type="text/javascript">
+        function initScale() {
+            let clientWidth = document.body.clientWidth;
+            let num = clientWidth / 1920;
+
+            let  clientHeight = document.body.clientHeight;
+            let numHeight = clientHeight/1080;
+
+
+
+            let scaleNum = Math.min(num,numHeight).toFixed(2);
+
+            console.log(scaleNum);
+            $("#iframeView").addClass("ifreamClass");
+            $("#iframeView").css("transform","scale("+scaleNum+")");
+        }
+
+        initScale();
+	</script>
+</body>
+</html>

+ 369 - 0
ruoyi-admin/src/main/resources/templates/mainBaokangView.html

@@ -0,0 +1,369 @@
+<!DOCTYPE html>
+<html  lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
+<head>
+	<meta charset="utf-8">
+	<meta name="viewport" content="width=device-width, initial-scale=1.0">
+	<!--360浏览器优先以webkit内核解析-->
+	<title></title>
+	<link rel="shortcut icon" href="favicon.ico">
+	<link href="../static/css/bootstrap.min.css" th:href="@{/css/bootstrap.min.css}" rel="stylesheet"/>
+	<link href="../static/css/mainJiangjin.css" th:href="@{/css/mainJiangjin.css}" rel="stylesheet"/>
+	<link href="../static/css/font-awesome.min.css" th:href="@{/css/font-awesome.min.css}" rel="stylesheet"/>
+	<link href="../static/css/animate.min.css" th:href="@{/css/animate.min.css}" rel="stylesheet"/>
+	<link href="../static/css/style.min862f.css" th:href="@{/css/style.min862f.css}" rel="stylesheet"/>
+	<script th:src="@{/js/jquery.min.js}"></script>
+	<th:block th:include="include :: header('首页')" />
+	<style type="text/css">
+		body{
+			background-color: #00173A!important;
+		}
+		#mainTrueVideo{
+			position: fixed;
+			z-index: 9999;
+			/*-webkit-filter: grayscale(100%);*/
+		}
+		#mainYiningVideo{
+			position: fixed;
+			z-index: -9999;
+			/*-webkit-filter: grayscale(100%);*/
+		}
+		.aInput {
+			position: relative;
+			color: rgba(255,255,255,1);
+			text-decoration: none;
+			background-color: rgba(60,141,188,1);
+			font-family: 'Yanone Kaffeesatz';
+			/*font-weight: 700;*/
+			/*font-size: 2em;*/
+			display: block;
+			padding: 4px;
+			-webkit-border-radius: 20px;
+			-moz-border-radius: 20px;
+			border-radius: 20px;
+			-webkit-box-shadow: 0px 9px 0px rgba(60,141,188,1), 0px 9px 25px rgba(60,64,81,.7);
+			-moz-box-shadow: 0px 9px 0px rgba(60,141,188,1), 0px 9px 25px rgba(60,64,81,.7);
+			box-shadow: 0px 9px 0px rgba(60,141,188,1), 0px 9px 25px rgba(60,64,81,.7);
+			margin: 20px auto;
+			width: 60px;
+			height: 60px;
+			text-align: center;
+
+			-webkit-transition: all .1s ease;
+			-moz-transition: all .1s ease;
+			-ms-transition: all .1s ease;
+			-o-transition: all .1s ease;
+			transition: all .1s ease;
+		}
+
+		.aInput:active {
+			-webkit-box-shadow: 0px 3px 0px rgba(60,141,188,1), 0px 3px 6px rgba(60,64,81,.9);
+			-moz-box-shadow: 0px 3px 0px rgba(60,141,188,1), 0px 3px 6px rgba(60,64,81,.9);
+			box-shadow: 0px 3px 0px rgba(60,141,188,1), 0px 3px 6px rgba(60,64,81,.9);
+			position: relative;
+			top: 6px;
+		}
+		.hClass{
+			position:fixed;
+			left:27%;
+			transform: translateY(100px);
+			font-size: 30px;
+			animation: myanimation 2s;
+			animation-iteration-count: 1;
+		}
+		.gradient-text {
+			font-size: 40px;
+			font-weight: bold;
+			background: -webkit-linear-gradient( white, rgb(188,214,249),white); /* Chrome, Safari */
+			background: linear-gradient( white, rgb(188,214,249),white); /* 标准语法 */
+			-webkit-background-clip: text; /* Chrome, Safari */
+			background-clip: text;
+			-webkit-text-fill-color: transparent; /* Chrome, Safari */
+			color: transparent; /* 标准语法, 如果背景剪辑支持的好 */
+			-webkit-font-smoothing: antialiased; /* 针对WebKit浏览器 */
+			-moz-osx-font-smoothing: grayscale; /* 针对Firefox浏览器 */
+			text-rendering: optimizeLegibility; /* 更一般的CSS属性 */
+			/*font-family: 'Arial Italic', 'Arial', sans-serif!important;*/
+			/*font-style: italic;*/
+		}
+		@keyframes myanimation {
+			0%{
+				transform: translateY(-100px);
+			}
+			100%{
+				transform: translateY(100px);
+			}
+		}
+	</style>
+</head>
+
+
+
+<body class="gray-bg">
+<h4 class="hClass">
+	<span class="gradient-text">襄阳市保康供水智慧管理服务平台</span>
+</h4>
+<video src="mainTrue.mp4" th:src="@{/mainTrue.mp4}" id="mainTrueVideo" width="100%" height="100%" autoplay="autoplay" loop="loop" muted="muted">
+</video>
+<video src="mainYining.mp4" th:src="@{/mainYining.mp4}" id="mainYiningVideo" width="100%" height="100%" autoplay="autoplay" loop="loop" muted="muted">
+</video>
+<div class="leftAllLine">
+	<div class="leftMenuMedLine"></div>
+	<div class="leftMenuLeftLine"></div>
+</div>
+<div class="rightAllLine">
+	<div class="rightMenuMedLine"></div>
+	<div class="rightMenuLeftLine"></div>
+</div>
+<div style="z-index: 9999!important;" class="leftMenu">
+</div>
+<div style="z-index: 9999!important;" class="rightMenu">
+</div>
+<div class="topDiv">
+    <a style="" id="showMenuEsc" onclick="showMenuEsc()" title="模式切换"><i class="fa fa-cog" style="color:#FFFFFF!important;font-size: 30px!important;"></i></a>
+</div>
+<div class="bottomDiv"></div>
+<div class="container-div" style="z-index: 99999">
+	<div id="contentDiv" style="position: absolute;top: 20%;width: 100%;height: 700px;">
+		<div class="centerDiv"></div>
+	</div>
+</div>
+<script th:inline="javascript">
+	//TODO 逻辑解释:
+    //第一段视频放到第4秒的时候,就可以降低透明度了
+	//第一段视频放到第4秒时,降低透明度,再过1秒后透明度降到0。
+    $("#mainTrueVideo").css("z-index", "-10000");
+    $("#mainYiningVideo").css("z-index","-10001");
+    $(".leftOneDiv").show(500);
+    $(".leftTwoDiv").show(500);
+    $(".leftThreeDiv").show(500);
+    $(".rightOneDiv").show(500);
+    $(".rightTwoDiv").show(500);
+    $(".rightThreeDiv").show(500);
+
+    function insertChar(str, index, char) {
+        return str.replace(/./g, (match, i) => {
+            if (i === index) {
+            return char + match;
+        } else {
+            return match;
+        }
+    });
+    }
+
+    var danganList = [[${danganList}]];
+    function initDy(){
+        var $contentDiv = $("#contentDiv");
+        if(danganList!==null&&danganList!==undefined&&danganList.length>0){
+			for (let i = 1;i <= danganList.length;i++){
+			    let str = "";
+			    if(i===1){
+                    str += "<div style=\"\" class=\"leftOneDiv\">"+
+						"<div class=\"leftOneTopLine\"></div>" +
+                    "<div>" +
+                    "<p style=\"line-height: 6em;margin-left:-1em;display: inline-block;\">"+danganList[i-1].danganName+"</p>" +
+                    "<img class=\"leftOneIcon\" alt=\"[ "+danganList[i-1].danganName+" ]\" src=\"../img/jiangjin/左一.png\" " +
+                    " style=\"width: 150px;height: 150px;vertical-align:middle;position: absolute;top: 75px;margin-left: 1em\">" +
+                    "</div>" +
+                    "<div class=\"leftOneBottomLine\"></div>"+
+                    "<input style='display: none' value='"+danganList[i-1].danganUrl+"' class='.divUrl'>";
+				}
+                if(i===2){
+                    str +="<div style=\"\" class=\"leftTwoDiv\">"+
+						"<div class=\"leftTwoTopLine\"></div>" +
+                        "<div>" +
+                        "<p class='pWidth' style=\"line-height: 60px;padding-left: 0;display: inline-block;white-space: pre-wrap;" +
+						"margin-top:80px;text-align: right;";
+                    //配合样式white-space: pre-wrap;使用该逻辑
+                    let left2DanganName = danganList[i-1].danganName;
+                    if(left2DanganName.includes("供水运营")){
+                        left2DanganName = insertChar(left2DanganName,4,"\n")
+					}
+                    str+="\">"+left2DanganName+"</p>" +
+                        "<img class=\"leftTwoIcon\" alt=\"[ "+danganList[i-1].danganName+" ]\" src=\"../img/jiangjin/左二.png\" th:src=\"@{/img/yining/icon/智慧生产系统,未选中.png}\"" +
+                        " style=\"width: 150px;height: 150px;vertical-align:middle;position: absolute;top: 75px;margin-left: 1em\">" +
+                        "</div>" +
+                        "<div class=\"leftTwoBottomLine\"></div>"+
+                        "<input style='display: none' value='"+danganList[i-1].danganUrl+"' class='.divUrl'>";
+                }
+                if(i===3){
+                    str +=	"<div style=\"\" class=\"leftThreeDiv\">"+
+						"<div class=\"leftThreeTopLine\"></div>" +
+                        "<div>" +
+                        "<p style=\"line-height: 6em;padding-left: 1em;display: inline-block;\">"+danganList[i-1].danganName+"</p>" +
+                        "<img class=\"leftThreeIcon\" alt=\"[ "+danganList[i-1].danganName+" ]\" src=\"../img/jiangjin/左三.png\" th:src=\"@{/img/yining/icon/智慧管网系统,未选中.png}\"" +
+                        " style=\"width: 150px;height: 150px;vertical-align:middle;position: absolute;top: 75px;margin-left: 1em\">" +
+                        "</div>" +
+                        "<div class=\"leftThreeBottomLine\"></div>"+
+                        "<input style='display: none' value='"+danganList[i-1].danganUrl+"' class='.divUrl'>";
+                }
+                if(i===4){
+                    str +=	"<div style=\"\" class=\"rightOneDiv\">"+
+						"<div class=\"rightOneTopLine\"></div>" +
+                        "<div>" +
+                        "<img class=\"rightOneIcon\" alt=\"[ "+danganList[i-1].danganName+" ]\" src=\"../img/jiangjin/右一.png\" th:src=\"@{/img/yining/icon/智慧营业系统,未选中.png}\"" +
+                        " style=\"width: 150px;height: 150px;vertical-align:middle;position: absolute;top: 75px;left: 120px;margin-left: 1em\">" +
+                        "<p style=\"line-height: 60px;margin-left: 360px;display: inline-block;white-space: pre-wrap;" +
+						"margin-top:80px;text-align: right;" +
+						"\">";
+					//配合样式white-space: pre-wrap;使用该逻辑
+                    let right1DanganName = danganList[i-1].danganName;
+                    if(right1DanganName .includes("DMA")){
+                        right1DanganName  = insertChar(right1DanganName ,8,"\n")
+                    }
+					str	+= right1DanganName+"</p>" +
+                        "</div>" +
+                        "<div class=\"rightOneBottomLine\"></div>"+
+                        "<input style='display: none' value='"+danganList[i-1].danganUrl+"' class='.divUrl'>";
+                }
+                if(i===5){
+                    str +=	"<div style=\"\" class=\"rightTwoDiv\">"+
+						"<div class=\"rightTwoTopLine\"></div>" +
+                        "<div>" +
+                        "<img class=\"rightTwoIcon\" alt=\"[ "+danganList[i-1].danganName+" ]\" src=\"../img/jiangjin/右二.png\" th:src=\"@{/img/yining/icon/智慧客服系统,未选中.png}\"" +
+                        " style=\"width: 150px;height: 150px;vertical-align:middle;position: absolute;top: 75px;left: 60px;margin-left: 1em\">" +
+                        "<p style=\"line-height: 6em;margin-left: 300px;display: inline-block;\">"+danganList[i-1].danganName+"</p>" +
+                        "</div>" +
+                        "<div class=\"leftOneBottomLine\"></div>"+
+                        "<input style='display: none' value='"+danganList[i-1].danganUrl+"' class='.divUrl'>";
+                }
+                if(i===6){
+                    str += "<div style=\"\" class=\"rightThreeDiv\">"+
+						"<div class=\"rightThreeTopLine\"></div>" +
+                        "<div>" +
+                        "<img class=\"rightThreeIcon\" alt=\"[ "+danganList[i-1].danganName+" ]\" src=\"../img/jiangjin/右三.png\" th:src=\"@{/img/yining/icon/智慧办公系统,未选中.png}\"" +
+                        " style=\"width: 150px;height: 150px;vertical-align:middle;position: absolute;top: 75px;left: 120px;margin-left: 1em\">" +
+                        "<p style=\"line-height: 6em;margin-left: 360px;display: inline-block;\">"+danganList[i-1].danganName+"</p>" +
+                        "</div>" +
+                        "<div class=\"rightThreeBottomLine\"></div>"+
+                        "<input style='display: none' value='"+danganList[i-1].danganUrl+"' class='.divUrl'>";
+                }
+				str += "</div>";
+                $contentDiv.append(str);
+			}
+		}
+	}
+
+    initDy();
+
+    setTimeout(function () {
+        console.log("4秒钟到了");
+        $("#mainTrueVideo").css("opacity", "0.5");
+        setTimeout(function () {
+            $("#mainTrueVideo").css("opacity", "0");
+            $("#mainYiningVideo").css("z-index","-9998");
+        },1000);
+    }, 4000);
+
+	var sessionId = [[${sessionId}]];
+	function opennewpage(url) {
+
+		// window.location.href=url;
+		if(url.indexOf("?")>0) {
+            url = url + "&" + "reqid=" + sessionId;
+        }else{
+		    url = url + "?"+"reqid=" + sessionId;
+		}
+
+
+		console.log(url)
+
+		window.open(url)
+		// console.log(danganLoginName)
+		//
+		// console.log(sessionId)
+
+
+
+	}
+
+		//TODO div与空白处点击事件
+		$(".leftOneDiv").click(function() {
+            opennewpage($(".leftOneDiv").find("input").val()+"");
+        });
+		$(".leftTwoDiv").click(function() {
+            opennewpage($(".leftTwoDiv").find("input").val()+"");
+		});
+		$(".leftThreeDiv").click(function() {
+            opennewpage($(".leftThreeDiv").find("input").val()+"");
+		});
+		$(".rightOneDiv").click(function() {
+            opennewpage($(".rightOneDiv").find("input").val()+"");
+    	});
+		$(".rightTwoDiv").click(function() {
+            opennewpage($(".rightTwoDiv").find("input").val()+"");
+		});
+		$(".rightThreeDiv").click(function() {
+            opennewpage($(".rightThreeDiv").find("input").val()+"");
+		});
+
+    	$(".leftMenu").mouseover(function () {
+            $(".leftMenu").show();
+        });
+    	$(".rightMenu").mouseover(function () {
+            $(".rightMenu").show();
+        });
+
+        $(".centerDiv").mouseover(function () {
+            $(".leftMenu").animate({width:'0px',opacity:'0.8'},300);
+            $(".leftMenu").empty();
+            $(".leftAllLine").animate({left:'180px'},300);
+            $(".leftAllLine").find(".leftMenuLeftLine").show();
+            $(".rightMenu").animate({width:'0px',opacity:'0.8'},300);
+            $(".rightMenu").empty();
+            $(".rightAllLine").animate({right:'180px'},300);
+            $(".rightAllLine").find(".rightMenuLeftLine").show();
+        });
+		$(".topDiv").mouseover(function () {
+            $(".leftMenu").animate({width:'0px',opacity:'0.8'},300);
+            $(".leftMenu").empty();
+            $(".leftAllLine").animate({left:'180px'},300);
+            $(".leftAllLine").find(".leftMenuLeftLine").show();
+            $(".rightMenu").animate({width:'0px',opacity:'0.8'},300);
+            $(".rightMenu").empty();
+            $(".rightAllLine").animate({right:'180px'},300);
+            $(".rightAllLine").find(".rightMenuLeftLine").show();
+		});
+		$(".bottomDiv").mouseover(function () {
+            $(".leftMenu").animate({width:'0px',opacity:'0.8'},300);
+            $(".leftMenu").empty();
+            $(".leftAllLine").animate({left:'180px'},300);
+            $(".leftAllLine").find(".leftMenuLeftLine").show();
+            $(".rightMenu").animate({width:'0px',opacity:'0.8'},300);
+            $(".rightMenu").empty();
+            $(".rightAllLine").animate({right:'180px'},300);
+            $(".rightAllLine").find(".rightMenuLeftLine").show();
+		});
+
+		function ulClass() {
+            $(".menuUlLi").hover(function () {
+                $(this).find("img").remove();
+                $(this).find("span").after("<img  src=\"/img/yining/选中右侧.png\" style='width: 30px;height: 30px;'>")
+                $(this).find("span").before("<img  src=\"/img/yining/选中左侧.png\" style='width: 30px;height: 30px;'>")
+            },function () {
+                $(this).find("img").remove();
+            });
+        }
+		
+        function ulRightClass() {
+            $(".menuUlLiRight").hover(function () {
+                $(this).find("img").remove();
+                $(this).find("span").after("<img  src=\"/img/yining/选中右侧.png\" style='width: 30px;height: 30px;'>")
+                $(this).find("span").before("<img  src=\"/img/yining/选中左侧.png\" style='width: 30px;height: 30px;'>")
+            },function () {
+                $(this).find("img").remove();
+            });
+        }
+
+		var menuFlag = top.window.tagMenu;
+        function showMenuEsc(){
+            //传入window顶级节点
+            top.window.tagObj();
+            if(!menuFlag){
+                // $("#showMenuEsc").show();
+            }else{
+                // $("#showMenuEsc").hide();
+            }
+		}
+</script>
+</body>
+</html>

+ 6 - 1
ruoyi-admin/src/main/resources/templates/mainYiningView.html

@@ -206,11 +206,16 @@
 
 		console.log(url)
 
-		window.open(url)
+		let childWindow = window.open(url)
 		// console.log(danganLoginName)
 		//
 		// console.log(sessionId)
 
+        // 确保子窗口加载完成后发送消息
+        childWindow.onload = function() {
+            // 使用 postMessage 向子窗口发送消息
+            childWindow.postMessage('log0ut', '*');
+        };
 
 
 	}