Explorar o código

前台新样式

wlzhao %!s(int64=6) %!d(string=hai) anos
pai
achega
8fc5e328e2

+ 16 - 217
src/main/resources/static/home/css/home.css

@@ -30,7 +30,7 @@ a:hover{
 	height: 80px;
 	/*background: url("../image/header-bg.jpg") no-repeat center top;*/
 	background-color: #fff;
-	/*border-bottom: 1px solid #ededee;*/
+	border-bottom: 1px solid #ededee;
 }
 
 .headLine{
@@ -133,7 +133,6 @@ h2{
 	margin-bottom:0;
     background-color: #fff;
 	border-bottom: 1px solid #EDEDEE;
-	border-color: #4a4a4b;
 }
 .device .arrow-left {
 	position: absolute;
@@ -360,21 +359,10 @@ em{
 	/*margin-top: 5px;*/
 	font-size: 22px;
 }
-.logoNew img {
-	width: auto;
-	height: 100%;
-	display: inline-block;
-	background-color: #488DFB;
-	margin-top: -5px;
-}
-.logoNew span {
-	font-size: 20px;
-	padding-left: 15px;
-}
 .logo img{
 	width: auto;
 	height: 100%;
-	/*background-color: #488DFB;*/
+	background-color: #488DFB;
 	display: inline-block;
 	margin-top: -5px;
 }
@@ -408,6 +396,7 @@ em{
 	}
 }
 .name{
+
 	margin-left: 20px;
 	font-size: 24px;
 	overflow: hidden;
@@ -636,34 +625,32 @@ em{
 	/*background-color: #19273c;*/
 }
 .navbar-default .nave_style ul li a{
-	font-size: 18px;
-	color: #B7B7B7;
+	font-size: 16px;
+	color: #a3a3a3;
 	padding: 0 20px;
 	line-height: 65px;
 }
 .navbar-default .nave_style ul li a:hover{
-	color: #ffffff;
+	color: #333333;
 }
 .navbar-default .nave_style ul li a:focus{
-	color: #488DFB;
+	color: #333333;
 }
 .navbar-default .nave_style ul li .second-menu {
 	display: none;
 	position: absolute;
 	left: 0;
-	background: #4a4a4b;
+	background: #fff;
 	z-index: 10;
-	box-shadow: -1px 1px 5px #bebebe;
 }
 .navbar-default .nave_style ul li .second-menu a {
 	font-size: 14px;
 	display: block;
+	text-align: center;
 	line-height: 40px;
 	text-align: left;
-	padding: 2px 20px;
+	padding: 5px 20px;
 	white-space: nowrap;
-    background-color: #4a4a4b;
-    border-bottom: solid 1px rgba(255,255,255,.4);
 }
 .navbar-default .nave_style ul li .second-menu a:hover {
 	background: #eee;
@@ -872,7 +859,6 @@ em{
 }
 .center_nav .navbar {
 	border-radius: 0;
-    background-color: #4a4a4b;
 }
 .num-box {
 	height: 110px;
@@ -1626,8 +1612,9 @@ em{
 	position: absolute;
 	top: 50%;
 	left: 50%;
-	transform: translateY(-50%) translateX(-50%);
-	width: 500px;
+	margin: -100px 0 0 -200px;
+	width: 400px;
+	height: 200px;
 	font-size: 20px;
 	text-align: center;
 	/*padding-top: 90px;*/
@@ -1636,204 +1623,16 @@ em{
 }
 .tips-content .tipsclose {
 	position: absolute;
-	top: 5px;
+	top: 10px;
 	right: 10px;
-	font-size: 30px;
+	font-size: 14px;
 	cursor: pointer;
-	color: #909399;
-}
-.tips-content .tipstitle {
-	position: absolute;
-	top: 20px;
-	left: 20px;
-	font-size: 18px;
-	color: #000000;
 }
 #popupCentent {
-	padding: 70px 20px 30px;
+	padding: 70px 20px 0;
 	line-height: 2;
-	display: flex;
-	justify-content: space-between;
-	align-items: flex-start;
 }
 .popupInfo {
 	font-size: 16px;
 	text-align: left;
-}
-.dropMenu{
-	display: inline-block;
-	position: relative;
-	height: 100%;
-	vertical-align: middle;
-	margin-right: 15px;
-}
-.loginName {
-	font-size: 14px;
-	overflow: hidden;
-	margin-left: 0;
-	cursor: pointer;
-}
-.dropMenu .menu{
-	display: none;
-	background: #fff;
-	position: absolute;
-	top: 60px;
-	right: 0;
-	z-index: 5;
-	line-height: 40px;
-	white-space: nowrap;
-	border: 1px solid #ebeef5;
-	border-radius: 4px;
-	box-shadow: 0 2px 12px 0 rgba(0,0,0,.1)
-}
-.dropMenu:hover .menu{
-	display: block;
-}
-.dropMenu .menu a{
-	display: block;
-	color: #606266;
-	padding: 3px 15px;
-}
-.dropMenu .menu a:hover {
-	color: #66b1ff;
-	background-color: #ecf5ff;
-}
-.toAdmin {
-	margin-right: 15px;
-	cursor: pointer;
-}
-.loginIcon {
-	margin-right: 15px;
-	max-height:80px;
-	max-width: 80px;
-}
-.feedback-left {
-	border-right: 1px solid rgb(238, 238, 238);
-	padding-right: 20px;
-	width: 60%;
-}
-.feedback-right {
-	padding-left: 20px;
-	width: 40%;
-}
-.feedback-right .contact-way {
-	text-align: left;
-	font-size: 18px;
-}
-.feedback-right-text {
-	font-size: 18px;
-	line-height: 2em;
-	margin-bottom: 20px;
-	padding-left: 15px;
-}
-.feedback-title {
-	font-size: 18px;
-	color: #333;
-	margin-bottom: 15px;
-	text-align: left;
-}
-.feedback-form {
-	margin: 0;
-	padding: 0;
-}
-.feedback-form .feedback-single {
-	margin-bottom: 22px;
-}
-.feedback-single > span {
-	display: inline-block;
-	width: 100px;
-	text-align: right;
-	vertical-align: middle;
-	float: left;
-	font-size: 14px;
-	color: #606266;
-	line-height: 40px;
-	padding: 0 12px 0 0;
-	box-sizing: border-box;
-}
-.feedback-single .is_error {
-	border-color: #F56C6C;
-}
-.feedback-input {
-	margin-left: 100px;
-	line-height: 40px;
-	position: relative;
-	font-size: 14px;
-}
-.feedback-input .feedback_error {
-	color: #F56C6C;
-	font-size: 12px;
-	line-height: 1;
-	padding-top: 4px;
-	position: absolute;
-	top: 100%;
-	left: 0;
-}
-.feedback-input .feedback_right {
-	position: relative;
-	font-size: 14px;
-	display: inline-block;
-	width: 100%;
-}
-.feedback_right input {
-	-webkit-appearance: none;
-	background-color: #FFF;
-	background-image: none;
-	border-radius: 4px;
-	border: 1px solid #DCDFE6;
-	box-sizing: border-box;
-	color: #606266;
-	display: inline-block;
-	font-size: inherit;
-	height: 40px;
-	line-height: 40px;
-	outline: 0;
-	padding: 0 15px;
-	transition: border-color .2s cubic-bezier(.645,.045,.355,1);
-	width: 100%;
-}
-.feedback_right textarea {
-	display: block;
-	resize: vertical;
-	padding: 5px 15px;
-	line-height: 1.5;
-	min-height: 80px;
-	box-sizing: border-box;
-	width: 100%;
-	font-size: inherit;
-	color: #606266;
-	background-color: #FFF;
-	background-image: none;
-	border: 1px solid #DCDFE6;
-	border-radius: 4px;
-}
-.feedback-button {
-	padding-top: 10px;
-	text-align: right;
-	-webkit-box-sizing: border-box;
-	box-sizing: border-box;
-}
-.feedback_default {
-	font-weight: normal;
-	display: inline-block;
-	line-height: 1;
-	white-space: nowrap;
-	cursor: pointer;
-	background: #FFF;
-	border: 1px solid #DCDFE6;
-	color: #606266;
-	-webkit-appearance: none;
-	text-align: center;
-	box-sizing: border-box;
-	outline: 0;
-	margin: 0;
-	transition: .1s;
-	padding: 12px 20px;
-	font-size: 14px;
-	border-radius: 4px;
-}
-.feedback_confirm{
-	color: #FFF;
-	background-color: #409EFF;
-	border-color: #409EFF;
 }

+ 19 - 33
src/main/resources/templates/home/common/common.html

@@ -53,6 +53,14 @@
     <![endif]-->
 
     <script type="text/javascript">
+        loginUserName = localStorage.getItem('user_name')
+        loginUserId = localStorage.getItem('user_id')
+        $(function () {
+            if (loginUserName) {
+                document.getElementById('login_user_name').innerText = loginUserName;
+                document.getElementById('login-link').style.display = 'none'
+            }
+        });
         $(function () {
             if ($("#showtime").length > 0) {
                 showDT();
@@ -101,15 +109,6 @@
         function toIndustrial() {
             window.open(pagePath.substring(0,pagePath.lastIndexOf("/")) + '/industry/home/#/industrialReserve');
         }
-
-        function toIndustrialHome() {
-            window.open(pagePath.substring(0,pagePath.lastIndexOf("/")) + '/industry/home/#/home');
-        }
-
-        function toIndustrialMap() {
-            window.open(pagePath.substring(0,pagePath.lastIndexOf("/")) + '/industry/home/#/industrialReserve');
-        }
-
         function checkLogin1(e) {
             $.ajax({
                 url: pagePath + "/home/checkLogin/",
@@ -122,10 +121,17 @@
                     if (result.success) {
                         var obj = result.obj;
                         if (obj.isLogin) {
-                            if(e === 'azw') {
-                                window.location.href="http://202.102.20.60:8008/xq/#/login?username="+obj.userName;
-                            }
-                            if(e === 'gycf') {
+                            if(e == 'azw') {
+                                window.open("http://202.102.20.60:8008/xq/#/login?username="+obj.userName)
+                            } else if(e='dljk') {
+                                window.open("http://202.102.20.60:8008/ly/#/login?username="+obj.userName)
+                            } else if(e='lyjj') {
+                                window.open("http://112.4.85.47:8000/lyzf/#/login?username="+obj.userName)
+                            } else if (e == 'jwtz') {
+                                if (obj.userType == 3) {
+                                    window.open('http://112.4.85.50:9300/irsweb/?id=' + loginUserId)
+                                }
+                            } else if(e == 'gycf') {
                                 // window.location.href = pagePath.substring(0,pagePath.lastIndexOf("/")) + '/industry/home';
                                 window.open(pagePath.substring(0,pagePath.lastIndexOf("/")) + '/industry/home/#/home');
                                 $.ajax({
@@ -143,23 +149,6 @@
                                     }
                                 });
                             }
-                            if (e === 'gytd'){
-                                window.open(pagePath.substring(0,pagePath.lastIndexOf("/")) + '/industry/home/#/industrialReserve');
-                                $.ajax({
-                                    url: pagePath + "/token/create",
-                                    type: "get",
-                                    dataType: "json",
-                                    data: {
-                                        timeStamp: new Date()
-                                    },
-                                    success: function (result) {
-                                        if (result.success) {
-                                            var token = result.obj;
-                                            localStorage.setItem("INDUSTRIAL_CARRIER", token);
-                                        }
-                                    }
-                                });
-                            }
                         } else {
                             //errorMessage("请登陆!");
                             location.href = pagePath + "/home/login";
@@ -173,9 +162,6 @@
                             if(e == 'gycf') {
                                 localStorage.setItem("industrialCarrier", "1");
                             }
-                            if(e == 'gytd') {
-                                localStorage.setItem("industrialLand", "1");
-                            }
                         }
                     } else {
                         errorMessage(result.message);

+ 77 - 36
src/main/resources/templates/home/common/footer.html

@@ -43,53 +43,61 @@
 <!--</div>-->
 <div class="footer" th:fragment="footer">
     <div class="home-content">
-        <div class="clearfix">
+        <div class="footer-left">
             <div class="pull-left link">
                 <p class="clearfix">
-                    <span class="link-line"></span>
-                    <span class="link-title">友情链接</span>
+                    <span class="link-title friendlyLink">友情链接</span>
                 </p>
-                <ul>
-                    <li th:each="model:${friendLinks}" th:object="${model}"><a th:href="@{*{link_location}}"
-                                                                               th:text="*{name}"></a></li>
-                </ul>
-            </div>
-            <div class="pull-right cord-box clearfix">
-                <div class="pull-left cord-left">
-                    <p class="ft-18">关注微信公众号</p>
-                    <p class="cord-line-box">
-                        <span class="cord-samll-name">获取最新服务资讯</span>
-                    </p>
+                <div>
+                    <a href="http://www.miit.gov.cn/" target="_blank">中华人民共和国工业和信息化部</a><br/>
+                    <a href="http://www.sme.gov.cn/" target="_blank">中国中小企业信息网</a><br/>
+                    <a href="http://www.jseic.gov.cn/" target="_blank">江苏省经济和信息化委员会</a><br/>
+                    <a href="http://www.szetc.gov.cn/szjxw/" target="_blank">苏州市经济和信息化委员会</a><br/>
+                    <a href="http://www.snd.gov.cn/snd/" target="_blank">苏州高新区管委会</a>
                 </div>
-                <div class="pull-left cord-list clearfix">
-                    <div class="clearfix ewm-box" style="width:150px;">
-                        <img th:src="@{/home/image/cord-w.jpg}" class="cord-img pull-left">
-                        <div style="width: 18px; float: left">苏<br>州<br>高<br>新<br>区</div>
-                        <div style="width: 18px; float: left">中<br>小<br>企<br>业<br>服</div>
-                        <div style="width: 18px; float: left">务<br>中<br>心</div>
-                    </div>
-                    <div class="clearfix ewm-box">
-                        <img th:src="@{/home/image/cord-fgj.jpg}" class="cord-img pull-left">经发委二维码
-                    </div>
+            </div>
+            <div class="pull-left link">
+                <p class="clearfix">
+                    <span class="link-title helpLink">帮助</span>
+                </p>
+                <div>
+                    <a class="help-item" checkData="feedback">诉求反馈</a><br/>
+                    <a class="help-item" checkData="complaints">我要投诉</a><br/>
+                    <a class="help-item" checkData="appcode">APP下载</a><br/>
+                    <a class="help-item" checkData="files">文件资料</a>
                 </div>
             </div>
         </div>
-
-        <div class="copy-box">
+        <div class="footer-right">
             <div>
-                <p>建设单位:苏州高新区经济发展委员会</p>
-                <p>&copy2019版权所有</p>
-                <p>&nbsp</p>
+                <img th:src="@{/home/image/cord-fgj.jpg}" class="cord-img">
+                <p>经发委</p>
+                <p>二维码</p>
             </div>
-            <div class="fangwen">
-                <img th:src="@{/home/image/statistics.png}">
-                <div id="statistics">访问量:0 注册企业数:0 活跃度:0</div>
-                <div>
-                    <script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? "https://" : "http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_1276885018'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s96.cnzz.com/z_stat.php%3Fid%3D1276885018%26show%3Dpic1' type='text/javascript'%3E%3C/script%3E"));</script>
-                </div>
+            <div style="margin-left: 40px;">
+                <img th:src="@{/home/image/cord-w.jpg}" class="cord-img">
+                <p>苏州高新区中小企业服务中心</p>
             </div>
         </div>
     </div>
+    <div class="copy-box">
+        <div>
+            <p>建设单位:苏州高新区经济发展委员会&copy2019版权所有</p>
+        </div>
+        <!--<div class="fangwen">-->
+        <!--<img th:src="@{/home/image/statistics.png}">-->
+        <!--<div id="statistics">访问量:0 注册企业数:0 活跃度:0</div>-->
+        <!--<div>-->
+        <!--<script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? "https://" : "http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_1276885018'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s96.cnzz.com/z_stat.php%3Fid%3D1276885018%26show%3Dpic1' type='text/javascript'%3E%3C/script%3E"));</script>-->
+        <!--</div>-->
+        <!--</div>-->
+    </div>
+    <div class="tips-popup">
+        <div class="tips-content">
+            <span class="tipsclose">关闭</span>
+            <div id="popupCentent">敬请期待……</div>
+        </div>
+    </div>
     <script>
 
         var pagePath = $("meta[name='_ctx']").attr("content");
@@ -160,9 +168,42 @@
                 }
             });
         }
+        $(".help-item").on("click", function () {
+            var dataVal = $(this).attr('checkData');
+            $(".tips-content").removeClass("appCodestyle")
+            $(".tips-popup").show();
+            if(dataVal == 'feedback') {
+                $("#popupCentent").html('<div class="popupInfo"><p>投诉邮箱:qyfwzx@snd.gov.cn</p></div>')
+            }
+            else if(dataVal == 'complaints') {
+                $("#popupCentent").html('<div class="popupInfo"><p>投诉邮箱:qyfwzx@snd.gov.cn</p><p>投诉电话:0512-68755225</p></div>')
+            }
+            else if(dataVal == 'appcode') {
+                $("#popupCentent").html('<div class="app-code clearfix">\n' +
+                    '                        <div class="app-code-box">\n' +
+                    '                            <img src="'+pagePath+'/home/image/appCode.png">\n' +
+                    '                            <p>安卓版</p>\n' +
+                    '                        </div>\n' +
+                    '                        <div class="app-code-box">\n' +
+                    '                            <img src="'+pagePath+'/home/image/ios.png">\n' +
+                    '                            <p>ios版</p>\n' +
+                    '                        </div>\n' +
+                    '                    </div>')
+                $(".tips-content").addClass("appCodestyle")
+            }
+            else if(dataVal == 'files') {
+                $("#popupCentent").html('<div class="popupInfo"><p style="text-align: center; font-size: 20px; color: #ff0000;margin-top: -50px; margin-bottom: 10px;">文件下载</p><p><a href="'+pagePath+'/home/image/园区工业载体使用说明.docx" style="display: block; width: 100%"><span style=" float: left">园区工业载体使用说明.docx</span><span style="float: right; color: #dd0000">↓下载</span></a></p><p><a href="'+pagePath+'/home/image/属地工业载体使用说明.docx" style="display: block; width: 100%"><span style=" float: left">属地工业载体使用说明.docx</span><span style="float: right; color: #dd0000"">↓下载</span></a></p><p><a href="'+pagePath+'/home/image/政府工业载体使用说明.docx" style="display: block; width: 100%"><span style=" float: left">政府工业载体使用说明.docx</span><span style="float: right; color: #dd0000"">↓下载</span></a></p></div>')
+            }
+            else {
+                $("#popupCentent").html('敬请期待……')
+            }
+        });
+        $(".tipsclose").on("click", function () {
+            $(".tips-popup").hide();
+        });
     </script>
     <!--右侧悬浮目录-->
-    <script th:src="@{/home/plugin/rightMenu.js}" type="text/javascript"></script>
+    <!--<script th:src="@{/home/plugin/rightMenu.js}" type="text/javascript"></script>-->
 </div>
 </body>
 

+ 10 - 21
src/main/resources/templates/home/common/header.html

@@ -13,9 +13,9 @@
 	<!-- 头部 -->
 		<div class="head" th:fragment="header">
 			<div class="headLine">
-				<div class="logoNew">
+				<div class="logo">
 					<img  th:src="@{/assets/images/logoPng.png}" th:alt="logo" th:title="苏州高新区企业发展服务云平台">
-					<span>苏州高新区企业发展服务云平台</span>
+					<span>欢迎来到企业发展服务平台!</span>
 				</div>
 				<!--<div class="name fl hidden-xs">-->
 					<!--<a th:href="${logo.link}" th:if="${logo.link}">[[${logo.name}]]</a>-->
@@ -30,18 +30,8 @@
 					<!--<a th:href="@{/home/login}" class="iconlogin"><i class="iconfont">&#xe634;</i></a>-->
 					<!--<span style="margin-right:10px;">登录人</span>-->
 					<!--<i class="iconfont">&#xe634;</i>-->
-					<!--<span id="login_user_name" style="margin-right:10px;"></span>-->
-					<a th:href="@{/admin/home}" class="toAdmin">后台</a>
-					<img class="loginIcon" th:src="@{/assets/images/userImg.png}" alt="头像">
-					<div class="dropMenu">
-						<div class="loginName"></div>
-						<div class="menu">
-							<a th:href="@{/index/#/myActivity}">我的活动</a>
-							<a th:href="@{/index/#/favouriteActivity}">活动收藏</a>
-							<a onclick="logOut()">退出</a>
-						</div>
-					</div>
-					<a  id="login-link" style="margin-right:10px;" th:href="@{/home/login}">登录</a>
+					<span id="login_user_name"></span>
+					<a  id="login-link" th:href="@{/home/login}">登录</a>
 					<a th:href="@{/home}"><img th:src="@{/assets/images/homePng.png}" alt=""></a>
 				</div>
 			</div>
@@ -71,19 +61,19 @@
 						<!--<a th:if="*{id==80}" onclick="checkLogin1('azw')" th:id="*{id}" name="safetySupervision" th:text="*{name}" ></a>-->
 					<!--</li>-->
 					<li role="presentation" >
-						<a th:href="@{/index/#/newsList}" data-title="通知公告">通知公告</a>
+						<a th:href="@{/newsList}" data-title="通知公告">通知公告</a>
 					</li>
 					<li role="presentation" >
-						<a href="/serviceleague/home/policy" data-title="政策雷达" target="_blank">政策雷达</a>
+						<a th:href="@{/home/informList/66}" data-title="政策雷达" target="_blank">政策雷达</a>
 					</li>
 					<li role="presentation" >
 						<a th:href="@{/home/informList/69}" data-title="申报服务">申报服务</a>
 					</li>
 					<li role="presentation" >
-						<a th:href="@{/index/#/activityHome}" data-title="专题活动">专题活动</a>
+						<a th:href="@{/activityHome}" data-title="专题活动">专题活动</a>
 					</li>
 					<li role="presentation" >
-						<a href="/serviceleague/home" data-title="服务联盟">服务联盟</a>
+						<a th:href="@{/serviceleague/home}" data-title="服务联盟">服务联盟</a>
 					</li>
 					<!--<li role="presentation">-->
 						<!--<a th:href="@{/home/login}" data-title="存量用地">存量用地</a>-->
@@ -94,9 +84,8 @@
 					<li role="presentation" class="relative">
 						<a data-title="工业载体">工业载体</a>
 						<div class="second-menu">
-							<!--<a onclick="checkLogin1('gycf')" data-title="工业厂房">工业厂房</a>-->
-							<a onclick="toIndustrialHome()" data-title="工业厂房">工业厂房</a>
-							<a onclick="toIndustrialMap()" data-title="工业土地">工业土地</a>
+							<a onclick="checkLogin1('gycf')" data-title="工业厂房">工业厂房</a>
+							<a onclick="toIndustrial()" data-title="工业土地">工业土地</a>
 						</div>
 					</li>
 					<li role="presentation" class="relative">

+ 2 - 2
src/main/resources/templates/home/html/contents.html

@@ -309,9 +309,9 @@
                         str += '<p><i class="iconfont">&#xe62d;</i> ' + newList[i].activity_starttime.substring(0, 4) + '年' + newList[i].activity_starttime.substring(5, 7) + '月' + newList[i].activity_starttime.substring(8, 10) + '日' + newList[i].activity_starttime.substring(10, 16) + '</p>'
                         str += '<p><i class="iconfont">&#xe6e5;</i> ' + newList[i].activity_location + '</p>'
                         str += '<div>'
-                        if (newList[i].can_sign_up === true) {
+                        if (newList[i].activity_deadline == '0') {
                             str += '<a href="' + pagePath + '/home/activityDetail/' + newList[i].id + '" class="btn btn-success radius" onclick="" target="_blank">参与报名</a>'
-                        } else if (newList[i].can_sign_up === false) {
+                        } else if (newList[i].activity_deadline == '1') {
                             str += '<a href="' + pagePath + '/home/activityDetail/' + newList[i].id + '" class="btn btn-success radius" onclick="" target="_blank">活动详情</a>'
                         }