Chencb1991 8 months ago
parent
commit
d35591cd57

+ 6 - 0
src/main/resources/static/police/css/index.css

@@ -37,6 +37,12 @@ header{
     width: 100%;
     height: auto;
 }
+.data_common_ad .banners{
+    width: 100%;
+    height: 80px;
+    background: url("../../police/images/cbs/anners.jpg") no-repeat center;
+    background-size: auto 100%;
+}
 .data_big_title{
     width: 100%;
     background: #106DFF;

+ 34 - 34
src/main/resources/templates/home/audit/crj_header.html

@@ -41,40 +41,40 @@
         window.addEventListener("load",function(){
             var ctx = [[@{/}]];
             <!--关键字搜索-->
-            $(function () {
-                $("#searchBtnIndex").on('click', function () {
-                    var keywords = $('#keywordsIndex').val();
-                    console.log(keywords);
-                    if (keywords == '' || keywords == null) {
-                        layer.msg('请输入搜索条件', {
-                            icon: 2,
-                            offset: '30%',
-                            time: 2000
-                        });
-                        return;
-                    };
-                    // var type = get_radio('type');
-                    // console.log(type);
-                    window.open((ctx + "/article/search/list2/" + keywords + "/" + "0" + "/" + "0" + "/" + "0" + "/" + "0").replace('//', '/'));
-                });
-            });
-            $('#keywordsIndex').bind('keypress', function (event) {
-                if (event.keyCode == "13") {
-                    var keywords = $('#keywordsIndex').val();
-                    console.log(keywords);
-                    if (keywords == '' || keywords == null) {
-                        layer.msg('请输入搜索条件', {
-                            icon: 2,
-                            offset: '30%',
-                            time: 2000
-                        });
-                        return;
-                    };
-                    // var type = get_radio('type');
-                    // console.log(type);
-                    window.open((ctx + "/article/search/list2/" + keywords + "/" + "0" + "/" + "0" + "/" + "0" + "/" + "0").replace('//', '/'));
-                }
-            });
+            // $(function () {
+            //     $("#searchBtnIndex").on('click', function () {
+            //         var keywords = $('#keywordsIndex').val();
+            //         console.log(keywords);
+            //         if (keywords == '' || keywords == null) {
+            //             layer.msg('请输入搜索条件', {
+            //                 icon: 2,
+            //                 offset: '30%',
+            //                 time: 2000
+            //             });
+            //             return;
+            //         };
+            //         // var type = get_radio('type');
+            //         // console.log(type);
+            //         window.open((ctx + "/article/search/list2/" + keywords + "/" + "0" + "/" + "0" + "/" + "0" + "/" + "0").replace('//', '/'));
+            //     });
+            // });
+            // $('#keywordsIndex').bind('keypress', function (event) {
+            //     if (event.keyCode == "13") {
+            //         var keywords = $('#keywordsIndex').val();
+            //         console.log(keywords);
+            //         if (keywords == '' || keywords == null) {
+            //             layer.msg('请输入搜索条件', {
+            //                 icon: 2,
+            //                 offset: '30%',
+            //                 time: 2000
+            //             });
+            //             return;
+            //         };
+            //         // var type = get_radio('type');
+            //         // console.log(type);
+            //         window.open((ctx + "/article/search/list2/" + keywords + "/" + "0" + "/" + "0" + "/" + "0" + "/" + "0").replace('//', '/'));
+            //     }
+            // });
         });
 
 

+ 2 - 2
src/main/resources/templates/theme/audit/index.html

@@ -46,8 +46,8 @@
 </div>
 
 <div class="data_common_ad" >
-    <div th:each="item,status:${banner1}" style=""><a target="_blank" th:href="${item.url}"  style="">
-        <img th:src="${item.img}" style="border-style: none;height:80px"></a>
+    <div class="banners" th:each="item,status:${banner1}">
+<!--        <a target="_blank" th:href="${item.url}"><img th:src="${item.img}" style="border-style: none;height:80px"></a>-->
     </div>
 
     <div class="data_big_title" th:if="${not #lists.isEmpty(bizZdArticle) and bizZdArticle[0] != null}">