liting2017 7 years ago
parent
commit
b7ceb8b6e7
9 changed files with 335 additions and 373 deletions
  1. BIN
      img/need_img1.jpg
  2. BIN
      img/need_img2.jpg
  3. BIN
      img/need_img3.jpg
  4. BIN
      img/product2.jpg
  5. BIN
      img/product4.jpg
  6. BIN
      img/product5.jpg
  7. 1 5
      src/js/service/propertyRight.js
  8. 326 360
      src/js/thinktank.js
  9. 8 8
      template/index.html

BIN
img/need_img1.jpg


BIN
img/need_img2.jpg


BIN
img/need_img3.jpg


BIN
img/product2.jpg


BIN
img/product4.jpg


BIN
img/product5.jpg


+ 1 - 5
src/js/service/propertyRight.js

@@ -28,11 +28,7 @@ $(function(){
 	       	$('#t_d').css({"fontSize":"50px","color":"#cccccc","top":"220px","left":"120px"})
 	   }
    }
-   var times = setInterval(GetRTime,0);
-   
-
-
-
+   var times = setInterval(GetRTime,0);  
     var htmlwidth=$(document).width();
     $(".btn_div>div").width((htmlwidth-1200)/2);
     $(".leftdiv").css({"left":-(htmlwidth-1200)/2});

+ 326 - 360
src/js/thinktank.js

@@ -11,382 +11,348 @@ import {
 import {
     techFieldList,
     getTechField
-} from './DicTechFieldList';   
+    } from './DicTechFieldList';
 
-$(function(){	
-	//智库、智者切换
-	$('.zizone .col-md-6').click(function(){
-		$(this).addClass('actives').siblings().removeClass('actives')
-	})	
-	$('.zone_left').click(function(){
-		$('.wiseman_list').hide();
-		$('.tab_zizone').show();
-	})
-	$('.zone_right').click(function(){
-		$('.wiseman_list').show();
-		$('.tab_zizone').hide();
-	})
-	//地方政策城市切换	
-	//初始北京第一页新闻
-	$('.place_city ul li').eq(0).addClass('thon').siblings().removeClass('thon')
-	$.ajax({
+$(function(){
+    //智库、智者切换
+    $('.zizone .col-md-6').click(function(){
+        $(this).addClass('actives').siblings().removeClass('actives')
+    })
+    $('.zone_left').click(function(){
+        $('.wiseman_list').hide();
+        $('.tab_zizone').show();
+    })
+    $('.zone_right').click(function(){
+        $('.wiseman_list').show();
+        $('.tab_zizone').hide();
+    })
+    //地方政策城市切换
+    //初始北京第一页新闻
+    $('.place_city ul li').eq(0).addClass('thon').siblings().removeClass('thon');
+    var thePageNos= 1;
+    var pageNos = 1;
+    var thePageLengths=1;
+    var pageSizes = 4;
+    var provinces=1;
+    function datt(provinces,pageNos){
+        $.ajax({
             method: "get",
             dataType: "json",
-            url: globalConfig.context + "/portal/news/list",           
-            data: { 
-            	provinceId:1,
-            	hot: 1,
-            	pageNo:1,
-            	type:5,
-            	pageSize:4,
+            url: globalConfig.context + "/portal/news/list",
+            data: {
+                provinceId:provinces || 1,
+                hot: 1,
+                pageNo:pageNos || 1,
+                type:5,
+                pageSize:pageSizes,
             },
-             success: function (result) {  	            	
-	            	var totlepage=Math.ceil(result.data.totalCount/4);
-                	var policy_li ='';               	
-                	for(var i=0;i<result.data.list.length;i++){               		
-                		var id=result.data.list[i].id;               	
-	                	var title = result.data.list[i].title; //标题
-	                	var time = result.data.list[i].createTimeFormattedDate; //日期
-	                	var day=time.substr(8,2);//号
-	                	var month=time.substr(0,7) //年、月
-	                	var summary = result.data.list[i].summary;//简介
-	                	var totle=result.data.totalCount;
-	                	var pages=Math.ceil(totle/4);
-	                	var sol='';
-                        policy_li+="<li value='"+id+"'>"+"<div class='policy_time'><p>"+day+"</p><time>"+month+"</time></div><div class='policy_details'><h4><a href='#'>"+title+"</a></h4><p>"+summary+"</p><a href='#'>MORE+</a></div></li>"                        
-                	}                 	            		
-                	if(result.data.list.length===0){                		
-                	   $('.policy ol').hide();
-                	   $('.policy ul').html('<li>敬请期待…</li>') ;
-                	}else{ 
-                	 $('.policy ol').show() ;
-                	 $('.policy ul').html(policy_li)  
-                	}
-	            }.bind(this)
-	})
-	//点击省份时刷新页面新闻	
-	$('.place_city ul li').click(function(){		     
-			$(this).addClass('thon').siblings().removeClass('thon')
-			$('.policy ol li').eq(0).addClass('active_of').siblings().removeClass('active_of');
-			$('.more_city .inp').removeClass('thon');
-			$('.more_city .inp').text('更多省份 +')
-			//新闻刷新		
-			var t_val=$(this).prop('value');			
-			$.ajax({
-	            method: "get",
-	            dataType: "json",
-	            url: globalConfig.context + "/portal/news/list",
-	            data: { 
-	            	provinceId:t_val,
-	            	hot: 1,
-	            	pageNo:1,
-	            	type:5,
-	            	pageSize:4,
-	            },
-	             success: function (result) {  	            	
-	            	var totlepage=Math.ceil(result.data.totalCount/4);
-                	var policy_li ='';               	                	                                         
-                	for(var i=0;i<result.data.list.length;i++){               		
-                		var id=result.data.list[i].id;               	
-	                	var title = result.data.list[i].title; //标题
-	                	var time = result.data.list[i].createTimeFormattedDate; //日期
-	                	var day=time.substr(8,2);//号
-	                	var month=time.substr(0,7) //年、月
-	                	var summary = result.data.list[i].summary;//简介	
-	                	var totle=result.data.totalCount;
-	                	var pages=Math.ceil(totle/4);
-	                	var sol='';
-                        policy_li+="<li value='"+id+"'>"+"<div class='policy_time'><p>"+day+"</p><time>"+month+"</time></div><div class='policy_details'><h4><a href='#'>"+title+"</a></h4><p>"+summary+"</p><a href='#'>MORE+</a></div></li>"                        
-                	}                 	            		
-                	if(result.data.list.length===0){                	
-                	  $('.policy ol').hide();
-                	  $('.policy ul').html('<li>敬请期待…</li>')
-                	}else{ 
-                	  $('.policy ol').show();
-                	  $('.policy ul').html(policy_li);  
-                	 }
-	            }.bind(this)
-      		})			
-	});
-	//智政新闻小点切换宽度设置及点击刷新	
-	var cirle = $('.policy ol li').length;
-	var ind_circle=0;
-	$('.policy ol li').click(function(){		
-		$(this).addClass('active_of').siblings().removeClass('active_of');	
-		var place_on = $('.place_city ul li.thon').prop('value')				
-		var h_ind=$(this).index()+1;
-		if(place_on==undefined){
-			place_on=$('.inp').attr('value');
-		}		
-		$.ajax({
-	            method: "get",
-	            dataType: "json",
-	            url: globalConfig.context + "/portal/news/list",
-	            data: { 
-	            	provinceId:place_on,
-	            	hot: 1,
-	            	pageNo:h_ind,
-	            	type:5,
-	            	pageSize:4,
-	            },
-	            success: function (result) {  	            	
-                	var policy_li ='';  
-                	var totle=result.data.totalCount;                	                 	
-                	for(var i=0;i<result.data.list.length;i++){               		
-                		var id=result.data.list[i].id;               	
-	                	var title = result.data.list[i].title; //标题
-	                	var time = result.data.list[i].createTimeFormattedDate; //日期
-	                	var day=time.substr(8,2);//号
-	                	var month=time.substr(0,7) //年、月
-	                	var summary = result.data.list[i].summary;//简介		                		                	
-                        policy_li+="<li value='"+id+"'>"+"<div class='policy_time'><p>"+day+"</p><time>"+month+"</time></div><div class='policy_details'><h4><a href='#'>"+title+"</a></h4><p>"+summary+"</p><a href='#'>MORE+</a></div></li>"                        
-                	}                 	
-                	  $('.policy ul').html(policy_li)                	                 	            	               
-	            }.bind(this)
-      	})		
-	})	
-	
-	//搜索城市下拉
-	var addlength=provinceList.length;
-	var soption='';
-	var sol='';
-	for(var i=5;i<addlength;i++){		
-		sol+="<p value='"+provinceList[i].id+"'>"+provinceList[i].name+"</p>";			
-	};
-	for(var i=0;i<addlength;i++){		
-		soption+="<option value='"+provinceList[i].id+"'>"+provinceList[i].name+"</option>";			
-	};
-	$('.list_city').html(sol);
-	$('#selt').html(soption);	
-	//智政城市下拉切换
-	$('.list_city').hide();
-	$('.more_city .inp').click(function(){
-		$('.list_city').slideToggle(500)		
-	})
-	$('.more_city').mouseleave(function(){
-		$('.list_city').hide();
-	})
-	//选择城市及新闻页面刷新
-	$('.list_city p').click(function(){
-		var ptxt=$(this).text();
-		var pval=$(this).attr('value')
-		$('.more_city .inp').text(ptxt);
-		$('.more_city .inp').attr('value',pval);
-		$('.list_city').hide();
-		$('.more_city .inp').addClass('thon');
-		$('.place_city ul li').removeClass('thon');
-		$('.policy ol li').eq(0).addClass('active_of').siblings().removeClass('active_of');		
-		var p_val=$(this).attr('value');			
-		$.ajax({
-	            method: "get",
-	            dataType: "json",
-	            url: globalConfig.context + "/portal/news/list",
-	            data: { 
-	            	provinceId:p_val,
-	            	hot: 1,
-	            	pageNo:1,
-	            	type:5,
-	            	pageSize:4,
-	            },
-	            success: function (result) {  	            		            	
-                	var policy_li ='';                 	               	                	
-                	for(var i=0;i<result.data.list.length;i++){               		
-                		var id=result.data.list[i].id;               	
-	                	var title = result.data.list[i].title; //标题
-	                	var time = result.data.list[i].createTimeFormattedDate; //日期
-	                	var day=time.substr(8,2);//号
-	                	var month=time.substr(0,7) //年、月
-	                	var summary = result.data.list[i].summary;//简介	
-	                	var totle=result.data.totalCount;
-	                	var pages=Math.ceil(totle/4);
-	                	var sol='';
-                        policy_li+="<li value='"+id+"'>"+"<div class='policy_time'><p>"+day+"</p><time>"+month+"</time></div><div class='policy_details'><h4><a href='#'>"+title+"</a></h4><p>"+summary+"</p><a href='#'>MORE+</a></div></li>"                        
-                	}                 	            		
-                	if(result.data.list.length===0){               		
-                	  $('.policy ol').hide(); 
-                	  $('.policy ul').html('<li>敬请期待…</li>')
-                	}else{  
-                	  $('.policy ol').show();
-                	  $('.policy ul').html(policy_li)                 	  
-                	}       
-	            }.bind(this)	            
-      	});		
-	});	
-	
-	//中央政策点击刷新
-	//初始化内容	
-	$.ajax({
+            success: function (result) {
+                var totlepage=Math.ceil(result.data.totalCount/4);
+                var policy_li ='';
+                for(var i=0;i<result.data.list.length;i++){
+                    var id=result.data.list[i].id;
+                    var title = result.data.list[i].title; //标题
+                    var time = result.data.list[i].createTimeFormattedDate; //日期
+                    var day=time.substr(8,2);//号
+                    var month=time.substr(0,7) //年、月
+                    var summary = result.data.list[i].summary;//简介
+                    var totle=result.data.totalCount;
+                    var pages=Math.ceil(totle/4);
+                    var sol='';
+                    policy_li+="<li value='"+id+"'>"+"<div class='policy_time'><p>"+day+"</p><time>"+month+"</time></div><div class='policy_details'><h4><a href='#'>"+title+"</a></h4><p>"+summary+"</p><a href='#'>MORE+</a></div></li>"
+                }
+                if(result.data.list.length===0){
+                    $('.policy ol').hide();
+                    $('.policy ul').html('<li>敬请期待…</li>') ;
+                }else{
+                    $('.policy ol').show() ;
+                    $('.policy ul').html(policy_li)
+                }
+            }.bind(this)
+        })
+    }
+    datt(1,1);
+    //点击省份时刷新页面新闻
+    $('.place_city ul li').click(function(){
+        $(this).addClass('thon').siblings().removeClass('thon')
+        $('.policy ol li').eq(0).addClass('active_of').siblings().removeClass('active_of');
+        $('.more_city .inp').removeClass('thon');
+        $('.more_city .inp').text('更多省份 +')
+        //新闻刷新
+        var t_val=$(this).prop('value');
+        provinces=t_val;
+        datt(provinces,1);
+    });
+    //智政新闻小点切换宽度设置及点击刷新
+    var cirle = $('.policy ol li').length;
+    var ind_circle=0;
+    $('.policy ol li').click(function(){
+        $(this).addClass('active_of').siblings().removeClass('active_of');
+        var place_on = $('.place_city ul li.thon').prop('value')
+        var h_ind=$(this).index()+1;
+        if(place_on==undefined){
+            place_on=$('.inp').attr('value');
+        }
+        provinces=place_on;
+        pageNos=h_ind;
+        $.ajax({
             method: "get",
             dataType: "json",
-            url: globalConfig.context + "/portal/news/list",           
-            data: { 
-            	provinceId:null,
-            	hot: 1,
-            	pageNo:1,
-            	type:4,
-            	pageSize:4,
+            url: globalConfig.context + "/portal/news/list",
+            data: {
+                provinceId:provinces || 1,
+                hot: 1,
+                pageNo:pageNos || 1,
+                type:5,
+                pageSize:pageSizes,
             },
-            success: function (result) {             		
-                	var policy_img ='';                 	
-                	for(var i=0;i<result.data.list.length;i++){               		
-                		var id=result.data.list[i].id;               	
-	                	var title = result.data.list[i].title; //标题
-	                	var titleImg = result.data.list[i].titleImg; //图片	               
-	                	var summary = result.data.list[i].summary;//简介		                	
-                     policy_img+="<li value='"+id+"'>"+"<img src='"+globalConfig.avatarUploadHost+titleImg+"' alt=''/>"+"<div class='zizone_text'><h4><a href='#'>"+title+"</a></h3><p>"+summary+"</p><a href='#'>MORE+</a></div></li>"   						
-                	}                 	            		
-                	$('.main_zizone ul').html(policy_img)                  	
-	            }.bind(this)
-	})
-	//点击时left
-	var t=2;	
-	$('.zizone_left').click(function(){	
-		t--;
-		if(t<=1){
-			t=1			
-		}		
-		$.ajax({
+            success: function (result) {
+                var totlepage=Math.ceil(result.data.totalCount/4);
+                var policy_li ='';
+                for(var i=0;i<result.data.list.length;i++){
+                    var id=result.data.list[i].id;
+                    var title = result.data.list[i].title; //标题
+                    var time = result.data.list[i].createTimeFormattedDate; //日期
+                    var day=time.substr(8,2);//号
+                    var month=time.substr(0,7) //年、月
+                    var summary = result.data.list[i].summary;//简介
+                    var totle=result.data.totalCount;
+                    var pages=Math.ceil(totle/4);
+                    var sol='';
+                    policy_li+="<li value='"+id+"'>"+"<div class='policy_time'><p>"+day+"</p><time>"+month+"</time></div><div class='policy_details'><h4><a href='#'>"+title+"</a></h4><p>"+summary+"</p><a href='#'>MORE+</a></div></li>"
+                }
+                $('.policy ol').show();
+                $('.policy ul').html(policy_li);
+            }.bind(this)
+        })
+    })
+    //中央政策跳转
+    $('.main_zizone ul').on('click', 'li', function () {
+        var theId = $(this).attr('value');
+        window.open(globalConfig.context + '/portal/detail/achievementDetail.html?id=' + theId );
+    })
+    //地方政策跳转
+    $('.policy_details a').on('click', 'li', function () {
+        var theId = $(this).parent('li').attr('value');
+        window.open(globalConfig.context + '/portal/detail/achievementDetail.html?id=' + theId );
+    })
+
+    //搜索城市下拉
+    var addlength=provinceList.length;
+    var soption='';
+    var sol='';
+    for(var i=5;i<addlength;i++){
+        sol+="<p value='"+provinceList[i].id+"'>"+provinceList[i].name+"</p>";
+    };
+    for(var i=0;i<addlength;i++){
+        soption+="<option value='"+provinceList[i].id+"'>"+provinceList[i].name+"</option>";
+    };
+    $('.list_city').html(sol);
+    $('#selt').html(soption);
+    //智政城市下拉切换
+    $('.list_city').hide();
+    $('.more_city .inp').click(function(){
+        $('.list_city').slideToggle(500)
+    })
+    $('.more_city').mouseleave(function(){
+        $('.list_city').hide();
+    })
+    //选择城市及新闻页面刷新
+    $('.list_city p').click(function(){
+        var ptxt=$(this).text();
+        var pval=$(this).attr('value');
+        $('.more_city .inp').text(ptxt);
+        $('.more_city .inp').attr('value',pval);
+        $('.list_city').hide();
+        $('.more_city .inp').addClass('thon');
+        $('.place_city ul li').removeClass('thon');
+        $('.policy ol li').eq(0).addClass('active_of').siblings().removeClass('active_of');
+        var p_val=$(this).attr('value');
+        provinces=p_val	;
+        datt(provinces,1);
+    });
+
+    //中央政策点击刷新
+    //初始化内容
+    function mids(provinces,pageNos){
+        $.ajax({
             method: "get",
             dataType: "json",
-            url: globalConfig.context + "/portal/news/list",           
-            data: { 
-            	provinceId:null,
-            	hot: 1,
-            	pageNo:t,
-            	type:4,
-            	pageSize:4,
+            url: globalConfig.context + "/portal/news/list",
+            data: {
+                provinceId:provinces ||1,
+                hot: 1,
+                pageNo:pageNos||1,
+                type:4,
+                pageSize:pageSizes,
             },
-            success: function (result) {               
-                	var policy_img ='';                 	
-                	for(var i=0;i<result.data.list.length;i++){               		
-                		var id=result.data.list[i].id;               	
-	                	var title = result.data.list[i].title; //标题
-	                	var titleImg = result.data.list[i].titleImg; //图片	               
-	                	var summary = result.data.list[i].summary;//简介		                	
-                     policy_img+="<li value='"+id+"'>"+"<img src='"+globalConfig.avatarUploadHost+titleImg+"' alt='''/>"+"<div class='zizone_text'><h4><a href='#'>"+title+"</a></h3><p>"+summary+"</p><a href='#'>MORE+</a></div></li>"   						
-                	}                 	
-                	if(result.data.list.length===0){                		
-                		return false
-                	}{                   		                		
-                		$('.main_zizone ul').html(policy_img)
-                	}                  	
-	            }.bind(this)
-		})
-	})
-	//点击时right	
-	$('.zizone_right').click(function(){					
-		$.ajax({
+            success: function (result) {
+                thePageLengths = result.data.totalCount ? Math.ceil(result.data.totalCount / pageSizes) : 1;
+                var policy_img ='';
+                for(var i=0;i<result.data.list.length;i++){
+                    var id=result.data.list[i].id;
+                    var title = result.data.list[i].title; //标题
+                    var titleImg = result.data.list[i].titleImg; //图片
+                    var summary = result.data.list[i].summary;//简介
+                    policy_img+="<li value='"+id+"'>"+"<img src='"+globalConfig.avatarUploadHost+titleImg+"' alt=''/>"+"<div class='zizone_text'><h4><a href='#'>"+title+"</a></h3><p>"+summary+"</p><a href='#'>MORE+</a></div></li>"
+                }
+                $('.main_zizone ul').html(policy_img)
+            }.bind(this)
+        })
+    }
+    mids(1,1)
+    //点击时left
+    var t=1;
+    $('.zizone_left').click(function(){
+        t--;
+        if(t<=1){
+            t=1
+        }
+        $.ajax({
             method: "get",
             dataType: "json",
-            url: globalConfig.context + "/portal/news/list",           
-            data: { 
-            	provinceId:null,
-            	hot: 1,
-            	pageNo:t,
-            	type:4,
-            	pageSize:4,
+            url: globalConfig.context + "/portal/news/list",
+            data: {
+                provinceId:null,
+                hot: 1,
+                pageNo:t,
+                type:4,
+                pageSize:4,
             },
-            success: function (result) {  
-            		var totle=Math.ceil(result.data.totalCount/4);            		
-                	var policy_img ='';                 	
-                	for(var i=0;i<result.data.list.length;i++){               		
-                		var id=result.data.list[i].id;               	
-	                	var title = result.data.list[i].title; //标题
-	                	var titleImg = result.data.list[i].titleImg; //图片	               
-	                	var summary = result.data.list[i].summary;//简介		                	
-                     policy_img+="<li value='"+id+"'>"+"<img src='"+globalConfig.avatarUploadHost+titleImg+"' alt='''/>"+"<div class='zizone_text'><h4><a href='#'>"+title+"</a></h3><p>"+summary+"</p><a href='#'>MORE+</a></div></li>"   						
-                	} 
-                	if(result.data.list.length===0){                		
-                		return false
-                	}{   
-                		t++;   
-                		if(t>totle){
-                			t=totle
-                		}
-                		$('.main_zizone ul').html(policy_img)
-                	}
-	        }.bind(this)	        
-		})		
-	})	
-	//智者数据交互
-var theKeyword, theFieldA, theFieldB, theFieldC;
-var thePageNo = 1,
-    thePageLength = 1,
-    pageSize = 12,
-    theType = 0;
+            success: function (result) {
+                var totle=Math.ceil(result.data.totalCount/4);
+                var policy_img ='';
+                for(var i=0;i<result.data.list.length;i++){
+                    var id=result.data.list[i].id;
+                    var title = result.data.list[i].title; //标题
+                    var titleImg = result.data.list[i].titleImg; //图片
+                    var summary = result.data.list[i].summary;//简介
+                    policy_img+="<li value='"+id+"'>"+"<img src='"+globalConfig.avatarUploadHost+titleImg+"' alt='''/>"+"<div class='zizone_text'><h4><a href='#'>"+title+"</a></h3><p>"+summary+"</p><a href='#'>MORE+</a></div></li>"
+                }
+                if(result.data.list.length===0){
+                    return false
+                }{
 
+                    $('.main_zizone ul').html(policy_img)
+                }
+            }.bind(this)
+        })
+    })
+    //点击时right
+    var totle;
+    $('.zizone_right').click(function(){
+        t++;
+        if(t>totle){
+            t=totle
+        }
+        $.ajax({
+            method: "get",
+            dataType: "json",
+            url: globalConfig.context + "/portal/news/list",
+            data: {
+                provinceId:null,
+                hot: 1,
+                pageNo:t,
+                type:4,
+                pageSize:4,
+            },
+            success: function (result) {
+                 totle=Math.ceil(result.data.totalCount/4);
+                var policy_img ='';
+                for(var i=0;i<result.data.list.length;i++){
+                    var id=result.data.list[i].id;
+                    var title = result.data.list[i].title; //标题
+                    var titleImg = result.data.list[i].titleImg; //图片
+                    var summary = result.data.list[i].summary;//简介
+                    policy_img+="<li value='"+id+"'>"+"<img src='"+globalConfig.avatarUploadHost+titleImg+"' alt='''/>"+"<div class='zizone_text'><h4><a href='#'>"+title+"</a></h3><p>"+summary+"</p><a href='#'>MORE+</a></div></li>"
+
+                }
+
+                $('.main_zizone ul').html(policy_img)
+
+            }.bind(this)
+        })
+    })
+    //智者数据交互
+    var theKeyword, theFieldA, theFieldB, theFieldC;
+    var thePageNo = 1,
+        thePageLength = 1,
+        pageSize = 12,
+        theType = 0;
 
-function loadDate(pageNo) {
-    theFieldA = theFieldA != 999 ? theFieldA : undefined;
-    theFieldB = theFieldB != 999 ? theFieldB : undefined;
-    theFieldC = theFieldC != 999 ? theFieldC : undefined;
-    $.ajax({
-        method: "get",
-        dataType: "json",
-        url: globalConfig.context + "/portal/search/subscriberList",
-        data: {
-            pageNo: pageNo || 1,
-            pageSize: pageSize,
-            type: theType,
-            name: theKeyword,
-            field: theFieldA ? ((theFieldA || '') + (theFieldB ? (',' + theFieldB) : '') + (theFieldC ? (',' + theFieldC) : '')) : undefined,
-        },
-        success: function (data) {
-            var theArr = [];
-            if (data.data && data.data.list) {
-                for (let i = 0; i < data.data.list.length; i++) {
-                    let thisdata = data.data.list[i];
-                    let engagedField = thisdata.engagedField ? thisdata.engagedField.split(',') : [];
-                    theArr.push([                        
-                        '<li>',
-			 			'<img src="' + globalConfig.avatarHost + '/upload' + thisdata.personPortraitUrl + '" alt="头像" />',
-			 			'<div class="list_text">',
-			 			'<p class="bulr">'+ thisdata.username + '</p>',
-			 			'<p class="orange">' + (thisdata.position || '未知职位') + '</p>',
-			 			'<p class="text_on">' + getTechField(engagedField[0], engagedField[1], engagedField[2]) + '</p>',
-			 			'</div>',
-			 			'<div class="shadow_text">',
-			 			'<p class="bulr">'+ thisdata.username + '</p>',
-			 			'<p class="orange">' + (thisdata.position || '未知职位') + '</p>',
-			 			'<p class="text_on">' + getTechField(engagedField[0], engagedField[1], engagedField[2]) + '</p>',
-			 			'<img src="' + globalConfig.portalHost + '/img/search_txt.png "/>',
-			 			'</div>',
- 						'</li>' ,                   
-                    ].join(''));
+
+    function loadDate(pageNo) {
+        theFieldA = theFieldA != 999 ? theFieldA : undefined;
+        theFieldB = theFieldB != 999 ? theFieldB : undefined;
+        theFieldC = theFieldC != 999 ? theFieldC : undefined;
+        $.ajax({
+            method: "get",
+            dataType: "json",
+            url: globalConfig.context + "/portal/search/subscriberList",
+            data: {
+                pageNo: pageNo || 1,
+                pageSize: pageSize,
+                type: theType,
+                name: theKeyword,
+                field: theFieldA ? ((theFieldA || '') + (theFieldB ? (',' + theFieldB) : '') + (theFieldC ? (',' + theFieldC) : '')) : undefined,
+            },
+            success: function (data) {
+                var theArr = [];
+                if (data.data && data.data.list) {
+                    for (let i = 0; i < data.data.list.length; i++) {
+                        let thisdata = data.data.list[i];
+                        let engagedField = thisdata.engagedField ? thisdata.engagedField.split(',') : [];
+                        var  imgUrl=thisdata.personPortraitUrl!==null?thisdata.personPortraitUrl:"/img/timg.gif";
+                        theArr.push([
+                            '<li value="'+thisdata.identityId+'">',
+                            '<img src="' + globalConfig.avatarHost + '/upload' + thisdata.personPortraitUrl + '"  />',
+                            '<div class="list_text">',
+                            '<p class="bulr">'+ thisdata.username + '</p>',
+                            '<p class="orange">' + (thisdata.position || '未知职位') + '</p>',
+                            '<p class="text_on">' + getTechField(engagedField[0], engagedField[1], engagedField[2]) + '</p>',
+                            '</div>',
+                            '<div class="shadow_text">',
+                            '<p class="bulr">'+ thisdata.username + '</p>',
+                            '<p class="orange">' + (thisdata.position || '未知职位') + '</p>',
+                            '<p class="text_on">' + getTechField(engagedField[0], engagedField[1], engagedField[2]) + '</p>',
+                            '<img src="' + globalConfig.portalHost + '/img/search_txt.png "/>',
+                            '</div>',
+                            '</li>' ,
+                        ].join(''));
+                    };
+                } else {
+                    return;
                 };
-            } else {               
-                return;
-            };
-            $('#subscriberList').empty();
-            $('#subscriberList').append(theArr.join(''));
+                $('#subscriberList').empty();
+                $('#subscriberList').append(theArr.join(''));
 
-            $('.totalCount').html("共" + data.data.totalCount + "条数据");
-            thePageLength = data.data.totalCount ? Math.ceil(data.data.totalCount / pageSize) : 1;
-            var pageArr = [],
-                firstNo = 1,
-                endNo = 5;
-            if (thePageNo > 3) {
-                firstNo = thePageNo - 2;
-                endNo = Math.min((Number(thePageNo) + 2), thePageLength);
-            } else {
-                endNo = Math.min(thePageLength, 5);
-            };
-            for (let i = firstNo; i <= endNo; i++) {
-                if (i == thePageNo) {
-                    pageArr.push(
-                        '<li class="pageNumber active"><a href="#" value=' + i + ' >' + i + '</a></li>'
-                    );
+                $('.totalCount').html("共" + data.data.totalCount + "条数据");
+                thePageLength = data.data.totalCount ? Math.ceil(data.data.totalCount / pageSize) : 1;
+                var pageArr = [],
+                    firstNo = 1,
+                    endNo = 5;
+                if (thePageNo > 3) {
+                    firstNo = thePageNo - 2;
+                    endNo = Math.min((Number(thePageNo) + 2), thePageLength);
                 } else {
-                    pageArr.push(
-                        '<li class="pageNumber"><a href="#" value=' + i + ' >' + i + '</a></li>'
-                    );
-                }
-            };
-            $('.pageNumber').remove();
-            $('.pagePre').after(pageArr.join(''));
-        },
-    });
-}
+                    endNo = Math.min(thePageLength, 5);
+                };
+                for (let i = firstNo; i <= endNo; i++) {
+                    if (i == thePageNo) {
+                        pageArr.push(
+                            '<li class="pageNumber active"><a href="#" value=' + i + ' >' + i + '</a></li>'
+                        );
+                    } else {
+                        pageArr.push(
+                            '<li class="pageNumber"><a href="#" value=' + i + ' >' + i + '</a></li>'
+                        );
+                    }
+                };
+                $('.pageNumber').remove();
+                $('.pagePre').after(pageArr.join(''));
+            },
+        });
+    }
 
 
     if (window.location.search) {
@@ -501,9 +467,9 @@ function loadDate(pageNo) {
         loadDate();
     });
     $('.searchs button').click(function (e) {
-    	e.preventDefault();    	
+        e.preventDefault();
         theKeyword = $('#search_on input').val();
-        
+
         loadDate();
     });
     $('.pagination').on('click', 'li', function (e) {

+ 8 - 8
template/index.html

@@ -246,49 +246,49 @@
 				<ul>
 					<li>
 						<a href="#">
-							<img src="../img/need_img1.png" alt="" />
+							<img src="../img/need_img1.jpg" alt="" />
 							<p><span href="#">哪些明星项目不为啥东西将上档次想</p>
 						</a>
 					</li>
 					<li>
 						<a href="#">
-							<img src="../img/need_img1.png" alt="" />
+							<img src="../img/need_img2.jpg" alt="" />
 							<p>哪些明星项目不为啥东西将上档次想</p>
 						</a>
 					</li>
 					<li>
 						<a href="#">
-							<img src="../img/need_img2.jpg" alt="" />
+							<img src="../img/need_img3.jpg" alt="" />
 							<p>哪些明星项目不为啥东西将上档次想</p>
 						</a>
 					</li>
 					<li>
 						<a href="#">
-							<img src="../img/need_img1.png" alt="" />
+							<img src="../img/need_img1.jpg" alt="" />
 							<p>哪些明星项目不为啥东西将上档次想</p>
 						</a>
 					</li>
 					<li>
 						<a href="#">
-							<img src="../img/need_img1.png" alt="" />
+							<img src="../img/need_img2.jpg" alt="" />
 							<p>哪些明星项目不为啥东西将上档次想</p>
 						</a>
 					</li>
 					<li>
 						<a href="#">
-							<img src="../img/need_img2.jpg" alt=""/>
+							<img src="../img/need_img3.jpg" alt=""/>
 							<p>哪些明星项目不为啥东西将上档次想</p>
 						</a>
 					</li>
 					<li>
 						<a href="#">
-							<img src="../img/need_img1.png" alt=""/>
+							<img src="../img/need_img1.jpg" alt=""/>
 							<p>哪些明星项目不为啥东西将上档次想</p>
 						</a>
 					</li>
 					<li>
 						<a href="#">
-							<img src="../img/need_img1.png" alt=""/>
+							<img src="../img/need_img2.jpg" alt=""/>
 							<p>哪些明星项目不为啥东西将上档次想</p>
 						</a>
 					</li>