diff --git a/css/index.css b/css/index.css index 7aedd49..ae8a1b6 100755 --- a/css/index.css +++ b/css/index.css @@ -12,7 +12,7 @@ header{ /*background-color: #1a222c;*/ } .index_topbar{ - width: 1160px; + width: 1200px; height: 80px; margin: 0 auto; /*overflow: hidden;*/ @@ -61,7 +61,6 @@ header{ /*登录后*/ .topbar_userMsg{ display: none; - margin-right: 26px; color: #fff; font-size: 14px; padding-left: 48px; @@ -1213,59 +1212,77 @@ header{ margin-top: -222px; } -.silde-wrap li:nth-of-type(1){ +.parking-wrap{ width: 1200px; height: 444px; background:url("../img/silde-wrap1-icon.png") no-repeat ; cursor: pointer; position: relative; } -.silde-wrap li:nth-of-type(2){ +.platform-wrap{ width: 1200px; height: 444px; background:url("../img/silde-wrap2-icon.png") no-repeat ; cursor: pointer; position: relative; } -.silde-wrap li:nth-of-type(3){ +.api-wrap{ width: 1200px; height: 444px; background:url("../img/silde-wrap3-icon.png") no-repeat ; cursor: pointer; position: relative; } -.silde-wrap li:nth-of-type(1) div{ +.parking-wrap div,.platform-wrap div,.api-wrap div{ font-size:24px; font-weight:600; color:rgba(255,255,255,1); } -.silde-wrap li:nth-of-type(1) div:nth-of-type(1){ +.parking-wrap div:nth-of-type(1){ position: absolute; left: 87px; top: 300px; } -.silde-wrap li:nth-of-type(1) div:nth-of-type(2){ +.parking-wrap div:nth-of-type(2){ position: absolute; left: 1012px; top: 162px; } -.silde-wrap li:nth-of-type(1) div:nth-of-type(3){ +.parking-wrap div:nth-of-type(3){ position: absolute; left: 1012px; top: 387px; } -/*.silde-wrap li:nth-of-type(2){*/ - /*width: 1200px;*/ - /*height: 444px;*/ - /*background-color: #ff0;*/ - /*cursor: pointer;*/ -/*}*/ -/*.silde-wrap li:nth-of-type(3){*/ - /*width: 1200px;*/ - /*height: 444px;*/ - /*background-color: #f0f;*/ - /*cursor: pointer;*/ -/*}*/ +.platform-wrap div:nth-of-type(1){ + position: absolute; + left: 87px; + top: 160px; +} +.platform-wrap div:nth-of-type(2){ + position: absolute; + left: 87px; + top: 390px; +} +.platform-wrap div:nth-of-type(3){ + position: absolute; + left: 1012px; + top: 327px; +} +.api-wrap div:nth-of-type(1){ + position: absolute; + left: 87px; + top: 350px; +} +.api-wrap div:nth-of-type(2){ + position: absolute; + left: 1012px; + top: 170px; +} +.api-wrap div:nth-of-type(3){ + position: absolute; + left: 1012px; + top: 390px; +} /*底部_______________________________________________*/ .footer-nav{ width: 1270px; diff --git a/index.html b/index.html index 5f69d3a..245a0db 100755 --- a/index.html +++ b/index.html @@ -87,13 +87,21 @@ diff --git a/js/index.js b/js/index.js index 22835e5..17c7b14 100644 --- a/js/index.js +++ b/js/index.js @@ -39,31 +39,14 @@ $('#login_out_btn').on('click', function () { fn.loginOut(); }); -$('#main-wrap .clicklink').on('click',function () { - if($('#topbar_tologin').css('display')=='block'){ - fn.toLoginPage(); - } - // else if(){ - //token=a5ebda3f-f8b3-4499-bd43-76a69b340f88 - // } - else{ +$('#box li').on('click',function () { var link = $(this).attr('data-link'); - if(link==''|| link==undefined||link==null){ - $('#alertmodel').modal('show'); - setTimeout(function () { - $('#alertmodel').modal('hide') - },3000); - // alert('您的账号没有权限登录此平台'); - return; - } if(link.indexOf("monitoringPlatform")>0){ link+=("?token="+sessionStorage.getItem("token")); } else if(link.indexOf("SubMenus/index.html")>0){ link+=("?token="+sessionStorage.getItem("token")); } window.open(link) - } - }) var $box = $('#box') $box.boxSlider({