diff --git a/public/assets/index/css/style.css b/public/assets/index/css/style.css index e4f86bb..eaa2a03 100644 --- a/public/assets/index/css/style.css +++ b/public/assets/index/css/style.css @@ -1,336 +1,1088 @@ -@charset "utf-8"; +@charset "utf-8"; /* CSS Document */ -*{ margin:0; padding:0} -ul li{ list-style:none} -img{ border:0; max-width:100%} -a{ text-decoration:none; color:#333} -.clear{ clear:both} -body{ font-family:"微软雅黑"; width:100%; min-width:1200px;color: #333;font-size: 14px;} -.ccsl{ display:block;overflow:hidden; white-space:nowrap;text-overflow:ellipsis;} -p{text-align:justify} +* { + margin: 0; + padding: 0 +} -.main{ width:1200px; margin:0 auto;} +ul li { + list-style: none +} +img { + border: 0; + max-width: 100% +} -.banner{ width:100%; min-width:1200px; height:400px; overflow:hidden; position:relative;font-size:0; margin:0 auto;} -.b-img{ height:400px; position:absolute; left:0; top:0;} -.b-img img{ display:block; height:400px; float:left;} -.b-list{ height:20px; padding-top:380px; margin:0 auto;position:relative;z-index:1;} -.b-list span{ display:block;cursor:pointer; width:10px; height:10px; border-radius:50%; background:#fff; float:left; margin:0 5px; _margin:0 3px;} -.b-list .spcss{ background:rgb(168,13,13)} +a { + text-decoration: none; +} +body { + font-family: "微软雅黑"; + width: 100%; + min-width: 1200px; + color: #333; + font-size: 14px; +} -.logo{ width:1200px; margin:0 auto; overflow:hidden} -.logo img{ display:block; width:1200px;} +p { + text-align: justify +} +.idxTop-back { + background: url(../images/nys_bg01.jpg) #b2eaf9 no-repeat top center; + width: 100%; + background-size: 100% 100%; +} -.nav{ background:rgb(168,13,13);width:100%; min-width:1200px; height:50px;} -.nav ul{ overflow:hidden; padding:0 15px} -.nav ul li{ float:left; height:50px; line-height:50px; width:145px; overflow:hidden; margin-right:1px} -.nav ul li a{ display:block; color:#fff; text-align:center;font-weight: 400;font-size: 16px;} -.nav ul li:hover,.nav ul li.on{ background:#ff6600} +/* + 公告样式 +*/ +.ce-white { + background: #fff; +} +.contant { + width: 1200px; + margin: 0 auto; +} -.contitbox{ width:600px; margin:0 auto; height:72px; overflow:hidden; padding-bottom:58px} -.contitbox h2{font-size: 30px;color: rgb(168,13,13);text-transform: uppercase;margin-bottom: 5px; font-weight:500;font-family: inherit;line-height: 1.1;text-align: center;} -.contitbox p{margin: 0 0 10px;text-align: center;font-size: 24px;background: url(../images/line.png) no-repeat center;} +.ce-morgin-tb { + margin: 30px 0; +} -.part1{ width:1200px; margin:0 auto; padding-top:58px; overflow:hidden} -.part1 .typebox{ text-align:center;} -.part1 .typebox a{ display:inline-block;padding-right: 15px;margin-right: 15px;border-right: 1px solid #333;font-size: 16px;color: #333;} -.part1 .typebox a:hover{color: #ff6600;} -.part1 ul{ padding-top:30px; overflow:hidden; padding-bottom:20px} -.part1 ul li{ float:left;width:280px; padding: 4px;margin-bottom: 20px;background: #fff;border: 1px solid #ddd;border-radius: 4px; margin-right:13px} -.part1 ul li .pro{display: block; width:280px;height: 188px;overflow: hidden;} -.part1 ul li .pro img{width:280px;height: 188px;transition: all 1s;} -.part1 ul li .pro img:hover{transform: scale(1.4)} -.part1 ul li .txtbox{background: #eaeaea;padding: 9px; text-align:center;color: #333;} -.part1 ul li .txtbox p{margin-bottom: 10px; text-align:center} -.part1 ul li .txtbox img{ display:block; margin:0 auto} -.part1 ul li:nth-child(4n){ margin-right:0} +.ce-img { + position: relative; +} -.part2{width:100%; min-width:1200px;background: #000 url(../images/bg.jpg) no-repeat center / cover;padding: 60px 0;margin-bottom: 58px;} -.part2 .main{ width:1170px; height:332px; overflow:hidden; background:#fff;padding: 40px 15px; margin:0 auto} -.part2_l{ float:left; height:310px; width:570px; padding:0 15px; overflow:hidden} -.part2_l h2{font-size: 24px; font-weight:500;font-family: inherit;color: rgb(168,13,13);} -.part2_l hr{width: 32px;border-top: 1px solid rgb(168,13,13);margin: 15px 0;} -.part2_l .con{line-height: 24px; max-height:165px; overflow:hidden} -.part2_l a.more{display: inline-block;width: 150px;height: 45px;line-height: 45px;text-align: center;color: #fff;background: #ff6600;margin-top: 40px;} +.ce-img > span { + position: absolute; + left: 0; + top: 0; + width: 100%; + height: 100%; + background-size: cover; + background-repeat: no-repeat; + background-position: center; +} -.part2_r{ width:510px; height:280px; float:right; overflow:hidden} -.part2_r img{ display:block;width:510px; height:280px;} +.ce-nowrap { + max-width: 100%; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis +} +.ce-nowrap-multi { + display: -webkit-box; + overflow: hidden; + text-overflow: ellipsis; + -webkit-box-orient: vertical; + -webkit-line-clamp: 2 +} -.part3{ width:1200px; margin:0 auto} -.part3 ul{ overflow:hidden} -.part3 ul li{ float:left;margin-right: 35px; width:266px; overflow:hidden; margin-bottom:50px} -.part3 ul li .pro{ width:266px; height:172px; overflow:hidden; background:#000} -.part3 ul li .pro img{width:266px; height:172px; overflow:hidden} -.part3 ul li .pro img:hover{opacity: .8;} -.part3 ul li .txtcon{} -.part3 ul li .txtcon a{color: rgb(168,13,13);font-size: 16px;text-align: center; margin: 20px 0 10px;} -.part3 ul li .txtcon .sub{color: #666;line-height: 24px; height:72px; overflow:hidden} -.part3 ul li:nth-child(4n){ margin-right:0} +/* + 首页头部 +*/ +.idxTop { + box-sizing: border-box; + position: relative; +} +.idxLogo { + width: 100%; + cursor: pointer; +} -.part4{width:100%; min-width:1200px;min-height: 500px;background: url(../images/bg2.jpg) no-repeat center / cover;margin-bottom: 58px;} -.part4 .titbox{padding: 48px 0;} -.part4 .titbox h2{ text-align:center;color: rgb(168,13,13);font-size: 36px;} -.part4 .titbox h2 span{color: #ff6600;display: inline-block;font-weight: 900;} +.idxNav { + width: 100%; + display: flex; + background-color: #008dd0; +} -.part4 ul{width: 1000px;min-height: 320px;margin: 100px auto 0;} -.part4 ul li{width:170px;height: 220px;background: rgb(168,13,13);color: #fff;padding: 25px;float: left;margin-right: 40px;} -.part4 ul li h3{font-size: 24px;margin-bottom: 18px;} -.part4 ul li .sub{font-size: 14px;line-height: 24px;text-align: justify; height:170px; overflow:hidden} -.part4 ul li:nth-child(4n){ margin-right:0} -.part4 ul li:hover{background: #ff6600;} -.part4 ul li:nth-child(2){margin-top: -50px;} -.part4 ul li:nth-child(3){margin-top: -50px;} +.idxNav li { + padding: 0 50px 0; + color: #fff; + font-size: 15px; + cursor: pointer; + line-height: 50px; + height: 50px; + position: relative; + transition: .2s; +} +.idxNav li:hover { + color: #fff; +} -.part5{ width:1200px; margin:0 auto; overflow:hidden} -.part5 ul{ overflow:hidden} -.part5 ul li{ float:left; width:570px; margin:0 15px; height:130px; margin-bottom:40px;} -.part5 ul li .p5L{ float:left; width:200px; height:130px; overflow:hidden} -.part5 ul li .p5L img{ display:block;width:200px; height:130px;} -.part5 ul li .p5R{ float:right; width:330px; height:130px; overflow:hidden} -.part5 ul li .p5R a{color: #333;font-size: 16px; font-weight:500;} -.part5 ul li .p5R hr{width: 32px;border-top: 1px solid rgb(168,13,13);margin: 15px 0;} -.part5 ul li .p5R .sub{color: #999;line-height: 24px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient: vertical;} -.part5 ul li .p5R a:hover{color: #ff6600;} +.idxNav li::after { + position: absolute; + content: ''; + left: 50%; + bottom: 0; + background: transparent; + width: 0; + height: 100%; + transition: .2s; +} +.idxNav li.active::after, .idxNav li:hover::after { + background: #005c88; + width: 100%; + color: #fff; + left: 0%; +} -.part6{width:1200px; margin:0 auto; overflow:hidden; padding-top:30px} -.part6_1{ width:570px; float:left; padding:0 15px; overflow:hidden} -.part6_1 .p6one{margin-bottom: 35px;width: 133px;height: 38px;line-height: 38px;background: rgb(168,13,13);} -.part6_1 .p6one p{text-align: center;color: #fff;} -.part6_1 .p6two{ width:570px; height:120px; overflow:hidden} -.part6_1 .p6two .p6_l{ float:left; width:168px; height:120px; overflow:hidden} -.part6_1 .p6two .p6_l img{ display:block;width:168px; height:120px;} -.part6_1 .p6two .p6_r{ float:right; width:370px; height:120px; overflow:hidden} -.part6_1 .p6two .p6_r a{font-size: 16px;margin-bottom: 14px;color: rgb(168,13,13);} -.part6_1 .p6two .p6_r .sub{color: #666;line-height: 24px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient: vertical;} -.part6_1 ul{margin-top:25px;margin-bottom: 10px; overflow:hidden} -.part6_1 ul li{ height:45px; line-height:45px;border-bottom: 1px dashed #ddd;} -.part6_1 ul li a{ float:left; color:#333; max-width:450px;} -.part6_1 ul li span{ float:right} -.part6_1 ul li a:hover{color: #ff6600;} - - - -.linkbox{ width:1170px; margin:0 auto; padding:45px 15px 20px;} -.linkbox span{font-size: 16px; padding:5px} -.linkbox .con{} -.linkbox .con a{color: #337ab7; display:inline-block; padding:5px;font-size: 16px;} -.linkbox .con a:hover{color: #23527c;} - - - -.footer{width:100%; min-width:1200px;padding:30px 0;background: rgb(168,13,13);color: #f9f9f9;} -.footer .ewm{ float:left; margin-left:15px; width:140px; height:140px; overflow:hidden; margin-top:20px;} -.footer .footerR{ float:right; width:960px; overflow:hidden} -.fnav{border-bottom: 1px solid rgb(168,13,13); margin-bottom: 20px; height:60px; line-height:60px;width:960px; overflow:hidden} -.fnav a{display: inline-block; color: #f9f9f9;;padding-right: 90px;background: url(../images/line2.png) no-repeat 100px center;} -.fcon{color: #f9f9f9; font-size:14px; line-height:30px;text-align: center;} - -.mabody{width:100%; min-width:1200px; background:#f9f9f9;} -.mainWarp{ width:1170px; margin:0 auto; padding:30px 0} -.mainLeft{ width:265px; overflow:hidden; float:left} -.mainLeft .typebox{padding: 15px;background: rgb(168,13,13);color: #fff;} -.mainLeft .typebox .titbox{ width:100%; height:84px; overflow:hidden} -.mainLeft .typebox .titbox h3{font-size: 28px;font-family: inherit;font-weight: 500;line-height: 1.1; text-align:left} -.mainLeft .typebox .titbox hr{border-top: 1px solid #fff;width: 32px;margin: 15px 0;} -.mainLeft .typebox .titbox p{font-size: 16px;text-transform: uppercase;} -.mainLeft .typebox ul{ overflow:hidden;background: #fff;padding: 10px;margin-top: 20px; margin-bottom:10px} -.mainLeft .typebox ul li{ height:45px; line-height:45px;border-bottom:1px dashed #ddd;} -.mainLeft .typebox ul li a{font-size: 18px;color: #333; padding-left:15px} -.mainLeft .typebox ul li a:hover{color: #ff6600;} - -.mainLeft .newsbox{margin-top: 20px;padding: 15px; background: #fff;} -.mainLeft .neb{margin-top: 0;} -.mainLeft .newsbox .titbox{ margin-bottom: 10px; height:20px; overflow:hidden} -.mainLeft .newsbox .titbox p{ font-size: 20px;padding-left: 15px;border-left: 4px solid rgb(168,13,13);float:left; max-width:150px; line-height:1} -.mainLeft .newsbox .titbox a{ float:right;font-size: 14px;line-height: 20px;color: #999;} -.mainLeft .newsbox ul{ overflow:hidden; padding-bottom:10px} -.mainLeft .newsbox ul li{border-bottom: 1px dotted #ddd; height:36px; line-height:36px;} -.mainLeft .newsbox ul li a{color: #333;} -.mainLeft .newsbox .lxwmbox{ line-height:30px; padding-top:15px;} - -.mainRight{ width:840px; padding:20px; overflow:hidden; float:right; background:#fff} -.brandnavbox{padding-bottom: 15px; height:20px;margin-bottom: 15px;border-bottom: 1px solid #eee;line-height: 1;} -.brandnavbox p.ccsl{font-size: 18px;padding-left: 15px;border-left: 4px solid rgb(168,13,13);color: rgb(168,13,13); float:left; max-width:250px;} -.brandnavbox .con{ float:right; max-width:250px; height:20px; overflow:hidden} - - -ul.piclistul{ overflow:hidden} -ul.piclistul li{padding:4px;width:258px;margin-bottom:20px;background:#fff;border:1px solid #ddd;border-radius:4px;float:left; margin-right:18px} -ul.piclistul li .proimg{width:258px; height:168px; overflow:hidden;} -ul.piclistul li .proimg img{ width:258px; height:168px; overflow:hidden; display:block;transition: all 0.5s;} -ul.piclistul li p{padding: 9px;color: #333;} -ul.piclistul li:nth-child(3n){ margin-right:0} -ul.piclistul li .proimg img:hover{transform: scale(1.2);} - -ul.listul{ overflow:hidden} -ul.listul li{margin-bottom: 20px;padding-bottom: 20px;border-bottom: 1px solid #ddd; height:170px; overflow:hidden} -ul.listul li .newsl{width:260px; height:165px; overflow:hidden; float:left} -ul.listul li .newsl img{ display:block; width:260px; height:165px; overflow:hidden} -ul.listul li .newsr{ float:right; width:550px;} -ul.listul li .newsr a.ccsl{color: rgb(168,13,13);font-size: 18px;} -ul.listul li .newsr hr{border-top: 1px solid #ddd; width:32px;margin: 15px 0;} -ul.listul li .newsr .sub{line-height: 1.8;color: #666;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient: vertical;} -ul.listul li .newsr .more{color:#ff6600;display: inline-block;margin-top: 20px;} - - -.detailbox{overflow:hidden} -.detailbox .xq{} -.detailbox .xq h1{font-size: 24px; text-align:center;margin: 20px 0;} -.detailbox .xq .date{color: #999;background: #eee;padding: 8px 0;text-align: center;margin-bottom: 20px;font-size: 14px;} -.detailbox .xq .con{ font-size:14px; color:#333;line-height: 2; padding-bottom:40px} -.detailbox .xq .pprooimg{ display:block; margin:0 auto; max-width:600px; margin-bottom:20px} - - -.pagebox{ text-align:center; padding-top:30px; padding-bottom:50px} -.pagebox a{ border:1px solid #ccc; padding:5px 10px; display:inline-block; color:#333; margin:3px} -.pagebox a:hover{background:rgb(168,13,13); color:#fff} -.pagebox a.on{ background:rgb(168,13,13); color:#fff} - - -/*最新首页*/ -.contant {width: 1200px; margin: 0 auto;} -.ce-white{background: #fff; width: 100%; overflow: hidden;} -.ce-nowrap {max-width: 100%;overflow: hidden;white-space: nowrap;text-overflow: ellipsis} -.ce-nowrap-multi {display: -webkit-box;overflow: hidden;text-overflow: ellipsis;-webkit-box-orient: vertical;-webkit-line-clamp: 2} -.ui-margin-b{margin-bottom: 40px; padding: 30px 0;} -.ui-margin-t{margin-top: 40px; padding: 30px 0;} -.ce-img>span {position: absolute; background-position: center; background-size: cover; background-repeat: no-repeat; width: 100%; height: 100%; left: 0; top: 0;} -.idxTop {width: 100%; height: 400px; position: relative; background-size: 100% 100%; background-position: top; background-repeat: no-repeat;} -.idxTop-img{width: 100%; text-align: center;} -.idxTop-img img{width: 580px; margin: 100px auto 30px;} -.idxTop-tel{background: rgba(255,255,255,.2); display: inline-block; padding: 10px 20px; color: #fff; border-radius: 5px; font-size: 20px; line-height: 35px; position: absolute; right: 100px;letter-spacing: 2px;} - -.idxNav{background: #a80d0d; color: #fff; height: 80px;} -.idxNav .contant{display: flex;} -.idxNav-img{ padding-top: 18px; margin-right: 50px;} -.idxNav-img>p{font-size: 20px;} -.idxNav-img>span{font-size: 12px;letter-spacing: 0px; padding-left: 8px} -.idxNav .idxNav-ul {display: flex;} -.idxNav .idxNav-ul li>a {color: #fff; font-size: 17px; margin: 0 20px; position: relative; padding-top: 25px; display: inline-block;} -.idxNav .idxNav-ul li>a::after{position: absolute; content: ''; left: 50%; bottom: -14px; width: 0; height: 2px; background: transparent; transition: .3s} -.idxNav .idxNav-ul li.active>a {font-size: 22px;padding-top: 21px;} -.idxNav .idxNav-ul li.active>a:after {bottom: -12px;} -.idxNav .idxNav-ul li.active>a:after, .idxNav .idxNav-ul li:hover>a:after {background: #fff; width: 100%; left: 0} - -.idxShoot, .idxNews {width: 50%; float: left; position: relative;} -.idxShoot-title{position: relative; display: flex; margin-bottom: 20px; padding-bottom: 10px;} -.idxShoot-title:after, .idxShoot-title>p:after {position: absolute; content: ''; left: 0;} -.idxShoot-title:after{ background: #eeeeee;height: 1px;width:100%; bottom: 0;} -.idxShoot-title p:after{ background: #c34f58; width:25%; height: 2px; bottom: 1px;} -.idxShoot-title p{color:#c34f58; font-size: 24px;} -.idxShoot-title span{color: #bfbfbf; padding: 12px 0 0 15px;} -.idxShoot-title-name{flex: 1; display: flex;} -.idxShoot-title a {color: #999999; font-size: 15px;} - -.idxShoot-swiper{ position: relative; margin-right: 10px; width: 590px;} -.gallery-top {padding-top: 86%;width: 590px;} -.gallery-top .swiper-wrapper{position: absolute; top: 0; left: 0; height: calc(75% - 10px); margin-bottom: 20px;} -.gallery-top .swiper-slide{background-size: cover} -.gallery-thumbs{position: absolute; width: 100%; height: 25%; bottom: 0; left: 0;} -.gallery-thumbs .swiper-slide {border: 3px solid #fff; background-size: cover; margin-right: 4px !important;} -.gallery-thumbs .swiper-slide-active {border: 3px solid #b9202f; height: calc(100% - 6px)} - - - -.idxNews-ul{box-shadow: 0 0 10px rgba(0,0,0,.2); overflow: hidden; margin-left: 10px; padding: 15px 15px 0; box-sizing: border-box;} -.idxNews-ul li{transition: .5s; border-bottom: 1px solid #ececec;margin-bottom: 18px; overflow: hidden;} -.idxNews-ul li:last-child {margin-bottom: 0; border: none;} -.idxNews-ul li:first-child .idxNews-ul-title::after { background-image: url(../images/idx/idxNew_img_active.png); } -.idxNews-ul li:first-child { height: 115px } -.idxNews-ul li:first-child .idxNews-ul-title p {font-size: 18px; transition: .5s} -.idxNews-ul li:first-child .idxNews-ul-text {display: block;} -.idxNews-ul-title {display: flex; margin-bottom: 10px; line-height: 25px; position: relative; padding-left: 25px;} -.idxNews-ul-title::after {position: absolute; content: ''; background-image: url(../images/idx/idxNew_img.png); background-size: 100%; background-position: center; background-repeat: no-repeat; width: 16px; height: 16px; left: 0; top: 4px;} -.idxNews-ul-title a {flex: 1; width: 80%; font-size: 14px;display: block;} -.idxNews-ul-title span {color: #989797; font-size: 14px;} -.idxNews-ul-text{color: #8b8a8a; font-size: 15px; line-height: 25px; display: none} - -.idxSurvey{background: #fff; padding: 30px; box-sizing: border-box;box-shadow: 0 0 20px rgba(0,0,0,.2);} -.idxSurveyCont {display: flex;} -.idxSurveyCont-left{margin-right: 10px; text-align: justify; line-height: 50px; font-size: 16px; color: #8b8a8a;} -.idxSurveyCont-right{margin-left: 10px;position: relative;} -.idxSurveyCont-left, .idxSurveyCont-right {width: calc(50% - 10px);} -.idxSurveyCont-right::after {width: 44%;height: 340px; content: ''; right: 0; top: 0; z-index: 1; border: 4px solid #b9202f; position: absolute;} -.idxSurveyCont-right-img {position: absolute; right: 30px; z-index: 9; top: 55px; width: calc(100% - 30px); height: 240px;} -.idxSurveyCont-right-img img {width: 100%; height: 100%;} - -.idxHealthUl{display: flex;} -.idxHealthUl>li {width: calc(33.33% - 10px); margin: 0 5px; position: relative; padding-top: 38%;} -.idxHealthUl-img {position: absolute; width: 100%; height: 228px; top: 0; left: 0;} -.idxHealthUl-text{position: absolute; bottom: 0%; left: 0;} -.idxHealthUl-title{font-size: 18px; margin: 20px 0 20px; position: relative; padding-bottom: 15px; color: #42403e} -.idxHealthUl-title::after {position: absolute; background: #ab0000; width: 40px; height: 3px; left: calc(50% - 20px); content: ''; bottom: 0;} -.idxHealthUl-tips{color: #80807f; padding: 0 10px; line-height: 24px; height: 90px; overflow: hidden; margin-bottom: 20px;text-align: justify;} -.idxHealthUl-btn{background: #ab0000; color: #fff; padding: 4px 0; width: 80px; display: inline-block; border-radius: 5px; border: 1px solid #6b0a00} -.idxHealthUl-text a { width: 100%; +.idxNav li span { + position: absolute; + z-index: 9; + width: 100%; + height: 100%; + display: inline-block; text-align: center; - display: block;} -.idxHealthUl>li:nth-child(2) .idxHealthUl-img {bottom: 0; top: auto;} -.idxHealthUl>li:nth-child(2) .idxHealthUl-text {top: 0;} -/* .idxHealthUl>li:nth-child(2) .idxHealthUl-title {margin: 0 0 10px;} */ + left: 0; + top: 0; +} -.idxPoster{background-size: cover; background-repeat: no-repeat; background-position: center; width: 100%; height: 200px;} -.recomdUl{display: flex; margin: 0 -5px;} -.recomdUl>li {width: calc(33.33% - 10px);box-shadow: 0 0 20px rgba(0,0,0,.1); padding: 10px 10px 0; box-sizing: border-box; margin: 0 5px;} -.recomdUl-title{display: flex; font-size: 18px; color: #ab0000;} -.recomdUl-title-img{flex: 1; display: flex} -.recomdUl-title-img img{width: 18px; height: 18px; margin: 3px 8px 0 0;} -.idxIconRow {width: 20px; height: 20px; margin-top: 2px;} -.recomdUl-top{position: relative; margin-top: 20px;} -.recomdUl-top-img {width: 120px; height: 70px; position: relative;} -.recomdUl-top-text{position: absolute; left: 130px; top: 0; width: calc(100% - 130px);} -.recomdUl-top-text>p{font-size: 14px; font-weight: 600; margin-bottom: 10px;} -.recomdUl-top-text>span{color: #666666;} -.recomdUl-list{margin-top: 15px;} -.recomdUl-list>li {line-height: 45px; position: relative; padding-left: 14px;} -.recomdUl-list>li::after, .recomdUl-list>li::before {position: absolute; content: ''; left: 0;} -.recomdUl-list>li::after{background: #e0e0e0; width: 100%; height: 1px; top: 0;} -.recomdUl-list>li::before {position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #666666; top: calc(50% - 2.5px)} -.recomdUl-list>li:hover a, .idxNews-ul-title:hover a {color: #ab0000;} -.recomdUl-list>li:hover::before {background: #ab0000;} -.recomdBtom{box-shadow: 0 0 20px rgba(0,0,0,.1); display: flex; margin-top: 20px; padding: 10px 10px 0; box-sizing: border-box;} -.recomdBtom>li {width: calc(50% - 20px);} -.recomdBtom>li:first-child{margin-right: 20px;} -.recomdBtom>li:last-child{margin-left: 20px;} +/* + 首页banenr +*/ +.idxBanner { + width: 100%; + padding-top: 28%; +} -.idxWeekly {padding: 30px 0} -.idxWeekly-ul {margin: 40px 0 20px; overflow: hidden;} -.idxWeekly-back {width: 270px; position: relative; height: 430px; background-size: 100% 100%; float: left; margin: 0 15px;} -.idxWeekly-title>p, .idxWeekly-title>span {color: #fff;} -.idxWeekly-title p:after {background: #fff;} -.idxWeekly-img {width: 300px; height: 340px; position: relative; margin: 0 20px;} -.idxWeekly-slide-img{width: 100% !important; background-size: 100% 100%; height: calc(100% - 90px); position: absolute; top: 0; left: 0;} -.idxFooter{color: #fff; padding: 20px; box-sizing: border-box; background-position: bottom center; background-repeat: no-repeat; background-size: cover} -.idxFooter-top{font-size: 16px; overflow: hidden; display: flex;} -.idxFooter-name {width: calc(100% - 300px); float: right; margin-top: 40px; font-size: 14px; display: flex;} -.idxFooter-name-ul li {float: left; width: 12.5%; line-height: 30px; font-size: 14px;} -.idxFooter-ul{font-size: 14px; line-height: 24px;} -.idxFooter .idxNav-img{width: 340px; margin-top: 24px;} -.idxFooter .idxNav-img>p{font-size: 32px;} -.idxFooter .idxNav-img>span{font-size: 19px;} -.idxFooter-text {display: flex; width: calc(100% - 340px)} -.idxFooter-title{width: 300px; float:left;} -.idxFooter-title>span{font-size: 22px;} -.idxFooter-title>span{display: block; margin-bottom: 10px; margin-top: 45px;} -.idxFooter-bottom{overflow: hidden; margin-top: 40px; padding: 20px 0; border-top: 1px solid #b7898b; border-bottom: 1px solid #b7898b;} -.idxFooter-bottom>li {width: 20%; float: left; line-height: 25px; font-size: 14px;} -.idxFooter-bottom>li>a {color: #fff;} -.idxFooter-tips{margin-top: 20px;} -.idxFooter-tips>p{text-align: center !important; line-height: 30px; font-size: 13px; opacity: .8} -.idxFooter-name>span {width: 360px; padding-right: 20px; text-align: center; margin-top: 5px;} -.idxFooter-name small {display: block; font-size: 10px;} +.idxBanner .swiper-wrapper { + width: 100%; + height: 100%; + position: absolute; + left: 0; + top: 0; +} + +.idxBanner .swiper-slide { + background-size: cover; + background-position: center center; + background-repeat: no-repeat; +} + +.swiper-container-horizontal > .swiper-pagination-bullets, .swiper-pagination-custom, .swiper-pagination-fraction { + bottom: 25px !important; +} + +.idxBanner .swiper-pagination-white .swiper-pagination-bullet { + opacity: 1; +} + +.idxBanner .swiper-pagination-white .swiper-pagination-bullet-active { + background-color: #06acf9; +} + +/* + 首页公告标题 +*/ +.idxTitle { + display: flex; + line-height: 50px; + margin-bottom: 10px; +} + +.idxTitle-name { + font-size: 22px; + flex: 1; + position: relative; + padding-left: 20px; +} + +.idxTitle-name::after { + position: absolute; + background: #06acf9; + content: ''; + left: 0; + top: calc(50% - 11px); + width: 6px; + height: 22px; +} + +.idxTitle-name > span { + font-size: 12px; + padding-left: 6px; + color: #999999; + text-transform: uppercase; +} + +.idxTitle-more { + display: flex; + color: #999999; + cursor: pointer; +} + +.idxTitle-more img { + width: 16px; + height: 16px; + margin: 16px 0 0 10px; +} -.idxWeekly-ul .swiper-slide {width: 240px !important; height: 380px; background-size: 100% 100%;} -.idxWeekly-ul .swiper-wrapper {height: 500px; display: flex;} -.idxWeekly-ul .swiper-button-prev, .idxWeekly-ul .swiper-button-next {top: 200px;} -.idxWeekly-ul span {background: #fff; color: #313131; position: absolute; bottom: -70px; font-size: 12px; border-radius: 30px; width: 100px;text-align: center; height: 32px; line-height: 32px; left: calc(50% - 50px)} -.idxWeekly-ul span:hover {background: #d80c18; color: #fff;} +/* + 首页第一模块 +*/ +.idxOneCont { + display: flex; +} + +.contant-left { + width: 700px; +} + +.oneCont-top { + position: relative; +} + +.oneCont-top-img { + width: 280px; + height: 170px; +} + +.oneCont-top-cont { + position: absolute; + left: 300px; + top: 0; + width: calc(100% - 300px); +} + +.oneCont-top-title { + color: #06acf9; + font-size: 18px; + margin-bottom: 10px; + text-align: center; +} + +.oneCont-top-time { + display: flex; +} + +.oneCont-top-text { + color: #909090; + line-height: 24px; + -webkit-line-clamp: 4; + margin-bottom: 25px; +} + +.oneCont-top-time > span { + flex: 1; + font-size: 13px; + color: #999999; +} + +.oneCont-top-more { + color: #06acf9; + display: flex; + cursor: pointer; +} + +.oneCont-top-more img { + width: 16px; + height: 16px; + margin: 2px 0 0 10px; +} + +.oneCont-ul { + margin-top: 15px; +} + +.oneCont-ul li { + display: flex; + line-height: 36px; +} + +.oneCont-ul p { + flex: 1; + margin-right: 100px; +} + +.oneCont-ul span { + color: #999; +} + +.contant-right { + width: calc(500px - 30px); + margin-left: 30px; +} + +.contant-right-list { + background-color: #f0f0f0; + padding: 12px 20px; + box-sizing: border-box; +} + +.contant-right-list li { + line-height: 44px; + display: flex; +} + +.contant-right-list li:hover, .oneCont-ul li:hover { + color: #06acf9; +} + +.contant-right-list li > p { + flex: 1; + margin-right: 20px; +} + +.contant-right-list li > span { + color: #999; + font-size: 12px; +} + +.oneCont-ul li, .contant-right-list li { + cursor: pointer; + transition: .3s; +} + +/* + 首页第二模块 +*/ +.idxTwo { + background-color: #f0f0f0; + padding: 30px 0 60px; + overflow: hidden; +} + +.idxTwo-list { + overflow: hidden; +} + +.idxTwo-list li { + float: left; + width: 400px; + height: 200px; + text-align: center; + position: relative; + cursor: pointer; +} + +.idxTwo-list-img { + position: absolute; + top: 0; + width: 50%; + height: 200px; +} + +.idxTwo-list-img span { + width: 100%; + height: 100%; + background-size: cover; + display: block; + background-repeat: no-repeat; + background-position: center; +} + +.idxTwo-list-img::after { + border: 10px solid transparent; + width: 0; + height: 0; + position: absolute; + top: calc(50% - 5px); + content: ' ' +} + +.idxTwo-list-cont { + width: 50%; + height: 100%; + padding: 20px; + box-sizing: border-box; + position: absolute; + top: 0; + background-color: #06acf9; + color: #fff; +} + +.idxTwo-list-title { + font-size: 16px; +} + +.idxTwo-list-text { + font-size: 12px; + -webkit-line-clamp: 4; + line-height: 24px; + margin: 10px 0; +} + +.idxTwo-list-time img { + width: 16px; + height: 16px; + margin-left: 10px; + vertical-align: middle; +} + +.idxTwo-list li:nth-child(1) .idxTwo-list-img, .idxTwo-list li:nth-child(1) .idxTwo-list-title, .idxTwo-list li:nth-child(1) .idxTwo-list-time { + display: none; +} + +.idxTwo-list li:nth-child(1) .idxTwo-list-cont { + background-color: #fff; + width: 100%; + color: #000; +} + +.idxTwo-list li:nth-child(1) .idxTwo-list-text { + position: relative; + font-size: 16px; + -webkit-line-clamp: 5; + text-align: left; + padding-top: 15px; + line-height: 26px; +} + +.idxTwo-list li:nth-child(1) .idxTwo-list-text::after { + position: absolute; + content: ''; + left: 0; + top: 0; + background-color: #06acf9; + width: 70px; + height: 4px; +} + +.idxTwo-list li:nth-child(2) .idxTwo-list-img, +.idxTwo-list li:nth-child(3) .idxTwo-list-img { + left: 0; +} + +.idxTwo-list li:nth-child(2) .idxTwo-list-cont, +.idxTwo-list li:nth-child(3) .idxTwo-list-cont { + left: 50%; +} + +.idxTwo-list li:nth-child(2) .idxTwo-list-img::after, +.idxTwo-list li:nth-child(3) .idxTwo-list-img::after { + right: 0; + border-right: 10px solid #06acf9; +} + +.idxTwo-list li:nth-child(4) .idxTwo-list-img, +.idxTwo-list li:nth-child(5) .idxTwo-list-img, +.idxTwo-list li:nth-child(6) .idxTwo-list-img { + right: 0; +} + +.idxTwo-list li:nth-child(4) .idxTwo-list-cont, +.idxTwo-list li:nth-child(5) .idxTwo-list-cont, +.idxTwo-list li:nth-child(6) .idxTwo-list-cont { + right: 50%; +} + +.idxTwo-list li:nth-child(4) .idxTwo-list-img::after, +.idxTwo-list li:nth-child(5) .idxTwo-list-img::after, +.idxTwo-list li:nth-child(6) .idxTwo-list-img::after { + left: 0; + border-left: 10px solid #06acf9; +} + +.newTwo-list { + margin: 0 -.5rem; +} + +.newTwo-list li { + width: calc(25% - 1rem); + margin: 0 .5rem; + float: left; +} + +.newTwo-list-img { + width: 100%; + padding-top: 65%; +} + +.newTwo-list-title { + font-size: 1rem; + margin: .7rem 0 .5rem; +} + +.newTwo-list-text { + color: #999; +} + +/* + 首页第三模块 +*/ +.idxThree .contant { + overflow: hidden; + padding: 10px 0 20px; +} + +.threeCont { + width: calc(50% - 10px); + float: left; + box-shadow: 0 2px 20px rgba(0, 0, 0, .1); + padding: 20px 20px 0; + box-sizing: border-box; +} + +.threeCont:nth-child(1) { + margin-right: 10px; +} + +.threeCont:nth-child(2) { + margin-left: 10px; +} + +.threeCont-top { + position: relative; + margin-bottom: 15px; + cursor: pointer; +} + +.threeCont-top-img { + width: 140px; + height: 90px; +} + +.threeCont-top-cont { + position: absolute; + left: 150px; + top: 0; + width: calc(100% - 150px); +} + +.threeCont-top:hover .threeCont-top-title { + color: #06acf9; +} + +.threeCont-top-title { + font-size: 15px; + margin-bottom: 6px; +} + +.threeCont-top-text { + -webkit-line-clamp: 3; + font-size: 12px; + color: #999; + line-height: 19px; +} + +.threeCont-list li { + display: flex; + position: relative; + padding: 15px 0 15px 14px; + transition: .3s; +} + +.threeCont-list li::after { + position: absolute; + content: ''; + left: 10px; + right: 4px; + top: 0; + width: calc(100% - 14px); + height: 0; + border: 1px dashed #ededed; + transition: .3s; +} + +.threeCont-list li::before { + position: absolute; + content: ''; + left: 0; + top: calc(50% - 3px); + background-color: #e0e0e0; + border-radius: 50%; + width: 6px; + height: 6px; +} + +.threeCont-list li > p { + flex: 1; + margin-right: 60px; +} + +.threeCont-list li > span { + color: #999; + font-size: 13px; +} + +.threeCont-list li:hover { + color: #0599de; + cursor: pointer; +} + +.threeCont-list li:hover::before { + background-color: #0599de; +} + +.idxThree-title { + position: relative; + display: flex; + margin-bottom: 20px; + height: 40px; +} + +.idxThree-title::after { + position: absolute; + content: ''; + display: flex; + background-image: url(../images/title_line.png); + background-repeat: repeat; + background-position: center; + width: 100%; + height: 4px; + left: 0; + bottom: 0; +} + +.idxThree-title-name { + flex: 1; + position: relative; +} + +.idxThree-title-name::after { + position: absolute; + content: ''; + display: flex; + background-image: url(../images/title_back.png); + background-repeat: no-repeat; + background-position: left; + width: 120px; + height: 40px; + left: 0; + bottom: 0; +} + +.idxThree-title-icon { + position: absolute; + width: 120px; + height: 40px; + line-height: 40px; + color: #fff; + padding-left: 6px; + box-sizing: border-box; + z-index: 9; + font-size: 17px; + display: flex; +} + +.idxThree-title-icon img { + width: 18px; + height: 18px; + margin: 12px 8px 0 0; +} + +.idxThree-title-more { + color: #51c5fb; + font-size: 14px; + line-height: 40px; + cursor: pointer; +} + + +/* + 首页第四模块 +*/ +.idxFour { + width: 100%; + background-image: url(../images//idxFour_back.png); + height: 600px; + padding: 30px 0; + background-size: cover; + background-position: center; + background-repeat: no-repeat; +} + +.idxFour .idxTitle, .idxFour .idxTitle-name > span { + color: #fff; +} + +.idxFour .idxTitle-name::after { + background: #fff; +} + +.idxFourSwiper { + padding: 0 20px; + box-sizing: border-box; + position: relative; +} + +.idxFour-slide { + background: #fff; +} + +.idxFour-img { + width: 100%; + padding-top: 80% +} + +.idxFour-cont { + padding: 0 20px 20px; + box-sizing: border-box; +} + +.idxFour-title { + text-align: center; + line-height: 50px; + font-size: 17px; + position: relative; +} + +.idxFour-title::before { + position: absolute; + content: ''; + left: 0; + bottom: 0; + background-color: #e0e0e0; + width: 100%; + height: 1px; +} + +.idxFour-text { + -webkit-line-clamp: 4; + line-height: 24px; + padding-top: 10px; +} + +.idxFour-more { + width: 100px; + text-align: center; + border: 1px solid #000; + background: transparent; + line-height: 34px; + margin: 20px auto 0; +} + +.idxFour-slide:hover { + cursor: pointer; +} + +.idxFour-slide:hover .idxFour-title { + color: #06acf9; +} + +.idxFour-slide:hover .idxFour-more { + background: #06acf9; + border-color: transparent; + color: #fff; +} + +.idxFour-Arrows { + position: absolute; + top: -50px; + right: 20px; + background: #fff; + width: 60px; + height: 30px; + line-height: 40px; + overflow: hidden; + border: 1px solid #fff; +} + +.idxFour-Arrows .swiper-button-disabled { + opacity: 1; +} + +.idxFour-Arrows .swiper-button-next { + right: 0; + background-image: none; + background: #2da9e2; + text-align: center; + width: 50%; + color: #fff; + font-size: 20px; +} + +.idxFour-Arrows .swiper-button-prev { + left: 0; + background-image: none; + text-align: center; + font-size: 20px; + color: #2da9e2; + opacity: 1; +} + +/* + 友情链接 +*/ +.idxLink-ul { + overflow: hidden; + padding: 0 20px; + box-sizing: border-box; +} + +.idxLink-ul li { + float: left; + width: 16.66%; + font-size: 15px; + cursor: pointer; + line-height: 40px; +} + +.idxLink-ul li:hover { + color: #06acf9; +} + +.line { + background: #e6e6e6; + width: 100%; + height: 1px; + margin-top: -15px; + margin-bottom: 10px; + position: relative; +} + +.line::before { + position: absolute; + content: ''; + left: 0; + bottom: 0; + background-color: #06acf9; + width: 12%; + height: 2px; +} + +/* + 尾部 +*/ +.idxFooter { + background: #585858; + color: #fff; + width: 100%; + padding: 40px 0; +} + +.idxFooter-text { + text-align: center; +} + +.idxFooter-text span { + display: block; + font-size: 18px; + line-height: 30px; +} + +.idxFooter-img { + text-align: center; + margin-top: 30px; +} + +.idxFooter-img img { + width: 86px; +} + + +/*详情*/ +.details { + overflow: hidden; +} + +.page-left { + width: 280px; + float: left; + background: #fff; +} + +.page-right { + width: 900px; + float: right; + margin-left: 20px; + margin-top: 20px; +} + +.pagelist h1 { + color: #fff; + height: 45px; + line-height: 45px; + font-size: 18px; + font-weight: 600; + background: #028dcf; + padding-left: 20px; + margin-top: 20px; +} + +.pagelist .listbox { + border: 1px solid #efefef; + margin: 20px 0; +} + +.pagelist li { + border-top: 1px solid #efefef; + border-bottom: 1px solid #efefef; + margin-top: -1px; +} + +.pagelist li a { + height: 35px; + line-height: 35px; + display: block; + background: url(../images/sanjiao2.png) 220px 14px no-repeat #fafafa; + font-size: 14px; + color: #333; + padding-left: 20px; +} + +.pagelist li a:hover, +.pagelist li.active > a { + background: url(../images/sanjiao.png) 218px 14px no-repeat #fafafa; + font-weight: bold; +} + +.pagelujing { + height: 40px; + border-bottom: 2px solid #efefef; + position: relative; + margin-bottom: 14px; +} + +.pagelujing .name { + position: absolute; + left: 0; + top: 0; + height: 40px; + border-bottom: 2px solid #016bd2; + line-height: 40px; + font-size: 16px; + font-weight: bold; +} + +.pagelujing span { + position: absolute; + right: 0; + line-height: 40px; + color: #888; +} + +.pagelujing span a { + color: #313131; +} + +.tcdPageCode { + padding: 15px 20px; + text-align: left; + color: #ccc; + text-align: center; + margin-top: 30px; +} + +.tcdPageCode span.disabled { + display: inline-block; + height: 25px; + line-height: 25px; + padding: 0 10px; + margin: 0 2px; + color: #bfbfbf; + background: #f2f2f2; + border: 1px solid #bfbfbf; + border-radius: 4px; + vertical-align: middle; +} + +.tcdPageCode span.current { + display: inline-block; + height: 25px; + line-height: 25px; + padding: 0 10px; + margin: 0 2px; + color: #fff; + background-color: #428bca; + border: 1px solid #428bca; + border-radius: 4px; + vertical-align: middle; +} + +.tcdPageCode a { + display: inline-block; + color: #428bca; + display: inline-block; + height: 25px; + line-height: 25px; + padding: 0 10px; + border: 1px solid #ddd; + margin: 0 2px; + border-radius: 4px; + vertical-align: middle; +} + +.newslist li { + border-bottom: 1px dotted #dedede; + position: relative; + padding: 0 80px 0 14px; + background: url(../images/jiantou.png) 2px 15px no-repeat; +} + +.newslist li a { + display: block; + height: 36px; + width: 100%; + line-height: 36px; + font-size: 14px; + color: #666; + word-break: break-all; + display: -webkit-box; + -webkit-line-clamp: 1; + -webkit-box-orient: vertical; + overflow: hidden; +} + +.newslist li span { + position: absolute; + right: 0; + top: 0; + line-height: 36px; + color: #bbb; + text-align: center; +} + +.biaoti { + font-size: 18px; + color: #333; + text-align: center; + margin: 0 20px; + font-weight: 600; + margin-top: 30px; +} + +.sshuomign { + color: #888; + font-size: 12px; + line-height: 30px; + text-align: center; +} + +.article_txt { + font-size: 14px; + line-height: 28px; + color: #454545; + margin: 20px 0; + overflow: hidden; +} + +/* 领导班子样式 */ +.leaderslist li { + height: 120px; + position: relative; + padding-left: 120px; + background-size: 100px 100%; + background-repeat: no-repeat; + background-position: left; + margin-top: 10px; +} + +.leaderslist li a { + display: block; + width: 100%; + line-height: 24px; + font-size: 14px; + color: #666; + word-break: break-all; + display: -webkit-box; + -webkit-line-clamp: 1; + -webkit-box-orient: vertical; + overflow: hidden; + display: inline-block; +} + +.leaderslist .name { + padding-bottom: 14px; + /* padding-top: 10px; */ + font-weight: 600px; + font-size: 18px; +} diff --git a/public/assets/index/images/banner.png b/public/assets/index/images/banner.png new file mode 100644 index 0000000..1c020d2 Binary files /dev/null and b/public/assets/index/images/banner.png differ diff --git a/public/assets/index/images/idxFooter_img.png b/public/assets/index/images/idxFooter_img.png new file mode 100644 index 0000000..c9a2455 Binary files /dev/null and b/public/assets/index/images/idxFooter_img.png differ diff --git a/public/assets/index/images/idxFour_back.png b/public/assets/index/images/idxFour_back.png new file mode 100644 index 0000000..033b2b9 Binary files /dev/null and b/public/assets/index/images/idxFour_back.png differ diff --git a/public/assets/index/images/idxRow.png b/public/assets/index/images/idxRow.png new file mode 100644 index 0000000..ea6e1fc Binary files /dev/null and b/public/assets/index/images/idxRow.png differ diff --git a/public/assets/index/images/idxRow_color.png b/public/assets/index/images/idxRow_color.png new file mode 100644 index 0000000..d83bb3d Binary files /dev/null and b/public/assets/index/images/idxRow_color.png differ diff --git a/public/assets/index/images/idxRow_white.png b/public/assets/index/images/idxRow_white.png new file mode 100644 index 0000000..76825aa Binary files /dev/null and b/public/assets/index/images/idxRow_white.png differ diff --git a/public/assets/index/images/img.png b/public/assets/index/images/img.png new file mode 100644 index 0000000..ba842b9 Binary files /dev/null and b/public/assets/index/images/img.png differ diff --git a/public/assets/index/images/logo.png b/public/assets/index/images/logo.png new file mode 100644 index 0000000..25853b7 Binary files /dev/null and b/public/assets/index/images/logo.png differ diff --git a/public/assets/index/images/nys_banner.png b/public/assets/index/images/nys_banner.png new file mode 100644 index 0000000..a04a038 Binary files /dev/null and b/public/assets/index/images/nys_banner.png differ diff --git a/public/assets/index/images/nys_bg01.jpg b/public/assets/index/images/nys_bg01.jpg new file mode 100644 index 0000000..a24b2b2 Binary files /dev/null and b/public/assets/index/images/nys_bg01.jpg differ diff --git a/public/assets/index/images/title_back.png b/public/assets/index/images/title_back.png new file mode 100644 index 0000000..9f6c14b Binary files /dev/null and b/public/assets/index/images/title_back.png differ diff --git a/public/assets/index/images/title_icon_00.png b/public/assets/index/images/title_icon_00.png new file mode 100644 index 0000000..2e812ff Binary files /dev/null and b/public/assets/index/images/title_icon_00.png differ diff --git a/public/assets/index/images/title_icon_01.png b/public/assets/index/images/title_icon_01.png new file mode 100644 index 0000000..dde2f6e Binary files /dev/null and b/public/assets/index/images/title_icon_01.png differ diff --git a/public/assets/index/images/title_line.png b/public/assets/index/images/title_line.png new file mode 100644 index 0000000..1a8ce59 Binary files /dev/null and b/public/assets/index/images/title_line.png differ diff --git a/public/assets/index/js/plugin.js b/public/assets/index/js/plugin.js new file mode 100644 index 0000000..48b0f09 --- /dev/null +++ b/public/assets/index/js/plugin.js @@ -0,0 +1,179 @@ +$('[data-href]').on('click', function(event) { + event.preventDefault(); + if ($(this).hasClass('ajax-get') || $(this).hasClass('ajax-post')) { + return; + } + location.href = $(this).data('href'); +}); + +// ajax GET 请求 +$('body').on('click', '.ajax-get', function(event) { + event.preventDefault(); + if ($(this).hasClass('disabled') || $(this).attr('disabled')) { + return false; + }; + var $this = $(this); + var $tips = $this.attr('tip') || '确认要执行该操作吗?'; + var $target = $this.data('href') || $this.attr('href') || $this.attr('url') || $this.data('url'); + + if ($this.hasClass('confirm')) { + if(!confirm($tips)){ + return false; + } + } + $.ajax({ + type: "GET", + url: $target, + success: function(data){ + if(data.code==1){ + updateAlert(data.msg, data.error, function() { + if ($this.hasClass('no-refresh')) { + } else if (data.url == null) { + location.reload(); + } else if (data.url) { + location.href = data.url + '?_=' + (new Date()).getTime(); + } else { + location.reload(); + } + }); + } else { + updateAlert(data.msg); + } + }, + error: function(error){ + if (error.responseJSON.message) { + updateAlert(error.responseJSON.message, 'warning'); + } else { + updateAlert('发生未知错误', 'warning'); + } + } + }); +}); + +// ajax POST 请求 +$('body').on('click', '.ajax-post', function(event) { + if ($(this).hasClass('disabled') || $(this).attr('disabled')) { + return false; + }; + + event.preventDefault(); + var $this = $(this); + var $form = $this.parents('form'); + var $tips = $this.attr('tip') || '确认要执行该操作吗?'; + var $action = $form.attr("action"); + if ($this.hasClass('confirm')) { + if(!confirm($tips)){ + return false; + } + } + $this.attr('disabled', 'disabled'); + var query = $form.serialize(); + + $.ajax({ + type: "POST", + url: $action, + data: query, + success: function(data) { + if (data.code == 0) { + updateAlert(data.msg); + $this.removeAttr('disabled'); + } else { + updateAlert(data.msg, data.error, function() { + if (data.url) { + location.href = data.url + '?_=' + (new Date()).getTime(); + } else if (data.url == null) { + location.reload(); + } else { + location.reload(); + } + }); + } + }, + error: function(error) { + $this.removeAttr('disabled'); + if (error.responseJSON.errors) { + var err = ''; + $.each(error.responseJSON.errors, function(i, n) { + // err += n + "\r\n"; + updateAlert(n[0], 'warning'); + return false; + }) + // updateAlert(err, 'warning'); + } else if (error.responseJSON.message) { + updateAlert(error.responseJSON.message, 'warning'); + } else { + updateAlert('发生未知错误', 'warning'); + } + } + }); +}); + +$('body').on('click', '.ajax-post-confirm', function(event) { + if ($(this).hasClass('disabled') || $(this).attr('disabled')) { + return false; + }; + + event.preventDefault(); + var $this = $(this); + var $form = $this.parents('form'); + var $action = $form.attr("action"); + var $tips = $this.attr('tip') || '确认要执行该操作吗?'; + var query = $form.serialize(); + $this.attr('disabled', 'disabled'); + layer.open({ + content: $tips + ,btn: ['确定', '取消'] + ,yes: function(index){ + $.ajax({ + type: "POST", + url: $action, + data: query, + success: function(data) { + if (data.code == 0) { + updateAlert(data.msg); + $this.removeAttr('disabled'); + } else { + updateAlert(data.msg, data.error, function() { + if (data.url) { + location.href = data.url + '?_=' + (new Date()).getTime(); + } else if (data.url == null) { + location.reload(); + } else { + location.reload(); + } + }); + } + }, + error: function(error) { + $this.removeAttr('disabled'); + if (error.responseJSON.errors) { + var err = ''; + $.each(error.responseJSON.errors, function(i, n) { + // err += n + "\r\n"; + updateAlert(n[0], 'warning'); + return false; + }) + // updateAlert(err, 'warning'); + } else if (error.responseJSON.message) { + updateAlert(error.responseJSON.message, 'warning'); + } else { + updateAlert('发生未知错误', 'warning'); + } + } + }); + layer.close(index); + } + }); +}); + +window.updateAlert = function(text, type, callback) { + layer.open({ + content: text + ,time: 1 + }); + if (typeof callback == "function") { + setTimeout(function() { + callback(); + }, 1500) + } +} diff --git a/resources/views/articles/index.blade.php b/resources/views/articles/index.blade.php index 090a437..969dcaa 100644 --- a/resources/views/articles/index.blade.php +++ b/resources/views/articles/index.blade.php @@ -1,49 +1,37 @@ @extends('layouts.app') @section('title', '') -@section('keywords', $category->keywords) -@section('description', $category->description) -@section('css') - -@endsection @section('content') -
-
- @include('layouts.left') -
-
-

{{ $category->title }}

-
首页 > {{ $category->title }} >
+
+
+
+
+

{{ $category->title }}

+ +

News information

+
+
+
    + @foreach($articles as $article) +
  • cover)) class="displaynone" @endif> + + + +
    +

    {{ $article->title }}

    {{ $article->created_at->format('Y-m-d') }} +
    +

    + {{ $article->description }} +

    了解更多 +
    +
  • + @endforeach +
+
+
+ {{ $articles->links() }}
-
    - @foreach($articles as $article) -
  • cover)) class="noImg" @endif> -
    - -
    -
    - {{ $article->title }} -
    -
    {{ $article->description }}
    - {{-- 查看更多>> --}} - {{ $article->created_at }} -
    -
  • - @endforeach -
-
- {{ $articles->links() }}
-
-
-
@endsection diff --git a/resources/views/articles/show.blade.php b/resources/views/articles/show.blade.php index 60ba9fe..c1a3f78 100644 --- a/resources/views/articles/show.blade.php +++ b/resources/views/articles/show.blade.php @@ -1,31 +1,49 @@ @extends('layouts.app') -@section('title', '详情') +@section('title', $article->title) -@section('keywords', $article->keywords) -@section('description', $article->description) @section('content') -
-
- @include('layouts.left') -
-
-

{{ $article->category->title }}

-
首页 > {{ $article->category->title }} >
-
-
-
-

{{ $article->title }}

-
发布时间:{{ $article->created_at->format('Y-m-d') }}
-
- {!! $article->content !!} + +
+
+ {{--
--}} + {{--
--}} + {{--

{{ $parent->title }}

--}} + {{--
    --}} + {{-- @if ($parent->children->isNotEmpty())--}} + {{-- @foreach ($parent->children as $children)--}} + {{--
  • id==$children->id) class="active" @endif>--}} + {{-- {{ $children->title }}--}} + {{--
  • --}} + {{-- @endforeach--}} + {{-- @endif--}} + {{--
--}} + {{--
--}} + {{--
--}} + {{--
--}} + {{--
--}} + {{--
{{ $category->title }}
--}} + {{-- --}} + {{-- 您当前所在位置:首页--}} + {{-- @if ($category->id!=$parent->id)--}} + {{-- > {{ $parent->title }} >--}} + {{-- @endif--}} + {{-- > {{ $category->title }}--}} + {{-- --}} + {{--
--}} +
+
{{ $article->title }}
+
发布时间:{{ $article->created_at->format('Y-m-d') }}
+
+ {{-- @if ($article->cover)--}} + {{-- --}} + {{-- @endif--}} + {!! $article->content !!} +
+
-
+ {{--
--}}
-
-
-
-
-
+ @endsection diff --git a/resources/views/category/list.blade.php b/resources/views/category/list.blade.php new file mode 100644 index 0000000..972fb24 --- /dev/null +++ b/resources/views/category/list.blade.php @@ -0,0 +1,63 @@ +@extends('layouts.app') + +@section('title', $category->title) + +@section('content') + +
+
+
+
+

{{ $parent->title }}

+
    + @if ($parent->children->isNotEmpty()) + @foreach ($parent->children as $children) +
  • id==$children->id) class="active" @endif> + {{ $children->title }} +
  • + @endforeach + @endif +
+
+
+
+
+
{{ $category->title }}
+ + 您当前所在位置:首页 > + @if ($category->id!=$parent->id) + {{ $parent->title }} > + @endif + {{ $category->title }} + +
+
+
+ +
+ @if ($articles->isNotEmpty()) + {{ $articles->links('layouts.pagination') }} + @endif +
+
+
+
+
+
+ +@endsection diff --git a/resources/views/category/show.blade.php b/resources/views/category/show.blade.php new file mode 100644 index 0000000..72dd081 --- /dev/null +++ b/resources/views/category/show.blade.php @@ -0,0 +1,56 @@ +@extends('layouts.app') + +@section('title', $category->title) + +@section('content') + +
+
+
+
+

{{ $parent->title }}

+ @if ($parent->children->isNotEmpty()) +
    + @foreach ($parent->children as $children) +
  • id==$children->id) class="active" @endif> + {{ $children->title }} +
  • + @endforeach +
+ @endif +
+
+
+
+
{{ $category->title }}
+ + 您当前所在位置:首页 > + @if ($category->id!=$parent->id) + {{ $parent->title }} > + @endif + {{ $category->title }} + +
+
+
+
    + @if ($articles->isNotEmpty()) + @foreach ($articles as $article) +
  • + {{ $article->title }}{{ $article->created_at->format('m-d') }} +
  • + @endforeach + @endif +
+
+ @if ($articles->isNotEmpty()) + {{ $articles->links('layouts.pagination') }} + @endif +
+
+
+
+
+
+ +@endsection diff --git a/resources/views/index/index.blade.php b/resources/views/index/index.blade.php index 4adfad1..433e73d 100644 --- a/resources/views/index/index.blade.php +++ b/resources/views/index/index.blade.php @@ -2,414 +2,258 @@ @section('title', '首页') -@section('css') - - -@endsection - @section('content') - -
-
-
-
-

随手拍

- / BEAT + +
+
+
+
+
+ {{ getOneCategory(7,'title') }} + / {{ getOneCategory(7,'description') }} +
+
+ 查看更多 +
-
- -