thinkTank.js 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675
  1. import '../css/bootstrap.less';
  2. import 'bootstrap/dist/js/bootstrap.js';
  3. import 'css/newMenu/public.css';
  4. import 'css/newMenu/header.css';
  5. import '../css/main_banner.css';
  6. import './public.js';
  7. import './main_banner.js';
  8. import '../css/thinkTank.css';
  9. import {
  10. provinceList
  11. } from './NewDicProvinceList';
  12. import {
  13. techFieldList,
  14. getTechField
  15. } from './DicTechFieldList';
  16. $(function() {
  17. //初始智者智政切换描点
  18. let hash=window.location.hash
  19. if(hash=="#zizone"){
  20. $('.zone_right').addClass('actives').siblings().removeClass('actives')
  21. $(".sanjiao").css({ left: "895px" });
  22. $('.wiseman_list').show();
  23. $('.tab_zizone').hide();
  24. }
  25. //智库、智者切换
  26. $('.zizone .col-md-6').click(function() {
  27. $(this).addClass('actives').siblings().removeClass('actives')
  28. })
  29. $('.zone_left').click(function() {
  30. $('.wiseman_list').hide();
  31. $('.tab_zizone').show();
  32. $('.searchs').hide();
  33. $(".sanjiao").animate({ left: "295px" });
  34. })
  35. $('.zone_right').click(function() {
  36. $('.wiseman_list').show();
  37. $('.tab_zizone').hide();
  38. $('.searchs').show();
  39. $(".sanjiao").animate({ left: "895px" });
  40. })
  41. //地方政策城市切换
  42. //初始北京第一页新闻
  43. $('.place_city ul li').eq(0).addClass('thon').siblings().removeClass('thon');
  44. var thePageNos = 1;
  45. var pageNos = 1;
  46. var thePageLengths = 1;
  47. var pageSizes = 4;
  48. var provinces;
  49. function datt(provinces, pageNos) {
  50. $.ajax({
  51. method: "get",
  52. dataType: "json",
  53. url: globalConfig.context + "/portal/news/list",
  54. data: {
  55. provinceId: provinces,
  56. hot: 1,
  57. pageNo: pageNos || 1,
  58. type: 5,
  59. pageSize: pageSizes
  60. },
  61. success: function(result) {
  62. var totlepage = Math.ceil(result.data.totalCount / 4);
  63. var policy_li = '';
  64. for(var i = 0; i < result.data.list.length; i++) {
  65. var id = result.data.list[i].id;
  66. var title = result.data.list[i].title; //标题
  67. var time = result.data.list[i].createTimeFormattedDate; //日期
  68. var day = time.substr(8, 2); //号
  69. var month = time.substr(0, 7) //年、月
  70. var summary = result.data.list[i].summary; //简介
  71. var totle = result.data.totalCount;
  72. var pages = Math.ceil(totle / 4);
  73. var sol = '';
  74. if(summary == null) {
  75. summary = ''
  76. };
  77. var srctt = globalConfig.context + '/portal/news/newsDetail.html?id=' + id;
  78. policy_li += "<li value='" + id + "'>" +
  79. "<div class='policy_time'><p>" +
  80. day + "</p><time>" + month + "</time></div><div class='policy_details'><h4><a href='" + srctt + "'>" +
  81. title + "</a></h4><p>" + summary +
  82. "</p><a href='" + srctt + "'>MORE+</a>" +
  83. "</div></li>"
  84. }
  85. if(result.data.list.length === 0) {
  86. $('.policy ol').hide();
  87. $('.policy ul').html('<div class="imgbg"></div>');
  88. } else {
  89. $('.policy ol').show();
  90. $('.policy ul').html(policy_li)
  91. }
  92. }.bind(this)
  93. })
  94. }
  95. datt(1, 1);
  96. //点击省份时刷新页面新闻
  97. $('.place_city ul li').click(function() {
  98. $(this).addClass('thon').siblings().removeClass('thon')
  99. $('.policy ol li').eq(0).addClass('active_of').siblings().removeClass('active_of');
  100. $('.more_city .inp').removeClass('thon');
  101. $('.more_city .inp').text('更多省份 +')
  102. //新闻刷新
  103. var t_val = $(this).prop('value');
  104. provinces = t_val;
  105. datt(provinces, 1);
  106. });
  107. //智政新闻小点切换宽度设置及点击刷新
  108. var cirle = $('.policy ol li').length;
  109. var ind_circle = 0;
  110. $('.policy ol li').click(function() {
  111. $(this).addClass('active_of').siblings().removeClass('active_of');
  112. var place_on = $('.place_city ul li.thon').prop('value')
  113. var h_ind = $(this).index() + 1;
  114. if(place_on == undefined) {
  115. place_on = $('.inp').attr('value');
  116. }
  117. provinces = place_on;
  118. pageNos = h_ind;
  119. $.ajax({
  120. method: "get",
  121. dataType: "json",
  122. url: globalConfig.context + "/portal/news/list",
  123. data: {
  124. provinceId: provinces,
  125. hot: 1,
  126. pageNo: pageNos || 1,
  127. type: 5,
  128. pageSize: pageSizes
  129. },
  130. success: function(result) {
  131. var totlepage = Math.ceil(result.data.totalCount / 4);
  132. var policy_li = '';
  133. for(var i = 0; i < result.data.list.length; i++) {
  134. var id = result.data.list[i].id;
  135. var title = result.data.list[i].title; //标题
  136. var time = result.data.list[i].createTimeFormattedDate; //日期
  137. var day = time.substr(8, 2); //号
  138. var month = time.substr(0, 7) //年、月
  139. var summary = result.data.list[i].summary; //简介
  140. var totle = result.data.totalCount;
  141. var pages = Math.ceil(totle / 4);
  142. var sol = '';
  143. var srctt = globalConfig.context + '/portal/news/newsDetail.html?id=' + id;
  144. policy_li += "<li value='" + id + "'>" +
  145. "<div class='policy_time'><p>" +
  146. day + "</p><time>" + month + "</time></div><div class='policy_details'><h4><a href='" + srctt + "'>" +
  147. title + "</a></h4><p>" + summary +
  148. "</p><a href='" + srctt + "'>MORE+</a>" +
  149. "</div></li>"
  150. }
  151. $('.policy ol').show();
  152. $('.policy ul').html(policy_li);
  153. if(result.data.list.length === 0) {
  154. $('.policy ul').html('<div class="imgbgs"></div>');
  155. }
  156. }.bind(this)
  157. })
  158. })
  159. //中央政策跳转
  160. $('.main_zizone ul').on('click', 'li', function() {
  161. var theId = $(this).attr('value');
  162. window.open(globalConfig.context + '/portal/news/newsDetail.html?id=' + theId);
  163. })
  164. //地方政策跳转
  165. //中央政策点击刷新
  166. //初始化内容
  167. function mids(provinces,pageNos){
  168. $.ajax({
  169. method: "get",
  170. dataType: "json",
  171. url: globalConfig.context + "/portal/news/list",
  172. data: {
  173. provinceId:null,
  174. hot: 1,
  175. pageNo:pageNos||1,
  176. type:4,
  177. pageSize:pageSizes
  178. },
  179. success: function (result) {
  180. thePageLengths = result.data.totalCount ? Math.ceil(result.data.totalCount / pageSizes) : 1;
  181. var policy_img ='';
  182. var totle=Math.ceil(result.data.totalCount/4);
  183. for(var i=0;i<result.data.list.length;i++){
  184. var id=result.data.list[i].id;
  185. var title = result.data.list[i].title; //标题
  186. var titleImg = result.data.list[i].titleImg; //图片
  187. if(titleImg==null){
  188. titleImg=''
  189. }
  190. var summary = result.data.list[i].summary;//简介
  191. if(summary==null){
  192. summary=''
  193. };
  194. var imgUrls=titleImg!=''?globalConfig.avatarHost + '/upload' +titleImg:globalConfig.avatarHost+ '/upload/default/news.jpg';
  195. policy_img+=
  196. "<li value='"+id+"'>"
  197. +"<img src='"+imgUrls+"' alt=''/>"
  198. +"<div class='zizone_text'><h4><a href='#'>"
  199. +title+"</a></h3><p>"
  200. +summary+"</p><a href='#'>MORE+</a>"
  201. +"<input type='hidden' value='"+totle+"'/></div></li>"
  202. }
  203. $('.main_zizone ul').html(policy_img)
  204. }.bind(this)
  205. })
  206. }
  207. mids(1,1)
  208. //点击时left
  209. var t=1;
  210. $('.zizone_left').click(function(){
  211. t--;
  212. if(t<=1){
  213. t=1
  214. }
  215. pageNos=t;
  216. mids(1,pageNos);
  217. })
  218. //点击时right
  219. $('.zizone_right').click(function(){
  220. var tot=$('.main_zizone ul').find('input').val()
  221. t++;
  222. if(t>tot){
  223. t=tot
  224. }
  225. pageNos=t;
  226. mids(1,pageNos);
  227. })
  228. //智者数据交互
  229. var theKeyword, theFieldA, theFieldB, theFieldC,province,international;
  230. var thePageNo = 1,
  231. thePageLength = 1,
  232. pageSize = 12,
  233. theType = 0;
  234. function loadDate(pageNo) {
  235. theFieldA = theFieldA != 999 ? theFieldA : undefined;
  236. theFieldB = theFieldB != 999 ? theFieldB : undefined;
  237. theFieldC = theFieldC != 999 ? theFieldC : undefined;
  238. $.ajax({
  239. method: "get",
  240. dataType: "json",
  241. url: globalConfig.context + "/portal/search/subscriberList",
  242. data: {
  243. province:province,
  244. pageNo: pageNo || 1,
  245. pageSize: pageSize,
  246. type: theType,
  247. name: theKeyword,
  248. field: theFieldA ? ((theFieldA || '') + (theFieldB ? (',' + theFieldB) : '') + (theFieldC ? (',' + theFieldC) : '')) : undefined,
  249. international:international != 999 ? international : undefined
  250. },
  251. success: function (data) {
  252. var theArr = [];
  253. if (data.data && data.data.list) {
  254. for (let i = 0; i < data.data.list.length; i++) {
  255. let thisdata = data.data.list[i];
  256. let achievementNumText=(thisdata.achievementNum==null)?"":thisdata.achievementNum;
  257. let engagedField = thisdata.engagedField ? thisdata.engagedField.split(',') : [];
  258. if(thisdata.username==null||thisdata.username==''){
  259. thisdata.username='佚名'
  260. }
  261. var imgUrl=thisdata.personPortraitUrl!=null?globalConfig.avatarHost + '/upload' +thisdata.personPortraitUrl:globalConfig.avatarHost+ '/upload/default/person.jpg';
  262. theArr.push([
  263. '<li value="'+thisdata.uid+'">',
  264. '<img src="'+ imgUrl+'" />',
  265. '<div class="list_text">',
  266. '<p class="bulr">'+ thisdata.username + '</p>',
  267. '<p class="orange">' + (thisdata.position || '未知职位') + '</p>',
  268. '<p class="text_on">' + achievementNumText + '</p>',
  269. '</div>',
  270. '<div class="shadow_text">',
  271. '<p class="bulr">'+ thisdata.username + '</p>',
  272. '<p class="orange">' + (thisdata.position || '未知职位') + '</p>',
  273. '<p class="text_on">' + achievementNumText+ '</p>',
  274. '<img src="' + globalConfig.portalHost + '/img/search_txt.png "/>',
  275. '</div>',
  276. '</li>' ,
  277. ].join(''));
  278. };
  279. } else {
  280. return;
  281. };
  282. $('#subscriberList').empty();
  283. $('#subscriberList').append(theArr.join(''));
  284. if(data.data.list.length===0){
  285. $('#subscriberList').html('<div class="imgbg"></div>') ;
  286. }
  287. $('.totalCount').html("共" + data.data.totalCount + "条数据");
  288. thePageLength = data.data.totalCount ? Math.ceil(data.data.totalCount / pageSize) : 1;
  289. var pageArr = [],
  290. firstNo = 1,
  291. endNo = 5;
  292. if (thePageNo > 3) {
  293. firstNo = thePageNo - 2;
  294. endNo = Math.min((Number(thePageNo) + 2), thePageLength);
  295. } else {
  296. endNo = Math.min(thePageLength, 5);
  297. };
  298. for (let i = firstNo; i <= endNo; i++) {
  299. if (i == thePageNo) {
  300. pageArr.push(
  301. '<li class="pageNumber active"><a href="#" value=' + i + ' >' + i + '</a></li>'
  302. );
  303. } else {
  304. pageArr.push(
  305. '<li class="pageNumber"><a href="#" value=' + i + ' >' + i + '</a></li>'
  306. );
  307. }
  308. };
  309. $('.pageNumber').remove();
  310. $('.pagePre').after(pageArr.join(''));
  311. }
  312. });
  313. }
  314. //搜索城市下拉
  315. var addlength = provinceList.length;
  316. var soption = '';
  317. var sol = '';
  318. for(var i = 0; i < addlength; i++) {
  319. sol += "<p value='" + provinceList[i].id + "'>" + provinceList[i].name + "</p>";
  320. };
  321. for(var i = 0; i < addlength; i++) {
  322. soption += "<option value='" + provinceList[i].id + "'>" + provinceList[i].name + "</option>";
  323. };
  324. $('.list_city').html(sol);
  325. $('#selt').html(soption);
  326. //智政城市下拉切换
  327. $('.list_city').hide();
  328. $('.more_city .inp').click(function() {
  329. $('.list_city').slideToggle(500)
  330. })
  331. $('.more_city').mouseleave(function() {
  332. $('.list_city').hide();
  333. })
  334. //选择城市及新闻页面刷新
  335. $('.list_city p').click(function() {
  336. var ptxt = $(this).text();
  337. var pval = $(this).attr('value');
  338. $('.more_city .inp').text(ptxt);
  339. $('.more_city .inp').attr('value', pval);
  340. $('.list_city').hide();
  341. $('.more_city .inp').addClass('thon');
  342. $('.place_city ul li').removeClass('thon');
  343. $('.policy ol li').eq(0).addClass('active_of').siblings().removeClass('active_of');
  344. var p_val = $(this).attr('value');
  345. provinces = p_val;
  346. datt(provinces, 1);
  347. });
  348. //中央政策点击刷新
  349. //初始化内容
  350. function mids(provinces, pageNos) {
  351. $.ajax({
  352. method: "get",
  353. dataType: "json",
  354. url: globalConfig.context + "/portal/news/list",
  355. data: {
  356. provinceId: null,
  357. hot: 1,
  358. pageNo: pageNos || 1,
  359. type: 4,
  360. pageSize: pageSizes
  361. },
  362. success: function(result) {
  363. thePageLengths = result.data.totalCount ? Math.ceil(result.data.totalCount / pageSizes) : 1;
  364. var policy_img = '';
  365. var totle = Math.ceil(result.data.totalCount / 4);
  366. for(var i = 0; i < result.data.list.length; i++) {
  367. var id = result.data.list[i].id;
  368. var title = result.data.list[i].title; //标题
  369. var titleImg = result.data.list[i].titleImg; //图片
  370. if(titleImg == null) {
  371. titleImg = ''
  372. }
  373. var summary = result.data.list[i].summary; //简介
  374. if(summary == null) {
  375. summary = ''
  376. };
  377. var imgUrls = titleImg != '' ? globalConfig.avatarHost + '/upload' + titleImg : globalConfig.avatarHost + '/upload/default/news.jpg';
  378. policy_img +=
  379. "<li value='" + id + "'>" +
  380. "<img src='" + imgUrls + "' alt=''/>" +
  381. "<div class='zizone_text'><h4><a href='#'>" +
  382. title + "</a></h3><p>" +
  383. summary + "</p><a href='#'>MORE+</a>" +
  384. "<input type='hidden' value='" + totle + "'/></div></li>"
  385. }
  386. $('.main_zizone ul').html(policy_img)
  387. }.bind(this)
  388. })
  389. }
  390. mids(1, 1)
  391. //点击时left
  392. var t = 1;
  393. $('.zizone_left').click(function() {
  394. t--;
  395. if(t <= 1) {
  396. t = 1
  397. }
  398. pageNos = t;
  399. mids(1, pageNos);
  400. })
  401. //点击时right
  402. $('.zizone_right').click(function() {
  403. var tot = $('.main_zizone ul').find('input').val()
  404. t++;
  405. if(t > tot) {
  406. t = tot
  407. }
  408. pageNos = t;
  409. mids(1, pageNos);
  410. })
  411. //智者数据交互
  412. var theKeyword, theFieldA, theFieldB, theFieldC, province, international;
  413. var thePageNo = 1,
  414. thePageLength = 1,
  415. pageSize = 12,
  416. theType = 0;
  417. function loadDate(pageNo) {
  418. theFieldA = theFieldA != 999 ? theFieldA : undefined;
  419. theFieldB = theFieldB != 999 ? theFieldB : undefined;
  420. theFieldC = theFieldC != 999 ? theFieldC : undefined;
  421. $.ajax({
  422. method: "get",
  423. dataType: "json",
  424. url: globalConfig.context + "/portal/search/subscriberList",
  425. data: {
  426. province: province,
  427. pageNo: pageNo || 1,
  428. pageSize: pageSize,
  429. type: theType,
  430. name: theKeyword,
  431. field: theFieldA ? ((theFieldA || '') + (theFieldB ? (',' + theFieldB) : '') + (theFieldC ? (',' + theFieldC) : '')) : undefined,
  432. international: international != 999 ? international : undefined
  433. },
  434. success: function(data) {
  435. var theArr = [];
  436. if(data.data && data.data.list) {
  437. for(let i = 0; i < data.data.list.length; i++) {
  438. let thisdata = data.data.list[i];
  439. let achievementNumText=(thisdata.achievementNum==null)?"":thisdata.achievementNum;
  440. let engagedField = thisdata.engagedField ? thisdata.engagedField.split(',') : [];
  441. if(thisdata.username == null || thisdata.username == '') {
  442. thisdata.username = '佚名'
  443. }
  444. var imgUrl = thisdata.personPortraitUrl != null ? globalConfig.avatarHost + '/upload' + thisdata.personPortraitUrl : globalConfig.avatarHost + '/upload/default/person.jpg';
  445. theArr.push([
  446. '<li value="' + thisdata.uid + '">',
  447. '<img src="' + imgUrl + '" />',
  448. '<div class="list_text">',
  449. '<p class="bulr">' + thisdata.username + '</p>',
  450. '<p class="orange">' + (thisdata.position || '未知职位') + '</p>',
  451. '<p class="text_on">' + achievementNumText + '</p>',
  452. '</div>',
  453. '<div class="shadow_text">',
  454. '<p class="bulr">' + thisdata.username + '</p>',
  455. '<p class="orange">' + (thisdata.position || '未知职位') + '</p>',
  456. '<p class="text_on">' + achievementNumText + '</p>',
  457. '<img src="' + globalConfig.portalHost + '/img/search_txt.png "/>',
  458. '</div>',
  459. '</li>',
  460. ].join(''));
  461. };
  462. } else {
  463. return;
  464. };
  465. $('#subscriberList').empty();
  466. $('#subscriberList').append(theArr.join(''));
  467. if(data.data.list.length === 0) {
  468. $('#subscriberList').html('<div class="imgbg"></div>');
  469. }
  470. $('.totalCount').html("共" + data.data.totalCount + "条数据");
  471. thePageLength = data.data.totalCount ? Math.ceil(data.data.totalCount / pageSize) : 1;
  472. var pageArr = [],
  473. firstNo = 1,
  474. endNo = 5;
  475. if(thePageNo > 3) {
  476. firstNo = thePageNo - 2;
  477. endNo = Math.min((Number(thePageNo) + 2), thePageLength);
  478. } else {
  479. endNo = Math.min(thePageLength, 5);
  480. };
  481. for(let i = firstNo; i <= endNo; i++) {
  482. if(i == thePageNo) {
  483. pageArr.push(
  484. '<li class="pageNumber active"><a href="#" value=' + i + ' >' + i + '</a></li>'
  485. );
  486. } else {
  487. pageArr.push(
  488. '<li class="pageNumber"><a href="#" value=' + i + ' >' + i + '</a></li>'
  489. );
  490. }
  491. };
  492. $('.pageNumber').remove();
  493. $('.pagePre').after(pageArr.join(''));
  494. }
  495. });
  496. }
  497. if(window.location.search) {
  498. let theUrl = window.location.search
  499. theKeyword = theUrl.substring(1, theUrl.length);
  500. theKeyword = decodeURIComponent(theKeyword);
  501. $('#searchInput').val(theKeyword);
  502. };
  503. loadDate();
  504. var industryListArr = [],
  505. industrySecondList = [],
  506. industryThirdList = [];
  507. industryListArr.push(['<li value="999" class="active">',
  508. '<span>',
  509. '不限',
  510. '</span>',
  511. '</li>',
  512. ].join(''));
  513. techFieldList.map(function(item) {
  514. industryListArr.push(['<li value="' + item.value + '">',
  515. '<span>',
  516. item.label,
  517. '</span>',
  518. '</li>',
  519. ].join(''));
  520. });
  521. if(industryListArr && industryListArr.length) {
  522. $('#industryList').append(industryListArr.join(''));
  523. };
  524. $('#industryList').on('click', 'li', function() {
  525. var theValue = this.value;
  526. $(this).siblings("li").removeClass("active");
  527. $(this).addClass("active");
  528. industrySecondList = [];
  529. industrySecondList.push(['<li value="999" class="active">',
  530. '<span>',
  531. '不限',
  532. '</span>',
  533. '</li>',
  534. ].join(''));
  535. if(theValue !== 999) {
  536. $('#industrySecondBox').css("display", "block");
  537. techFieldList.map(function(item) {
  538. if(item.value == theValue) {
  539. item.children.map(function(child) {
  540. industrySecondList.push(['<li value="' + child.value + '">',
  541. '<span>',
  542. child.label,
  543. '</span>',
  544. '</li>',
  545. ].join(''));
  546. });
  547. };
  548. });
  549. } else {
  550. $('#industrySecondBox').css("display", "none");
  551. };
  552. if(industrySecondList && industrySecondList.length) {
  553. $('#industrySecondList').empty();
  554. $('#industrySecondList').append(industrySecondList.join(''));
  555. };
  556. $('#industryThirdBox').css("display", "none");
  557. theFieldA = this.value;
  558. theFieldB = 999;
  559. theFieldC = 999;
  560. loadDate();
  561. });
  562. $('#industrySecondList').on('click', 'li', function() {
  563. var theValue = this.value;
  564. $(this).siblings("li").removeClass("active");
  565. $(this).addClass("active");
  566. industryThirdList = [];
  567. industryThirdList.push(['<li value="999" class="active">',
  568. '<span>',
  569. '不限',
  570. '</span>',
  571. '</li>',
  572. ].join(''));
  573. if(theValue !== 999) {
  574. $('#industryThirdBox').css("display", "block");
  575. techFieldList.map(function(itemA) {
  576. if(itemA.value == theFieldA) {
  577. itemA.children.map(function(itemB) {
  578. if(itemB.value == theValue) {
  579. itemB.children.map(function(itemC) {
  580. industryThirdList.push(['<li value="' + itemC.value + '">',
  581. '<span>',
  582. itemC.label,
  583. '</span>',
  584. '</li>',
  585. ].join(''));
  586. })
  587. }
  588. });
  589. };
  590. });
  591. } else {
  592. $('#industryThirdBox').css("display", "none");
  593. };
  594. if(industryThirdList && industryThirdList.length) {
  595. $('#industryThirdList').empty();
  596. $('#industryThirdList').append(industryThirdList.join(''));
  597. };
  598. theFieldB = this.value;
  599. theFieldC = 999;
  600. loadDate();
  601. });
  602. $('#industryThirdList').on('click', 'li', function() {
  603. $(this).siblings("li").removeClass("active");
  604. $(this).addClass("active");
  605. theFieldC = this.value;
  606. loadDate();
  607. });
  608. $('.searchs button').click(function(e) {
  609. e.preventDefault();
  610. theKeyword = $('#search_on input').val();
  611. province = $('#selt option:checked').attr('value');
  612. province = province
  613. loadDate();
  614. });
  615. $('.pagination').on('click', 'li', function(e) {
  616. e.preventDefault();
  617. if(this.className === 'pagePre') {
  618. if(thePageNo > 1) {
  619. thePageNo = 1;
  620. loadDate(thePageNo);
  621. }
  622. } else if(this.className === 'pageNext') {
  623. if(thePageNo < thePageLength) {
  624. thePageNo = thePageLength;
  625. loadDate(thePageNo);
  626. }
  627. } else {
  628. var nextPageNo = $(this).children()[0].text;
  629. if(thePageNo != nextPageNo) {
  630. $(this).siblings("li").removeClass("active");
  631. $(this).addClass("active");
  632. thePageNo = nextPageNo;
  633. loadDate(thePageNo);
  634. };
  635. };
  636. });
  637. $('#subscriberList').on('click', 'li', function() {
  638. var theId = $(this).attr('value');
  639. window.open(globalConfig.context + '/portal/subscriberDetail.html?uid=' + theId + '&type=0');
  640. });
  641. //是否国际单选
  642. $('#isInt').prop('checked', false);
  643. $('#selectInt li:first-child').click(function() {
  644. $(this).addClass('active');
  645. $('#isInt').prop('checked', false);
  646. $('#noInt').prop('checked', false);
  647. $('#noInt,#isInt').parent().addClass('demand').removeClass('patent');
  648. international = null;
  649. loadDate();
  650. })
  651. $('#isInt').click(function() {
  652. $('#selectInt li').eq(0).removeClass('active')
  653. $(this).prop('checked', true);
  654. $(this).parent().addClass('patent').removeClass('demand');
  655. $('#noInt').attr('checked', false);
  656. $('#noInt').parent().addClass('demand').removeClass('patent');
  657. international = 1;
  658. loadDate();
  659. })
  660. $('#noInt').click(function() {
  661. $('#selectInt li').eq(0).removeClass('active')
  662. $(this).prop('checked', true);
  663. $(this).parent().addClass('patent').removeClass('demand');
  664. $('#isInt').attr('checked', false);
  665. $('#isInt').parent().addClass('demand').removeClass('patent');
  666. international = 0;
  667. loadDate();
  668. })
  669. })