|  | @@ -1,44 +1,62 @@
 | 
	
		
			
				|  |  |  import 'css/bootstrap.less';
 | 
	
		
			
				|  |  |  import 'bootstrap/dist/js/bootstrap.js';
 | 
	
		
			
				|  |  |  import 'css/newMenu/public.css';
 | 
	
		
			
				|  |  | -import 'css/newMenu/header.css'
 | 
	
		
			
				|  |  | +import 'css/newMenu/header.css';
 | 
	
		
			
				|  |  |  import 'css/newMenu/services.css';
 | 
	
		
			
				|  |  |  import 'js/public.js';
 | 
	
		
			
				|  |  |  import 'js/newMenu/map.js';
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -$(function(){
 | 
	
		
			
				|  |  | -   
 | 
	
		
			
				|  |  | +$(function () {
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      init();
 | 
	
		
			
				|  |  | -    function init(){
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    function init() {
 | 
	
		
			
				|  |  |          listFun();
 | 
	
		
			
				|  |  |          search();
 | 
	
		
			
				|  |  | +        navTop();
 | 
	
		
			
				|  |  |      };
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    function navTop() {
 | 
	
		
			
				|  |  | +        $(window).scroll(function () {
 | 
	
		
			
				|  |  | +            var scrolltop = $(document).scrollTop();
 | 
	
		
			
				|  |  | +            if (scrolltop > 500) {
 | 
	
		
			
				|  |  | +                $('.topNav').addClass('navFix')
 | 
	
		
			
				|  |  | +            } else {
 | 
	
		
			
				|  |  | +                $('.topNav').removeClass('navFix');
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        });
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  |      // search
 | 
	
		
			
				|  |  | -    function search (){
 | 
	
		
			
				|  |  | -        $('.searchBtn').click(function(){
 | 
	
		
			
				|  |  | +    function search() {
 | 
	
		
			
				|  |  | +        $('.searchBtn').click(function () {
 | 
	
		
			
				|  |  |              let name = $('.demandSearch').val().trim();
 | 
	
		
			
				|  |  | -            window.location.href=globalConfig.context+'/portal/service/serviceList?name='+name
 | 
	
		
			
				|  |  | +            window.location.href = globalConfig.context + '/portal/service/serviceList?name=' + name
 | 
	
		
			
				|  |  |          })
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  | -     /*合作客户切换  */
 | 
	
		
			
				|  |  | -    function listFun(){
 | 
	
		
			
				|  |  | -        let m=0,
 | 
	
		
			
				|  |  | +    /*合作客户切换  */
 | 
	
		
			
				|  |  | +    function listFun() {
 | 
	
		
			
				|  |  | +        let m = 0,
 | 
	
		
			
				|  |  |              liW = $('.customerList ul li').width(),
 | 
	
		
			
				|  |  |              len = $('.customerList ul li').length;
 | 
	
		
			
				|  |  | -        $('.cooperationPeople .listNext').on('click',function(){
 | 
	
		
			
				|  |  | +        $('.cooperationPeople .listNext').on('click', function () {
 | 
	
		
			
				|  |  |              m++;
 | 
	
		
			
				|  |  | -            if(m>len-3){
 | 
	
		
			
				|  |  | -                m=len-3;
 | 
	
		
			
				|  |  | +            if (m > len - 3) {
 | 
	
		
			
				|  |  | +                m = len - 3;
 | 
	
		
			
				|  |  |              };
 | 
	
		
			
				|  |  | -            $('.customerList ul').animate({marginLeft:-liW*m+'px'})
 | 
	
		
			
				|  |  | +            $('.customerList ul').animate({
 | 
	
		
			
				|  |  | +                marginLeft: -liW * m + 'px'
 | 
	
		
			
				|  |  | +            })
 | 
	
		
			
				|  |  |          });
 | 
	
		
			
				|  |  | -        $('.cooperationPeople .listPre').on('click',function(){
 | 
	
		
			
				|  |  | +        $('.cooperationPeople .listPre').on('click', function () {
 | 
	
		
			
				|  |  |              m--;
 | 
	
		
			
				|  |  | -            if(m<=0){
 | 
	
		
			
				|  |  | -               m=0;
 | 
	
		
			
				|  |  | +            if (m <= 0) {
 | 
	
		
			
				|  |  | +                m = 0;
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  | -            $('.customerList ul').animate({marginLeft:-liW*m+'px'})
 | 
	
		
			
				|  |  | +            $('.customerList ul').animate({
 | 
	
		
			
				|  |  | +                marginLeft: -liW * m + 'px'
 | 
	
		
			
				|  |  | +            })
 | 
	
		
			
				|  |  |          });
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  | -   
 | 
	
		
			
				|  |  | -})
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +})
 |