From 3cf0f35521abb20a5c0cde5276f63b88c51aeff3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E6=A5=9A?= <823169880@qq.com> Date: Sat, 12 Jan 2019 11:21:37 +0800 Subject: [PATCH] =?UTF-8?q?1,=20=20=E9=80=89=E6=8B=A9=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/operation/Select.json | 2 +- src/core/process/Process.java | 2 +- web/cssFile/home.css | 46 ++++++++++++++++++++++++++++------ web/cssFile/login-style.css | 18 +++++++++++-- web/home.jsp | 23 +++++++++++------ web/jsFile/homeActive.js | 42 ++++++++++++++++++------------- web/jsFile/login.js | 7 +++++- web/jsFile/personal.js | 4 +-- web/login.jsp | 9 +++++-- 9 files changed, 112 insertions(+), 41 deletions(-) diff --git a/src/core/operation/Select.json b/src/core/operation/Select.json index 6b2332b..e136f43 100644 --- a/src/core/operation/Select.json +++ b/src/core/operation/Select.json @@ -1,4 +1,4 @@ { - "student_id": "java.lang.String", + "student_'id": "java.lang.String", "teacher_id": "java.lang.String" } \ No newline at end of file diff --git a/src/core/process/Process.java b/src/core/process/Process.java index bcdf14f..f303287 100644 --- a/src/core/process/Process.java +++ b/src/core/process/Process.java @@ -30,7 +30,7 @@ public abstract class Process implements Cloneable{ public void setUserOperations(String key,Object value){ this.operation.addUserOperations(key,value); } - public void execute(User subject) throws GExcptSQL { + public void execute(User subject) throws Exception { this.operation.execute(subject); } private void setOperation(String operationName) throws GExcptFactory { diff --git a/web/cssFile/home.css b/web/cssFile/home.css index f2856b5..8c85dd2 100644 --- a/web/cssFile/home.css +++ b/web/cssFile/home.css @@ -5,6 +5,9 @@ body{ width: 100%; height: 100%; } +.main2{ + background-color: #f8f9ff; +} a{ text-decoration: none; } @@ -52,6 +55,11 @@ ul{ line-height: 70px; height:70px; } +.back-home a{ + display: block; + width: 100%; + height: 100%; +} .opt-options{ visibility: hidden; width: 100px; @@ -250,11 +258,11 @@ width: 35px; background-color: #c62e35; width:200px; height: 50px; - border-radius: 0px 0px 8px 0px; + border-radius: 0 0 8px 0; text-align:center; line-height: 40px; font-size: 25px; - box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.29); + box-shadow: 0 0 8px rgba(0, 0, 0, 0.29); } .notice-frame .notice-cont{ overflow-y: scroll; @@ -263,17 +271,27 @@ width: 35px; width: 750px; margin: 5px 30px; } +.bar-change::-webkit-scrollbar{ + width: 10px; + background-color: #dcdcdc; + border-radius: 10px; +} +.bar-change::-webkit-scrollbar-thumb{ + width: 10px; + transition: all 0.3s; + background-color: #e45053; + border-radius: 10px; +} .notice-child{ - margin: 5px 0px; + margin: 5px 0; width: 98%; float: left; border: 1px solid #d4d4d4; border-radius: 5px; - box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.25); + box-shadow: 0 0 8px rgba(0, 0, 0, 0.25); } .notice-child .notice-title{ - border-left: 5px solid #c62e35; line-height: 40px; color: rgba(0, 0, 0, 0.91); width: 100%; @@ -297,6 +315,20 @@ width: 35px; .notice-child .notice-text:hover{ display: block; } +.notice-child .notice-title .expend{ + position: relative; + background-color: #251d20; + width: 30px; + height: 60px; + float: left; + border-radius: 0 0 5px 5px; + margin-left: 20px; +} +.notice-title .title-text{ + width: 400px; + float: left; + margin: 0px 120px; +} .notice-choose{ width: 80px; height: 200px; @@ -306,7 +338,7 @@ width: 35px; border: 1px solid rgba(255, 255, 255, 0); } .notice-choose .notice-class{ - margin: 8px 0px; + margin: 8px 0; width: 100%; height: 50px; color: white; @@ -314,7 +346,7 @@ width: 35px; line-height: 45px; text-align: center; background-color: #c62235; - border-radius: 0px 10px 10px 0px; + border-radius: 0 10px 10px 0; transition: all 0.3s; } .notice-choose .notice-class:hover{ diff --git a/web/cssFile/login-style.css b/web/cssFile/login-style.css index bdf4ad7..aedcc44 100644 --- a/web/cssFile/login-style.css +++ b/web/cssFile/login-style.css @@ -94,16 +94,30 @@ body{ } .register-submit-style{ position: absolute; - width: 300px; + width: 200px; height: 40px; border-radius: 5px; - left: 49px; + right: 31px; border: 1px solid rgba(0, 0, 0, 0.2); background-color: #65b0ff; color: white; font-size: 20px; cursor: pointer; } +.id-check{ + appearance:none; + -moz-appearance:none; + -webkit-appearance:none; + position: absolute; + top: 440px; + left: 29px; + width: 100px; + height: 25px; + color: rgba(0,0,0,0.58); + border:1px solid rgba(0, 0, 0, 0.41); + padding-left: 20px; + border-radius: 5px; +} .register-input-text.sno-text{ top: 60px; } diff --git a/web/home.jsp b/web/home.jsp index 0cd90e5..41530f5 100644 --- a/web/home.jsp +++ b/web/home.jsp @@ -11,10 +11,12 @@ 毕业设计管理系统 + +
@@ -58,8 +60,11 @@
- - + +
+ + +
@@ -94,21 +99,25 @@
公告
-
+
-
欢迎使用
+
+
欢迎使用
欢迎使用GDMS
-
寒假通知
+
+
寒假通知
早点回去吧
-
开题截至日期
+
+
开题截至日期
开题截至日期一月七号
-
评阅截至日期
+
+
评阅截至日期
评阅截至日期四月七号
diff --git a/web/jsFile/homeActive.js b/web/jsFile/homeActive.js index d64f4fa..0df5fb0 100644 --- a/web/jsFile/homeActive.js +++ b/web/jsFile/homeActive.js @@ -8,27 +8,33 @@ function moveBar() { } function scrollAds() { var scrolling=document.getElementsByClassName('scroll-ads-imgs').item(0); - if(scrolling.style.transform=="translateX(0%)") + if(scrolling==null) { - $('.scroll-ads-imgs').css('transition','0.4s'); - scrolling.style.transform='translateX(-100%)'; - + clearInterval(start_scoll); } - else if(scrolling.style.transform=="translateX(-100%)") - { - scrolling.style.transform='translateX(-200%)'; + else { + if(scrolling.style.transform=="translateX(0%)") + { + $('.scroll-ads-imgs').css('transition','0.4s'); + scrolling.style.transform='translateX(-100%)'; + } + else if(scrolling.style.transform=="translateX(-100%)") + { + scrolling.style.transform='translateX(-200%)'; - } - else if(scrolling.style.transform=="translateX(-200%)") - { - scrolling.style.transform='translateX(-300%)'; - } - else if(scrolling.style.transform=="translateX(-300%)") - { - $('.scroll-ads-imgs').css('transition','none'); - scrolling.style.transform='translateX(0%)'; - window.setTimeout('scrollAds()',200); + + } + else if(scrolling.style.transform=="translateX(-200%)") + { + scrolling.style.transform='translateX(-300%)'; + } + else if(scrolling.style.transform=="translateX(-300%)") + { + $('.scroll-ads-imgs').css('transition','none'); + scrolling.style.transform='translateX(0%)'; + window.setTimeout('scrollAds()',200); + } } } -window.setInterval('scrollAds()',3000); +var start_scoll=window.setInterval('scrollAds()',3000); diff --git a/web/jsFile/login.js b/web/jsFile/login.js index 38bf8f2..e2166cc 100644 --- a/web/jsFile/login.js +++ b/web/jsFile/login.js @@ -37,13 +37,18 @@ function isEmpty2(e) } } ) - if($('.register-input-text').eq(4).val()!=$('.register-input-text').eq(5) + if($('.register-input-text').eq(1).val()!=$('.register-input-text').eq(5) .val()&&!isem) { e.preventDefault(); alert('两次密码不同'); return false; } + if($('.id-check').val()=='') + { + e.preventDefault() + alert("请选择身份"); + } } $(document).ready( function () { diff --git a/web/jsFile/personal.js b/web/jsFile/personal.js index bc6e2e8..e1a8e18 100644 --- a/web/jsFile/personal.js +++ b/web/jsFile/personal.js @@ -1,8 +1,8 @@ $(document).ready(function () { - $(document).off('click').on('click','.choose-child',pChange); + $(document).off('click',pChange).on('click','.choose-child',pChange); $(document).off('click',showpm).on('click','.pm',showpm); $(document).off('click',showpw).on('click','.pw',showpw); - $('.sm-input-style').off('click').on('click',isEmpty); + $(document).off('click',isEmpty).on('click','.sm-input-style',isEmpty); }) function pChange(){ $('.choose-child').each(function () { diff --git a/web/login.jsp b/web/login.jsp index 58a636a..82983d5 100644 --- a/web/login.jsp +++ b/web/login.jsp @@ -40,7 +40,7 @@
-
+ - + +