Browse Source

交易首页-在线评估 赚钱首页-军工认证

liting2017 6 years ago
parent
commit
67efb291fb

BIN
img/newMenu/adviserBanner.png


BIN
img/newMenu/service_jung.jpg


BIN
img/patent/tradingIndexPg.jpg


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

@@ -159,8 +159,9 @@
     color: #323131;
 }
 .navHeader .nav ul li .subnavigation {
-	top: 76px;
+	top: 60px;
     z-index: 9999;
+    position: absolute;
     width: 100%;
 	background: #ffffff;
     display: none;

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

@@ -202,7 +202,10 @@
 
 }
 .achievementHot ul li:hover{
-    box-shadow: 0 0 20px #ccc;
+    transform: scale(1.005);
+    box-shadow: 1px 1px 0 #f5f5f5, 2px 2px 0 #c9c9c9, 3px 3px 0 #bbb, 4px 4px 0 #b9b9b9, 5px 5px 0 #aaa,
+    6px 6px 1px rgba(0, 0, 0, .1), 0 0 5px rgba(0, 0, 0, .1), 1px 1px 3px rgba(0, 0, 0, .3), 3px 3px 5px rgba(0, 0, 0, .2),
+    5px 5px 10px rgba(0, 0, 0, .25), 10px 10px 10px rgba(0, 0, 0, .2), 20px 20px 20px rgba(0, 0, 0, .15);
     transition: all .2s ease-in;
 }
 .achievementHot ul li:hover .txts h5{

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

@@ -217,7 +217,11 @@
     padding: 10px 2px 0;
 }
 .achievementHot ul li:hover{
-    box-shadow: 0 0 20px #ccc;
+    /* box-shadow: 0 0 20px #ccc; */
+    transform: scale(1.005);
+    box-shadow: 1px 1px 0 #f5f5f5, 2px 2px 0 #c9c9c9, 3px 3px 0 #bbb, 4px 4px 0 #b9b9b9, 5px 5px 0 #aaa,
+    6px 6px 1px rgba(0, 0, 0, .1), 0 0 5px rgba(0, 0, 0, .1), 1px 1px 3px rgba(0, 0, 0, .3), 3px 3px 5px rgba(0, 0, 0, .2),
+    5px 5px 10px rgba(0, 0, 0, .25), 10px 10px 10px rgba(0, 0, 0, .2), 20px 20px 20px rgba(0, 0, 0, .15);
     transition: all .2s ease-in;
 }
 .achievementHot ul li:hover .txts h5{
@@ -288,7 +292,6 @@
 .achievementHot ul li .txtIntroduce {
     width: 100%;
     border: 1px solid #efefef;
-    height: 130px;
     padding: 0px 10px 12px;
 }
 .txtIntroduce .btnTxt p{

+ 54 - 1
src/css/newMenu/services.css

@@ -141,7 +141,9 @@
     width:100%;
 }
 .subsidy .subsidyTxt ul li div h4{
-    font-size: 14px;
+    font-size: 16px;
+    line-height: 46px;
+    margin-left: 10px;
    font-weight: normal;
    color: #393838;
    padding: 12px 0;
@@ -1365,6 +1367,57 @@
     background: url(../../../img/newMenu/service_131.jpg) no-repeat;
     background-size:100% 100%; 
 }
+/* 军工认证 */
+.militaryCont{
+    width: 100%;
+    margin-top: 22px;
+    margin-bottom: 12px;
+}
+.militaryCont>img{
+    width: 100%;
+}
+.militaryCont .subsidyTxt{
+    margin-bottom: 58px;
+    border-bottom: 1px solid #f3f3f3;
+    padding-bottom: 10px;
+    padding-top: 10px;
+}
+.militaryCont .subsidyTxt ul{
+    display: flex;
+    display: -webkit-flex;
+    justify-content: space-around;
+}
+.militaryCont .subsidyTxt ul li{
+    width: 300px;
+    height: 100px;
+    text-align: center;
+    background: #f7f7f7;
+}
+.militaryCont .subsidyTxt ul li p{
+    float: left;
+    line-height: 100px;
+    text-align: center;
+    width: 200px;
+    color: #393838;
+    font-size: 18px;
+    overflow: hidden;
+}
+.militaryCont .subsidyTxt ul li div{
+    display: inline-block;
+    width: 100px;
+    height: 100px;
+    overflow: hidden;
+    float: right
+}
+.militaryCont .subsidyTxt ul li div img{
+    display: inline-block;
+    width: 100%;
+    transform: scale(.7);
+}
+.militaryCont .subsidyTxt ul li:hover{
+    background: #ccc;
+    opacity: .7;
+}
 
 
 

+ 32 - 0
src/css/newMenu/tradingIndex.css

@@ -501,6 +501,38 @@
     transition: all .2s ease-in-out;
     border-bottom: 4px solid #1697e9;
 }
+.trandPg{
+    width: 1200px;
+    margin: 50px auto 40px;
+    height: 390px;
+    background: url(../../../img/patent/tradingIndexPg.jpg)no-repeat;
+    background-size:100% 100%;
+    position: relative; 
+}
+.trandPg span{
+    display: inline-block;
+    width: 110px;
+    height: 34px;
+    border-radius: 5px;
+    background: #1697e9;
+    color: #FFF;
+    font-size:  18px;
+    text-align: center;
+    line-height: 34px;
+    position: absolute;
+    bottom: 104px;
+    left: 30px;
+    cursor: pointer;
+}
+.trandPg:hover span{
+    animation:myBig .5s infinite;
+    -webkit-animation:myBig .5s infinite; /* Safari 和 Chrome */
+}
+@keyframes myBig{
+    0%{transform: scale(1);box-shadow:0 0px 2px #ccc; }
+    50%{transform: scale(1.2);box-shadow:0 6px 20px #606363;}
+    100%{transform: scale(1);box-shadow:0 0px 2px #ccc;}
+}
 @media screen and (max-width:1200px){
     body{
         width: 1200px;

+ 0 - 57
src/js/newMenu/evaluate.js

@@ -199,61 +199,4 @@ $(function () {
             $('#msg').val('');
         }, 2000)
     }
-    //登录
-    $('#form_login').submit(function(e){
-		e.preventDefault();
-		var Suser=$('#Lo_user').val();
-		var Spass=$('#Lo_pass').val();	
-		var type=$(".login_pass>#customerType").val();
-		var check_experts=$('#checks').prop('checked');		
-		if(Suser==''||Spass==''){	
-			msg('请填写用户名/密码.');
-			return false;
-		}else{	
-			$('.loading').show();		
-			let txt = "登录中,请稍后...",htmls=[],i=0,
-			txtArr = txt.split('');
-			txtArr.map(item=>{
-				htmls.push(`
-					<span>${item}</span>
-				`)
-			});
-			$('.loading div p').html(htmls);
-			$.ajax({
-              method: "POST",
-              dataType: "json",
-              url: globalConfig.context + "/signin",
-              data: {
-                      "mobile": Suser,
-					  "password": Spass,
-					  'type':type
-              },
-              success: function (rest) {
-				    $('.loading').hide();				
-					if (rest.error && rest.error.length) {					
-		                 msg(rest.error[0].message);	
-					} else {						
-						var  data = rest.data;
-                        if (data && data.requestURI) {
-                            var path = globalConfig.context + data.requestURI;
-                            if (data.queryString) {
-                                path += '?' + data.queryString;
-                            }
-                            if (window.location.hash) {
-                                path += window.location.hash;
-                            }
-                            window.location.href = path;
-                        } else {
-                            msg('登录成功');
-                            setTimeout(()=>{
-                                window.location.reload();
-                            },500)
-                        }                       
-					}
-			   }
-          })
-                
-		}			
-	})
-    
 })

+ 45 - 23
src/js/newMenu/serviceList.js

@@ -52,6 +52,7 @@ $(function () {
                         if (item.indexOf('secondId') > -1) {
                             let secondIds = item.split('=')
                             dataList.secondId = decodeURIComponent(secondIds[1])
+                            menuInit(theData,secondIds[1])
                         }
                     })
                 } else {
@@ -69,6 +70,7 @@ $(function () {
                     if (newHash.indexOf('secondId') > -1) {
                         let secondIds = newHash.split('=')
                         dataList.secondId = decodeURIComponent(secondIds[1])
+                        menuInit(theData,secondIds[1])
                     }
                     
                 }
@@ -83,10 +85,10 @@ $(function () {
         }
     }
     //跳转渲染菜单
-    function menuInit(data,id=''){
-        var theArrs = '',htmls='';
-            htmls+='<div class="objList">'
-            let thisdata=data,m,n;
+    function menuInit(data,id='',state){
+        var theArrs = '',htmls='',htmlSec='';
+            htmls+='<div class="objList">';
+            let thisdata=data,m,n,l;
             thisdata.unshift({
                     module: '',
                     name: '不限',
@@ -104,12 +106,27 @@ $(function () {
                             m=index;n=ind;
                             htmls+='<span class="active" data-id='+atem.topLevelId+'>'+atem.topLevel+'</span>'
                             return;
+                        }else{
+                            atem.children&&(atem.children).map((otem,nub)=>{
+                                if(otem.id==id){
+                                    m=index;n=ind,l=nub;
+                                }
+                            })
                         }
                         htmls+='<span data-id="'+atem.topLevelId+'">'+atem.topLevel+'</span>'
                     })
                 }
                 htmls+='</div>'
             })
+            if(l>=0){
+                let listSec = thisdata[m].list[n].children;
+                listSec.map(ttm=>{
+                    htmlSec+=`<li data-id=${ttm.id}>${ttm.name}</li>`
+                })
+            }else{
+                l=0;
+                htmlSec='<li data-id="" class="active">不限</li>';
+            }
             htmls+='</div>';
             if(!id){
                 $('.industryList').append(htmls);
@@ -118,14 +135,14 @@ $(function () {
                 $('.objList div').eq(0).addClass('active');
                 $('.objList div').eq(0).find('span').addClass('active');
                 $('.productionType ol').html(`<li data-id='' class="active">不限</li>`);
-                $('.productionType ol li').eq(0).addClass = "active";
             }else{
                 $('.industryList').append(htmls);
                 $('.industryList ul').html(theArrs);
                 $('.industryList ul li').eq(m).addClass('active');
                 $('.objList>div').eq(m).addClass('active');
-                $('.productionType ol').html(`<li data-id='' class="active">不限</li>`);
-                $('.productionType ol li').eq(0).addClass = "active";
+                $('.objList>div').eq(m).find('span').eq(n).addClass('active');
+                $('.productionType ol').html(htmlSec);
+                $('.productionType ol li').eq(l).addClass('active');
             }
             onSelect(thisdata);
     }
@@ -183,13 +200,14 @@ $(function () {
                                     <div class="txts">
                                         <h5>${thisdata.name}</h5>
                                     </div>
-                                    <div class="hr"></div>
-                                    <div class="btnTxt">
-                                        <p>${thisdata.introduce!=null?introd:'暂无介绍'}</p>
-                                    </div>
+                                    
                                 </div>
                             </a>
                         </li>`);
+                        /*  <div class="hr"></div>
+                            <div class="btnTxt">
+                                <p>${thisdata.introduce!=null?introd:'暂无介绍'}</p>
+                            </div> */
                     };
                 };
                 $('.loading').hide().stop(true,true);
@@ -342,19 +360,23 @@ $(function () {
                     <span>${txt}</span>
             `)
             loadDate();
-            $('.productionType ol li').on('click', function () {
-                dataList.name = '';
-                dataList.topId = $('.industryList ul li.active').attr('data-id');
-                $(this).addClass('active').siblings().removeClass('active');
-                dataList.secondId = $(this).attr('data-id');
-                if (!dataList.secondId) return;
-                let txt = $(this).text();
-                $('.onSelect .next').css('display', 'block').html(`
-                        <span>${txt}</span>
-                        `)
-                loadDate();
-            })
+            secSelect();
         });
+        secSelect();
+    }
+    function secSelect(){
+        $('.productionType ol li').on('click', function () {
+            dataList.name = '';
+            dataList.topId = $('.industryList ul li.active').attr('data-id');
+            $(this).addClass('active').siblings().removeClass('active');
+            dataList.secondId = $(this).attr('data-id');
+            if (!dataList.secondId) return;
+            let txt = $(this).text();
+            $('.onSelect .next').css('display', 'block').html(`
+                    <span>${txt}</span>
+                    `)
+            loadDate();
+        })
     }
     //搜索
     function search() {

+ 0 - 57
src/js/newMenu/shopList.js

@@ -290,61 +290,4 @@ $(function(){
             $('#msg').val('');
         }, 2000)
     }
-    //登录
-     //登录
-     $('#form_login').submit(function(e){
-		e.preventDefault();
-		var Suser=$('#Lo_user').val();
-		var Spass=$('#Lo_pass').val();	
-		var type=$(".login_pass>#customerType").val();
-		var check_experts=$('#checks').prop('checked');		
-		if(Suser==''||Spass==''){	
-			msg('请填写用户名/密码.');
-			return false;
-		}else{	
-			$('.loading').show();		
-			let txt = "登录中,请稍后...",htmls=[],i=0,
-			txtArr = txt.split('');
-			txtArr.map(item=>{
-				htmls.push(`
-					<span>${item}</span>
-				`)
-			});
-			$('.loading div p').html(htmls);
-			$.ajax({
-              method: "POST",
-              dataType: "json",
-              url: globalConfig.context + "/signin",
-              data: {
-                      "mobile": Suser,
-					  "password": Spass,
-					  'type':type
-              },
-              success: function (rest) {
-				    $('.loading').hide();				
-					if (rest.error && rest.error.length) {					
-		                 msg(rest.error[0].message);	
-					} else {						
-						var  data = rest.data;
-                        if (data && data.requestURI) {
-                            var path = globalConfig.context + data.requestURI;
-                            if (data.queryString) {
-                                path += '?' + data.queryString;
-                            }
-                            if (window.location.hash) {
-                                path += window.location.hash;
-                            }
-                            window.location.href = path;
-                        } else {
-                            msg('登录成功');
-                            setTimeout(()=>{
-                                window.location.reload();
-                            },500)
-                        }                       
-					}
-			   }
-          })
-                
-		}			
-	})
 })

+ 15 - 3
src/js/newMenu/tradingIndex.js

@@ -3,13 +3,12 @@ import 'bootstrap/dist/js/bootstrap.js';
 import 'css/newMenu/public.css';
 import 'css/newMenu/header.css'
 import 'css/newMenu/tradingIndex.css';
-// import 'js/banner.js';
 import 'js/public.js';
 
-
 $(function(){
     navTop();
     banner();
+    jump();
     function navTop() {
         $(window).scroll(function(){
             var scrolltop=$(document).scrollTop();
@@ -24,5 +23,18 @@ $(function(){
         $('#myCarousel').carousel({
            interval: 4000
        })
-   };
+    };
+    //在线评估跳转
+    function jump(){
+        $('.trandPg 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#/evaluate';
+            }
+        })
+    }
 })

+ 15 - 23
src/js/public.js

@@ -57,12 +57,12 @@ $(function(){
 		$('.login').fadeOut(800)
 		$('#form_register').fadeIn(800)
 	})
-
 	$('#form_login').submit(function(e){
-		let hrefs=window.location.href,
+		let hrefs=window.location.href,jump=window.location.hash,jumpState=false,
 			urls = hrefs.split('/').pop();
-		if(urls=='evaluate'||urls=='shopList'){
-			return;
+			
+		if(urls=='evaluate'||urls=='shopList'||jump=='#jump'){
+			jumpState=true;
 		}
 		e.preventDefault();
 		var Suser=$('#Lo_user').val();
@@ -107,10 +107,17 @@ $(function(){
                             }
                             window.location.href = path;
                         } else {
-							msg('登录成功,2秒后跳转个人中心');
-							setTimeout(()=>{
-								window.location.href = globalConfig.context + "/user/account/index.html";
-							},2000)
+							if(!jumpState){
+								msg('登录成功,2秒后跳转个人中心');
+									setTimeout(()=>{
+										window.location.href = globalConfig.context + "/user/account/index.html";
+									},2000)
+								}else{
+									msg('登录成功');
+									setTimeout(()=>{
+										window.location.reload();
+									},1000)
+								}
                         }                       
 					}
 			   }
@@ -130,21 +137,6 @@ $(function(){
             $('#msg').val('');
         }, 2000)
     } 	  
-    
-    // //在线客服
-		    //   (function(m, ei, q, i, a, j, s) {
-		    //     m[i] = m[i] || function() {
-		    //         (m[i].a = m[i].a || []).push(arguments)
-		    //     };
-		    //     j = ei.createElement(q),
-		    //         s = ei.getElementsByTagName(q)[0];
-		    //     j.async = true;
-		    //     j.charset = 'UTF-8';
-		    //     j.src = 'https://static.meiqia.com/dist/meiqia.js?_=t';
-		    //     s.parentNode.insertBefore(j, s);
-		    // })(window, document, 'script', '_MEIQIA');
-		    // _MEIQIA('entId', 77931);		   		   
-			// _MEIQIA('withoutBtn');	
 	//点击登录界面的忘记密码 ,将会弹出忘记密码界面
 	$('.login_check a').click(function(e){
 		e.preventDefault();

+ 8 - 53
template/newMenu/services.html

@@ -158,6 +158,7 @@
         </div>
         <div class="serviceItems">
             <h3></h3>
+            <img src="../../img/newMenu/serves_6.jpg" alt="" style="width: 1px;height:1px">
             <div class="wrapper">
                 <div class="wrapperLeft">
                     <div class="title" id="serviceHigh">
@@ -167,63 +168,17 @@
                         <span>也是高新</span>
                         <a href="#" class="seeMore">查看更多 > </a>
                     </div>
-                    <div class="subsidy">
-                        <img src="../../img/newMenu/serves_6.jpg" alt="">
+                    <div class="militaryCont">
+                        <img src="../../img/newMenu/service_jung.jpg" alt="">
                         <div class="subsidyTxt">
                             <ul>
                                 <li>
-                                    <div>
-                                        <img src="../../img/newMenu/serves_7.png" alt="">
-                                    </div>
-                                    <div>
-                                        <h4>高企诊断</h4>
-                                        <p>早测早知道&nbsp; 早知早收益</p>
-                                    </div>
-                                </li>
-                                <li>
-                                    <div>
-                                        <img src="../../img/newMenu/serves_8.png" alt="">
-                                    </div>
-                                    <div>
-                                        <h4>高企认定</h4>
+                                    <a href="">
                                         <p>税收减免&nbsp; 政府补贴</p>
-                                    </div>
-                                </li>
-                                <li>
-                                    <div>
-                                        <img src="../../img/newMenu/serves_9.png" alt="">
-                                    </div>
-                                    <div>
-                                        <h4>加计扣除</h4>
-                                        <p>落实政策 研发除税</p>
-                                    </div>
-                                </li>
-                                <li>
-                                    <div>
-                                        <img src="../../img/newMenu/serves_10.png" alt="">
-                                    </div>
-                                    <div>
-                                        <h4>高企培育</h4>
-                                        <p>谋世大格局 谋时小布局</p>
-                                    </div>
-                                </li>
-                                <li>
-                                    <div>
-                                        <img src="../../img/newMenu/serves_11.png" alt="">
-                                    </div>
-                                    <div>
-                                        <h4>自助高新</h4>
-                                        <p>高新达人 我的高新我做主</p>
-                                    </div>
-                                </li>
-                                <li>
-                                    <div>
-                                        <img src="../../img/newMenu/serves_12.png" alt="">
-                                    </div>
-                                    <div>
-                                        <h4>高企培训</h4>
-                                        <p>培训一天 轻松一年</p>
-                                    </div>
+                                        <div>
+                                            <img src="../../img/newMenu/serves_8.png" alt="">
+                                        </div>
+                                    </a>
                                 </li>
                             </ul>
                         </div>

+ 7 - 0
template/newMenu/tradingIndex.html

@@ -315,6 +315,13 @@
             <a href="#">查看更多需求</a>
         </div>
     </div>
+    <div class="patentTitle">
+        <h2 id="">在线评估</h2>
+        <span></span>
+    </div>
+    <div class="trandPg">
+        <span>开始评估</span>
+    </div>
     <div class="container">
         <div class="patentTitle">
             <h2 id="trandingIndexPolicy">知识产权交易政策</h2>