Browse Source

顾问增加跳转

liting2017 6 years ago
parent
commit
f1f6e72f92

BIN
img/newMenu/slide_img.png


+ 2 - 0
src/css/newMenu/achievementList.css

@@ -398,6 +398,8 @@
 .inp button{
 .inp button{
     margin: 0 10px;
     margin: 0 10px;
     width: 50px;
     width: 50px;
+    vertical-align: middle;
+    margin-top: -5px;
 }
 }
 /* 默认图片 */
 /* 默认图片 */
 .noImg{
 .noImg{

+ 16 - 5
src/css/newMenu/adviser.css

@@ -1,6 +1,6 @@
 /* 搜索 */
 /* 搜索 */
 .indexSearch{
 .indexSearch{
-    width: 635px;
+    width: 800px;
     height: 36px;
     height: 36px;
     margin: 37px auto 74px;
     margin: 37px auto 74px;
 }
 }
@@ -9,8 +9,22 @@ footer{
 }
 }
 .indexSearch .search-inp{
 .indexSearch .search-inp{
     clear: both;
     clear: both;
-    width:635px;
+    width:640px;
     height: 36px;
     height: 36px;
+    float: left;
+}
+.indexSearch>span{
+    width: 140px;
+    display: inline-block;
+    height: 36px;
+    text-align: center;
+    color: #fff;
+    background: #5cb85c;
+    font-size: 16px;
+    line-height: 36px;
+    float: right;
+    border-radius: 5px;
+    cursor: pointer;
 }
 }
 .searchBtn{
 .searchBtn{
     width: 104px;
     width: 104px;
@@ -33,9 +47,6 @@ footer{
     width: 25px;height: 24px;
     width: 25px;height: 24px;
     vertical-align: top
     vertical-align: top
 }
 }
-.indexSearch .search-inp{
-    float: left;
-}
 .indexSearch .search-inp .input-group{
 .indexSearch .search-inp .input-group{
     width: 530px;
     width: 530px;
 }
 }

+ 1 - 2
src/css/newMenu/header.css

@@ -26,9 +26,8 @@
     position: fixed;
     position: fixed;
     top: 0;
     top: 0;
     left: 0;
     left: 0;
-    z-index: 99999999999999;
+    z-index: 999999;
     box-shadow: 0 4px 10px #ccc;
     box-shadow: 0 4px 10px #ccc;
-
 }
 }
 .header div>div{
 .header div>div{
     margin-left: 30px;
     margin-left: 30px;

+ 1 - 0
src/css/newMenu/patentList.css

@@ -151,6 +151,7 @@
 .pagination_box .pagination {
 .pagination_box .pagination {
     float: right;
     float: right;
     margin-right: 20px;
     margin-right: 20px;
+    margin-top: 23px;
 }
 }
 
 
 .pagination_box .totalCount {
 .pagination_box .totalCount {

+ 2 - 0
src/css/newMenu/serviceList.css

@@ -330,6 +330,8 @@
 .inp button{
 .inp button{
     margin: 0 10px;
     margin: 0 10px;
     width: 50px;
     width: 50px;
+    vertical-align: middle;
+    margin-top: -5px;
 }
 }
 
 
 .search{
 .search{

+ 14 - 0
src/js/newMenu/adviser.js

@@ -138,5 +138,19 @@ $(function () {
             $('.smg').removeClass('active')
             $('.smg').removeClass('active')
             $('#msg').val('');
             $('#msg').val('');
         }, 2000)
         }, 2000)
+    };
+    //我要成为顾问
+    adviserFun();
+    function adviserFun(){
+        $('.indexSearch>span').click(function(){
+            let loginTxt=$('.head_login')[0];
+            if(loginTxt&&($(loginTxt).text())=='登录'){
+                $('.head_login').click();
+                window.location.hash='jump';
+                return false;
+            }else{
+                window.location.href= globalConfig.context+'/user/account/index.html#/personal';
+            }
+        })
     }
     }
 })
 })

+ 12 - 8
src/js/newMenu/serviceList.js

@@ -305,8 +305,6 @@ $(function () {
                 $('.objList div').eq(index).find('span').addClass('active');     
                 $('.objList div').eq(index).find('span').addClass('active');     
             }
             }
             $('.productionType ol').html('<li class="active" data-id=" ">不限</li>')
             $('.productionType ol').html('<li class="active" data-id=" ">不限</li>')
-            $('.productionType ol').css({'height':'50px','line-height':'50px'});
-            $('.productionType p').css({'height':'50px','line-height':'50px'});
             $('.preFirst').show();
             $('.preFirst').show();
             $('.preFirst').html($(this).text());
             $('.preFirst').html($(this).text());
             $('.next').css('display', 'none')
             $('.next').css('display', 'none')
@@ -315,6 +313,7 @@ $(function () {
             dataList.secondId='';
             dataList.secondId='';
             dataList.module=$(this).attr('data-module');
             dataList.module=$(this).attr('data-module');
             loadDate();
             loadDate();
+            secH();
         })
         })
         $('.objList div span').on('click', function () {
         $('.objList div span').on('click', function () {
             let secondTxt = [],
             let secondTxt = [],
@@ -349,20 +348,25 @@ $(function () {
                 scondHtml = ['<li>不限</li>'];
                 scondHtml = ['<li>不限</li>'];
             }
             }
             $('.productionType ol').html(scondHtml);
             $('.productionType ol').html(scondHtml);
-            let proH = $('.productionType ol').height();
-            if(proH>50){
-                $('.productionType p').css({'height':proH,'line-height':proH+'px'})
-            }else{
-                $('.productionType p').css({'height':'50px','line-height':'50px'})
-            }
             let txt = $(this).text();
             let txt = $(this).text();
             $('.onSelect .preFirst').css('display', 'block').html(`
             $('.onSelect .preFirst').css('display', 'block').html(`
                     <span>${txt}</span>
                     <span>${txt}</span>
             `)
             `)
             loadDate();
             loadDate();
             secSelect();
             secSelect();
+            secH();
         });
         });
         secSelect();
         secSelect();
+        secH()
+    }
+    //二级菜单高度处理
+    function secH(){
+        let proH = $('.productionType ol').height();
+        if(proH>50){
+            $('.productionType p').css({'height':proH,'line-height':proH+'px'})
+        }else{
+            $('.productionType p').css({'height':'50px','line-height':'50px'})
+        }
     }
     }
     function secSelect(){
     function secSelect(){
         $('.productionType ol li').on('click', function () {
         $('.productionType ol li').on('click', function () {

+ 1 - 0
template/newMenu/adviser.html

@@ -138,6 +138,7 @@
                     </span>
                     </span>
                 </div>
                 </div>
             </div>
             </div>
+            <span>我要成为顾问</span>
         </div>
         </div>
         <div class="adviserIndexList">
         <div class="adviserIndexList">
             <div class="listHead listOne">
             <div class="listHead listOne">