Browse Source

修改头部

李雪梅 2 years ago
parent
commit
399a6f5e7b

+ 14 - 12
nngkxxdp/src/main/resources/static/mxt/css/index.css

@@ -887,14 +887,23 @@ li {
 
 /* 新增区县的公众号矩阵 */
 .content_gzh .layui-tab-title {
+	width: 100%;
     height: 50px !important;
 	margin: 20px 0 !important;
+    display: flex;
+    flex-wrap: wrap;
+}
+.content_gzh .layui-tab-title::after {
+    content: '';
+    width: 1132px;
+    height: 2px;
+    background-color: #1C62B8;
+    margin-top: -2px;
+    margin-left: 20px;
 }
 .content_gzh .layui-tab-title li {
     width: 200px !important;
     height: 50px !important;
-    background: #FFFFFF;
-    box-shadow: 0px 1px 16px 0px rgb(0 0 0 / 10%) !important;
     border-radius: 25px !important;
     font-size: 20px !important;
     font-family: PingFang SC !important;
@@ -905,16 +914,9 @@ li {
     margin-right: 26px !important;
 }
 .content_gzh .layui-tab-title .layui-this {
-    color: #1A5FB4 !important;
-    width: 200px !important;
-    height: 50px !important;
-    background: #E0ECFE !important;
-    box-shadow: 0px 1px 16px 0px rgb(0 0 0 / 10%) !important;
-    border-radius: 25px !important;
-    font-size: 20px !important;
-    font-family: PingFang SC !important;
-    font-weight: 500 !important;
-    line-height: 50px !important;
+	background: linear-gradient(90deg, #4381DC 0%, #195CAF 100%) !important;
+    border-radius: 25px 25px 0px 25px !important;
+    color: #FFFFFF !important;
 }
 .content_gzh .layui-tab-title .layui-this::after {
 	content: none !important;

+ 5 - 4
nngkxxdp/src/main/resources/static/mxt/js/index.js

@@ -5,7 +5,7 @@ layui.use('laydate', function () {
 // var topModule = ["重庆市南岸区人民政府", "南岸健康卫士", "南岸人力社保", "南岸公安", "南岸智慧城管", "遇见南坪"];
 var topModule = ['重庆市南岸区人民政府', '广阳湾智创生态城', '南岸文旅', '南岸健康卫士', '南岸公安', '重庆南岸消防'];
 var regionModule = ['重庆市政府网', '合川区人民政府', '黔江区人民政府', '大足区政府网', '重庆市北碚区人民政府', '重庆市江北区人民政府', '渝北政府网','巴南区政府网','重庆忠县政府网','渝中政府','巫山政务'];
-var page = 1, limit = 12;
+var page = 1, limit = 12, regionlimit = 10;
 var topData = [];
 var ofaData = [];
 $(function () {
@@ -322,7 +322,7 @@ function regionWeChartListByRight(name) {
         dataType: 'json',
         data: {
             'page': page,
-            'limit': limit,
+            'limit': regionlimit,
             'name': name
         },
         success: function (json) {
@@ -332,7 +332,7 @@ function regionWeChartListByRight(name) {
             }
             if (json.data) {
                 var data = json.data;
-                if ((page * limit) < json.count) {
+                if ((page * regionlimit) < json.count) {
                     more = '<div class="wz-more" onclick="regionMoreClick(this,\'' + name + '\')">查看更多</div>';
                     page++;
                 }
@@ -410,9 +410,10 @@ $(".box-nav").on('click', 'li', function () {
 // 南岸区公众号矩阵的tab进行切换
 $(".content_gzh .layui-tab-title li").click(function(){
     var tabText=$(this).text();
+    page = 1;
     if (tabText=="重庆南岸区新媒体矩阵"){
         initPage();
-    }else{
+    }else if(tabText=="重庆区县新媒体矩阵"){
         regionPage();
     }
 })

+ 10 - 10
nngkxxdp/src/main/resources/static/mxt/mxt.html

@@ -164,16 +164,24 @@
 		
 		<!-- 公众号区域 -->
 		<div class="wrap_child">
-			<div class="topic" style="margin-top: 30px;">
+			<!-- <div class="topic" style="margin-top: 30px;">
 				<span class="left">南岸区公众号矩阵</span>
 			</div>
-			<div class="line"></div>
+			<div class="line"></div> -->
 			<div class="layui-tab layui-tab-brief content_gzh" lay-filter="docDemoTabBrief">
 				<ul class="layui-tab-title" style="border: none">
 					<li>重庆区县新媒体矩阵</li>
 					<li class="layui-this">重庆南岸区新媒体矩阵</li>
 				</ul>
 				<div class="layui-tab-content">
+					<div class="layui-tab-item">
+						<div class="gzh-contanier">
+							<div class="left" id="regionchartList">
+							</div>
+							<div class="right" id="regionRightList">
+							</div>
+						</div>
+					</div>
 					<div class="layui-tab-item layui-show">
 						<div class="gzh-contanier">
 							<div class="left" id="wechartList">
@@ -206,14 +214,6 @@
 							</div>
 						</div>
 					</div>
-					<div class="layui-tab-item">
-						<div class="gzh-contanier">
-							<div class="left" id="regionchartList">
-							</div>
-							<div class="right" id="regionRightList">
-							</div>
-						</div>
-					</div>
 				</div>
 			</div>
 		</div>