|
@@ -8,9 +8,12 @@ import '../css/thinktank.css';
|
|
|
import {
|
|
|
provinceList
|
|
|
} from './NewDicProvinceList';
|
|
|
-
|
|
|
-$(function(){
|
|
|
-
|
|
|
+import {
|
|
|
+ techFieldList,
|
|
|
+ getTechField
|
|
|
+} from './DicTechFieldList';
|
|
|
+
|
|
|
+$(function(){
|
|
|
//智库、智者切换
|
|
|
$('.zizone .col-md-6').click(function(){
|
|
|
$(this).addClass('actives').siblings().removeClass('actives')
|
|
@@ -27,9 +30,9 @@ $(function(){
|
|
|
//初始北京第一页新闻
|
|
|
$('.place_city ul li').eq(0).addClass('thon').siblings().removeClass('thon')
|
|
|
$.ajax({
|
|
|
- method: "post",
|
|
|
+ method: "get",
|
|
|
dataType: "json",
|
|
|
- //url: globalConfig.context + "/portal/news/list",
|
|
|
+ url: globalConfig.context + "/portal/news/list",
|
|
|
data: {
|
|
|
provinceId:1,
|
|
|
hot: 1,
|
|
@@ -37,40 +40,40 @@ $(function(){
|
|
|
type:5,
|
|
|
pageSize:4,
|
|
|
},
|
|
|
- success: function (data) {
|
|
|
- for(var i=0;i<4;i++){
|
|
|
- var totlepage=parseInt(data[i].totalCount/4);
|
|
|
- var id=data[i].id;
|
|
|
- var title = data[i].title; //标题
|
|
|
- var time = data[i].time; //日期
|
|
|
- var day=time.substring(7,2);//号
|
|
|
- var month=time.substring(0,7) //年、月
|
|
|
- var summary = data[i].summary;//简介
|
|
|
- var policy_li = '';
|
|
|
- if(totlepage=1){
|
|
|
- $('.policy ol').hide();
|
|
|
- };
|
|
|
- if(totlepage=2){
|
|
|
- $('.policy ul li').eq(2).hide();
|
|
|
- };
|
|
|
- for(var i=0;i<4;i++){
|
|
|
- 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').append(policy_li);
|
|
|
- }
|
|
|
- }
|
|
|
+ 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('') ;
|
|
|
+ }else{
|
|
|
+ $('.policy ol').show() ;
|
|
|
+ $('.policy ul').html(policy_li)
|
|
|
+ }
|
|
|
+ }.bind(this)
|
|
|
})
|
|
|
//点击省份时刷新页面新闻
|
|
|
- $('.place_city ul li').click(function(){
|
|
|
+ $('.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');
|
|
|
- console.log('省份:'+t_val,'页码:1')
|
|
|
+ var t_val=$(this).prop('value');
|
|
|
$.ajax({
|
|
|
- method: "post",
|
|
|
+ method: "get",
|
|
|
dataType: "json",
|
|
|
url: globalConfig.context + "/portal/news/list",
|
|
|
data: {
|
|
@@ -80,39 +83,43 @@ $(function(){
|
|
|
type:5,
|
|
|
pageSize:4,
|
|
|
},
|
|
|
- success: function (data) {
|
|
|
- for(var i=0;i<4;i++){
|
|
|
- var id=data[i].id
|
|
|
- var title = data[i].title; //标题
|
|
|
- var time = data[i].time; //日期
|
|
|
- var day=time.substring(7,2);//号
|
|
|
- var month=time.substring(0,7) //年、月
|
|
|
- var summary = data[i].summary;//简介
|
|
|
- $('.policy ul li').prop('value',id);
|
|
|
- $('.policy ul li').eq(i).find('.policy_time p').text(day);
|
|
|
- $('.policy ul li').eq(i).find('.policy_time time').text(month);
|
|
|
- $('.policy ul li').eq(i).find('.policy_details h4 a').text(title);
|
|
|
- $('.policy ul li').eq(i).find('.policy_details h4 p').text(summary);
|
|
|
- }
|
|
|
- }
|
|
|
+ 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('');
|
|
|
+ }else{
|
|
|
+ $('.policy ol').show();
|
|
|
+ $('.policy ul').html(policy_li);
|
|
|
+ }
|
|
|
+ }.bind(this)
|
|
|
})
|
|
|
});
|
|
|
- //智政新闻小点切换宽度设置及点击刷新
|
|
|
+ //智政新闻小点切换宽度设置及点击刷新
|
|
|
var cirle = $('.policy ol li').length;
|
|
|
- var cirleWidth = $('.policy ol li').outerWidth();
|
|
|
- var olWidth =cirle*(cirleWidth+5);
|
|
|
var ind_circle=0;
|
|
|
- $('.policy ol').width(olWidth);
|
|
|
- $('.policy ol li').click(function(){
|
|
|
+ $('.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');
|
|
|
- }
|
|
|
- console.log('省份:'+place_on,'页码:'+h_ind)
|
|
|
+ }
|
|
|
$.ajax({
|
|
|
- method: "post",
|
|
|
+ method: "get",
|
|
|
dataType: "json",
|
|
|
url: globalConfig.context + "/portal/news/list",
|
|
|
data: {
|
|
@@ -122,24 +129,23 @@ $(function(){
|
|
|
type:5,
|
|
|
pageSize:4,
|
|
|
},
|
|
|
- success: function (data) {
|
|
|
- for(var i=0;i<4;i++){
|
|
|
- var id=data[i].id
|
|
|
- var title = data[i].title; //标题
|
|
|
- var time = data[i].time; //日期
|
|
|
- var day=time.substring(7,2);//号
|
|
|
- var month=time.substring(0,7) //年、月
|
|
|
- var summary = data[i].summary;//简介
|
|
|
- $('.policy ul li').prop('value',id);
|
|
|
- $('.policy ul li').eq(i).find('.policy_time p').text(day);
|
|
|
- $('.policy ul li').eq(i).find('.policy_time time').text(month);
|
|
|
- $('.policy ul li').eq(i).find('.policy_details h4 a').text(title);
|
|
|
- $('.policy ul li').eq(i).find('.policy_details h4 p').text(summary);
|
|
|
- }
|
|
|
- }
|
|
|
+ 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='';
|
|
@@ -151,8 +157,7 @@ $(function(){
|
|
|
soption+="<option value='"+provinceList[i].id+"'>"+provinceList[i].name+"</option>";
|
|
|
};
|
|
|
$('.list_city').html(sol);
|
|
|
- $('#selt').html(soption);
|
|
|
-
|
|
|
+ $('#selt').html(soption);
|
|
|
//智政城市下拉切换
|
|
|
$('.list_city').hide();
|
|
|
$('.more_city .inp').click(function(){
|
|
@@ -171,10 +176,9 @@ $(function(){
|
|
|
$('.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');
|
|
|
- console.log('省份:'+p_val,'页码:1')
|
|
|
+ var p_val=$(this).attr('value');
|
|
|
$.ajax({
|
|
|
- method: "post",
|
|
|
+ method: "get",
|
|
|
dataType: "json",
|
|
|
url: globalConfig.context + "/portal/news/list",
|
|
|
data: {
|
|
@@ -184,24 +188,353 @@ $(function(){
|
|
|
type:5,
|
|
|
pageSize:4,
|
|
|
},
|
|
|
- success: function (data) {
|
|
|
- for(var i=0;i<4;i++){
|
|
|
- var id=data[i].id
|
|
|
- var title = data[i].title; //标题
|
|
|
- var time = data[i].time; //日期
|
|
|
- var day=time.substring(7,2);//号
|
|
|
- var month=time.substring(0,7) //年、月
|
|
|
- var summary = data[i].summary;//简介
|
|
|
- $('.policy ul li').prop('value',id);
|
|
|
- $('.policy ul li').eq(i).find('.policy_time p').text(day);
|
|
|
- $('.policy ul li').eq(i).find('.policy_time time').text(month);
|
|
|
- $('.policy ul li').eq(i).find('.policy_details h4 a').text(title);
|
|
|
- $('.policy ul li').eq(i).find('.policy_details h4 p').text(summary);
|
|
|
- }
|
|
|
- }
|
|
|
+ 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('')
|
|
|
+ }else{
|
|
|
+ $('.policy ol').show();
|
|
|
+ $('.policy ul').html(policy_li)
|
|
|
+ }
|
|
|
+ }.bind(this)
|
|
|
});
|
|
|
- });
|
|
|
+ });
|
|
|
+
|
|
|
//中央政策点击刷新
|
|
|
//初始化内容
|
|
|
-});
|
|
|
+
|
|
|
+ $.ajax({
|
|
|
+ method: "get",
|
|
|
+ dataType: "json",
|
|
|
+ url: globalConfig.context + "/portal/news/list",
|
|
|
+ data: {
|
|
|
+ provinceId:null,
|
|
|
+ hot: 1,
|
|
|
+ pageNo:1,
|
|
|
+ type:4,
|
|
|
+ pageSize:4,
|
|
|
+ },
|
|
|
+ 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
|
|
|
+ }
|
|
|
+ alert(t)
|
|
|
+ $.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) {
|
|
|
+ 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({
|
|
|
+ method: "get",
|
|
|
+ dataType: "json",
|
|
|
+ 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;
|
|
|
+
|
|
|
+
|
|
|
+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.avatarUploadHost + '/img/search_txt.png "/>',
|
|
|
+ '</div>',
|
|
|
+ '</li>' ,
|
|
|
+ ].join(''));
|
|
|
+ };
|
|
|
+ } else {
|
|
|
+ return;
|
|
|
+ };
|
|
|
+ $('#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>'
|
|
|
+ );
|
|
|
+ } else {
|
|
|
+ pageArr.push(
|
|
|
+ '<li class="pageNumber"><a href="#" value=' + i + ' >' + i + '</a></li>'
|
|
|
+ );
|
|
|
+ }
|
|
|
+ };
|
|
|
+ $('.pageNumber').remove();
|
|
|
+ $('.pagePre').after(pageArr.join(''));
|
|
|
+ },
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+ if (window.location.search) {
|
|
|
+ let theUrl = window.location.search
|
|
|
+ theKeyword = theUrl.substring(1, theUrl.length);
|
|
|
+ theKeyword = decodeURIComponent(theKeyword);
|
|
|
+ $('#searchInput').val(theKeyword);
|
|
|
+ };
|
|
|
+ loadDate();
|
|
|
+ var industryListArr = [],
|
|
|
+ industrySecondList = [],
|
|
|
+ industryThirdList = [];
|
|
|
+ industryListArr.push(['<li value="999" class="active">',
|
|
|
+ '<span>',
|
|
|
+ '不限',
|
|
|
+ '</span>',
|
|
|
+ '</li>',
|
|
|
+ ].join(''));
|
|
|
+ techFieldList.map(function (item) {
|
|
|
+ industryListArr.push(['<li value="' + item.value + '">',
|
|
|
+ '<span>',
|
|
|
+ item.label,
|
|
|
+ '</span>',
|
|
|
+ '</li>',
|
|
|
+ ].join(''));
|
|
|
+ });
|
|
|
+ if (industryListArr && industryListArr.length) {
|
|
|
+ $('#industryList').append(industryListArr.join(''));
|
|
|
+ };
|
|
|
+ $('#industryList').on('click', 'li', function () {
|
|
|
+ var theValue = this.value;
|
|
|
+ $(this).siblings("li").removeClass("active");
|
|
|
+ $(this).addClass("active");
|
|
|
+ industrySecondList = [];
|
|
|
+ industrySecondList.push(['<li value="999" class="active">',
|
|
|
+ '<span>',
|
|
|
+ '不限',
|
|
|
+ '</span>',
|
|
|
+ '</li>',
|
|
|
+ ].join(''));
|
|
|
+ if (theValue !== 999) {
|
|
|
+ $('#industrySecondBox').css("display", "block");
|
|
|
+ techFieldList.map(function (item) {
|
|
|
+ if (item.value == theValue) {
|
|
|
+ item.children.map(function (child) {
|
|
|
+ industrySecondList.push(['<li value="' + child.value + '">',
|
|
|
+ '<span>',
|
|
|
+ child.label,
|
|
|
+ '</span>',
|
|
|
+ '</li>',
|
|
|
+ ].join(''));
|
|
|
+ });
|
|
|
+ };
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ $('#industrySecondBox').css("display", "none");
|
|
|
+ };
|
|
|
+ if (industrySecondList && industrySecondList.length) {
|
|
|
+ $('#industrySecondList').empty();
|
|
|
+ $('#industrySecondList').append(industrySecondList.join(''));
|
|
|
+ };
|
|
|
+ $('#industryThirdBox').css("display", "none");
|
|
|
+ theFieldA = this.value;
|
|
|
+ theFieldB = 999;
|
|
|
+ theFieldC = 999;
|
|
|
+ loadDate();
|
|
|
+ });
|
|
|
+ $('#industrySecondList').on('click', 'li', function () {
|
|
|
+ var theValue = this.value;
|
|
|
+ $(this).siblings("li").removeClass("active");
|
|
|
+ $(this).addClass("active");
|
|
|
+ industryThirdList = [];
|
|
|
+ industryThirdList.push(['<li value="999" class="active">',
|
|
|
+ '<span>',
|
|
|
+ '不限',
|
|
|
+ '</span>',
|
|
|
+ '</li>',
|
|
|
+ ].join(''));
|
|
|
+ if (theValue !== 999) {
|
|
|
+ $('#industryThirdBox').css("display", "block");
|
|
|
+ techFieldList.map(function (itemA) {
|
|
|
+ if (itemA.value == theFieldA) {
|
|
|
+ itemA.children.map(function (itemB) {
|
|
|
+ if (itemB.value == theValue) {
|
|
|
+ itemB.children.map(function (itemC) {
|
|
|
+ industryThirdList.push(['<li value="' + itemC.value + '">',
|
|
|
+ '<span>',
|
|
|
+ itemC.label,
|
|
|
+ '</span>',
|
|
|
+ '</li>',
|
|
|
+ ].join(''));
|
|
|
+ })
|
|
|
+ }
|
|
|
+ });
|
|
|
+ };
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ $('#industryThirdBox').css("display", "none");
|
|
|
+ };
|
|
|
+ if (industryThirdList && industryThirdList.length) {
|
|
|
+ $('#industryThirdList').empty();
|
|
|
+ $('#industryThirdList').append(industryThirdList.join(''));
|
|
|
+ };
|
|
|
+ theFieldB = this.value;
|
|
|
+ theFieldC = 999;
|
|
|
+ loadDate();
|
|
|
+ });
|
|
|
+ $('#industryThirdList').on('click', 'li', function () {
|
|
|
+ $(this).siblings("li").removeClass("active");
|
|
|
+ $(this).addClass("active");
|
|
|
+ theFieldC = this.value;
|
|
|
+ loadDate();
|
|
|
+ });
|
|
|
+ $('#search').click(function () {
|
|
|
+ theKeyword = $('#searchInput').val();
|
|
|
+ loadDate();
|
|
|
+ });
|
|
|
+ $('.pagination').on('click', 'li', function (e) {
|
|
|
+ e.preventDefault();
|
|
|
+ if (this.className === 'pagePre') {
|
|
|
+ if (thePageNo > 1) {
|
|
|
+ thePageNo = 1;
|
|
|
+ loadDate(thePageNo);
|
|
|
+ }
|
|
|
+ } else if (this.className === 'pageNext') {
|
|
|
+ if (thePageNo < thePageLength) {
|
|
|
+ thePageNo = thePageLength;
|
|
|
+ loadDate(thePageNo);
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ var nextPageNo = $(this).children()[0].text;
|
|
|
+ if (thePageNo != nextPageNo) {
|
|
|
+ $(this).siblings("li").removeClass("active");
|
|
|
+ $(this).addClass("active");
|
|
|
+ thePageNo = nextPageNo;
|
|
|
+ loadDate(thePageNo);
|
|
|
+ };
|
|
|
+ };
|
|
|
+ });
|
|
|
+ $('#subscriberList').on('click', 'li', function () {
|
|
|
+ var theId = $(this).children(".userId")[0].value;
|
|
|
+ var theType = $(this).children(".userType")[0].value;
|
|
|
+ window.open(globalConfig.context + '/user/subscriberDetail.html?rid=' + theId + '&type=' + theType);
|
|
|
+ })
|
|
|
+})
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|