PageSourceSearch

https://dsz.gov.cn/default/xhtml/static/2023/js/zxft_data.js

js dsz.gov.cn collected 2026-10-02 17:05:11 UTC 2,155 bytes, 62 lines download raw bytes

1
2// 获取在线访谈列表数据 isCl 1-处理数据 为空,则返回未经处理的list
3function getZxftlist(_params,isCl,currpage,pagesize){
4  var siteId = websiteCode;
5  var params = {
6    currentPage: currpage, // 当前页码
7    number: pagesize, // 获取条数
8    type: 1, // 1 在线访谈 2网上直播
9    state: "",//状态(1、预告中进行中,3、已结束)
10  };
11
12  if(_params.currentPage){ params.currentPage = _params.currentPage; }
13  if(_params.number){ params.number = _params.number; }
14  if(_params.type){ params.type = _params.type; }
15  if(_params.state){ params.state = _params.state; }
16  
17  var zxftList = [];
18  var total='';
19
20  $.ajax({
21    url: '/u/interview/listAjax/'+siteId,
22    type: "post",
23    dataType: 'json',
24    data: params,
25    async: false,
26    success: function(res) {
27      // console.log('zxftData:',res);
28      if(res && res.code == 0 && res.data){
29        var data = res.data;
30        total = res.data.allRow;
31        if(data.list && data.list.length > 0){
32          var url='';
33          if(isCl){
34            zxftList = data.list;
35            $.each(zxftList,function(index, item) {
36              var ivArr = item.interviewDate.split('-');
37			        url = "/" + websiteCode + "/zxft/zxft_detail.shtml?id=" + item.id;
38              if(item.guest==null){
39                item.guest=' '
40              }
41              item.l_guest =  item.guest.replace(/<br>|<\/br>|<br\/>/gi, "&nbsp;&nbsp;&nbsp;&nbsp;");
42              item.l_url = item.zburl || url;
43              item.l_ym = ivArr[0]+'年'+ivArr[1]+'月';
44              item.l_date = ivArr[2];
45              item.l_ymdt = ivArr[0]+'年'+ivArr[1]+'月'+ivArr[2]+'日 '+item.startDate.substring(0,5)+'-'+item.endDate.substring(0,5);
46            });
47          }else{
48            zxftList = data;
49            $.each(zxftList.list,function(index, item) {
50              url = "/" + websiteCode + "/zxft/zxft_detail.shtml?id=" + item.id
51              item.l_url = item.zburl || url;
52            });
53          }
54
55        }
56      }
57    }
58
59  });
60  return {zxftList:zxftList,total:total};
61}
62

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.