PageSourceSearch

https://www.changshu.gov.cn/search5/static/js/common/domClick.js

js changshu.gov.cn collected 2026-09-25 06:55:11 UTC 10,606 bytes, 350 lines download raw bytes

1//分页
2function showPagetion() {
3
4    if (Number(resultCount) == 0) {
5        lrFixFooter("#footer");
6        return;
7    }
8    var visible_pages = Math.ceil(resultCount / pageSize);
9    if (visible_pages == 1) {
10        visible_pages = 1;
11    }
12
13    var totalPage = Math.ceil(resultCount / pageSize);
14    if (totalPage == 1) {
15        totalPage = 1;
16    }
17    // 默认10页
18    if( pageWidth == '0'){
19        if (visible_pages >= 12) {
20            visible_pages = 12;
21        }
22    }else {
23        if (visible_pages >= 9) {
24            visible_pages = 9;
25        }
26    }
27    var current_page = 1;
28    // 默认首页
29    if (pageNum != null) {
30        current_page = Number(pageNum) + 1;
31    }
32    isPageLoad = false;
33    // 分页插件
34    $('#pageInfo').jqPaginator({
35        totalPages: totalPage,
36        visiblePages: visible_pages,
37        currentPage: current_page,
38        pageSize: pageSize,
39        prev: '<li class="prev"><a  href="javascript:;"><< '+conditionArrayResult[87]+'<i></i></a></li>',
40        next: '<li class="next"><a  href="javascript:;">'+conditionArrayResult[88]+ '>><i></i></a></li>',
41     //   prev: '<li class="prev"><a  href="javascript:;"><< fuc<i></i></a></li>',
42     //   next: '<li class="next"><a  href="javascript:;">fuck>><i></i></a></li>',
43        page: '<li class="page"><a  href="javascript:;">{{page}}</a></li>',
44        onPageChange: function (num, type) {
45            if (isPageLoad) {
46                // 配置子站群
47                $("#sonSiteCode").val(sonSiteCode);
48                $("#pageNum").val(num - 1);
49                // 搜索处理
50                searchProcessJudge();
51            } else {
52            }
53        }
54    });
55
56    //版权信息一直保持在底部
57    lrFixFooter("#footer");
58
59}
60//分页
61function showPagetionWithPageSize(pageSizeInput) {
62
63    if (Number(resultCount) == 0) {
64        lrFixFooter("#footer");
65        return;
66    }
67    var visible_pages = Math.ceil(resultCount / pageSizeInput);
68    if (visible_pages == 1) {
69        visible_pages = 1;
70    }
71
72    var totalPage = Math.ceil(resultCount / pageSizeInput);
73    if (totalPage == 1) {
74        totalPage = 1;
75    }
76    // 默认10页
77    if( pageWidth == '0'){
78        if (visible_pages >= 12) {
79            visible_pages = 12;
80        }
81    }else {
82        if (visible_pages >= 9) {
83            visible_pages = 9;
84        }
85    }
86    var current_page = 1;
87    // 默认首页
88    if (pageNum != null) {
89        current_page = Number(pageNum) + 1;
90    }
91    isPageLoad = false;
92    // 分页插件
93    $('#pageInfo').jqPaginator({
94        totalPages: totalPage,
95        visiblePages: visible_pages,
96        currentPage: current_page,
97        pageSize: pageSizeInput,
98        prev: '<li class="prev"><a  href="javascript:;"><< '+conditionArrayResult[87]+'<i></i></a></li>',
99        next: '<li class="next"><a  href="javascript:;">'+conditionArrayResult[88]+ '>><i></i></a></li>',
100        page: '<li class="page"><a  href="javascript:;">{{page}}</a></li>',
101        onPageChange: function (num, type) {
102            if (isPageLoad) {
103                // 配置子站群
104                $("#sonSiteCode").val(sonSiteCode);
105                $("#pageNum").val(num - 1);
106                // 搜索处理
107                searchProcessJudge();
108            } else {
109            }
110        }
111    });
112
113    //版权信息一直保持在底部
114    lrFixFooter("#footer");
115
116}
117//政策文件分页
118function showPagetion2() {
119    if (Number(resultCount) == 0) {
120        return;
121    }
122    var visible_pages = Math.ceil(resultCount / pageSize);
123    if (visible_pages == 1) {
124        visible_pages = 1;
125    }
126
127    var totalPage = Math.ceil(resultCount / pageSize);
128    if (totalPage == 1) {
129        totalPage = 1;
130    }
131    // 默认5页
132    if (visible_pages >= 10) {
133        visible_pages = 10;
134    }
135    var current_page = 1;
136    // 默认首页
137    if (pageNum != null) {
138        current_page = Number(pageNum) + 1;
139    }
140    isPageLoad = false;
141    // 分页插件
142    $('#pagination1').jqPaginator({
143        totalPages: totalPage,
144        visiblePages: visible_pages,
145        currentPage: current_page,
146        pageSize: pageSize,
147        disableClass:"disabled",
148        prev: '<li class="prev"><a href="javascript:;">上一页<i></i></a></li>',
149        next: '<li class="next"><a href="javascript:;">下一页<i></i></a></li>',
150        page: '<li class="page"><a href="javascript:;">{{page}}</a></li>',
151        onPageChange: function (num, type) {
152            if (isPageLoad) {
153                $("#pageNum").val(num - 1);
154                // 搜索处理
155                searchProcessJudge();
156            }
157        }
158    });
159}
160
161/**
162 * 取消地域搜索
163 */
164function cancelAreaSearch() {
165    $("#areaSearchFlag").val(0);
166    searchProcessJudge()
167}
168
169/**
170 * 取消栏目地域搜索
171 */
172function cancelCitySearch() {
173    $("#citySearchFlag").val(-1);
174    searchProcessJudge()
175}
176
177//切换栏目时进行搜索
178function changeColumn(_this) {
179    $("#searchStamp").val('0');
180    if($(_this).parent().parent().parent().hasClass("sortListCon")){
181
182        $(".timeSortBy .conPattern li").removeClass("active");
183        $(_this).parent().addClass("active");
184    }else {
185        $("#showTitle li ").removeClass("on");
186        $(_this).parent().addClass("on");
187    }
188    $("#showTitl li ").removeClass("on");
189
190    //给滚动导航栏选中栏目赋值
191    //选中的栏目值
192    var selectColumnId = $(_this).attr("id");
193    $("#showTitle li a").each(function () {
194        if ($(this).attr("id") == selectColumnId) {
195            $("#showTitle li").removeClass("on");
196            $(this).parent().addClass("on");
197        }
198    });
199
200   // $("#" + selectColumnId).parent().addClass("on");
201
202    $('input[name="aggsResult"]').each(function () {
203        $(this).val("");
204    })
205    $('#column').val($(_this).attr("id"));
206    if(siteCode=="N000019107") { //广州交易所
207        $("#phoneColumn").find('li').css("border-bottom","none");
208        $(_this).parent().parent().css("border-bottom"," 2px solid");
209        hideMenus();
210    }
211    var searchType = $("#searchStamp").val();
212    if (searchType == 2) {
213        $("#searchStamp").val(0);
214    }
215    $('#topicalValue').val(0);
216    $('#docNameCommonValue').val(0);
217    $("#sonSiteCode").val("");
218
219    // 切换栏目还原筛选条件
220    $("#timeRangeValue").val('0');
221    $("#timeRange").html(conditionArrayResult[16]);
222
223    $("#fileTypeRangeValue").val('0');
224    $("#fileTypeRange").html(conditionArrayResult[10]);
225
226    //切换下拉回本站
227    changesearchDowmMenu();
228    searchProcessJudge('','','');
229}
230
231
232/**
233 * 点击站群搜索显示指定站点下的内容
234 * @param searchType 搜索类型 0: 高级搜索 1:普通搜索
235 * @param siteCode 网站标识码
236 * @constructor
237 */
238function SearchSiteOnly(searchType, siteCode) {
239    $("#sonSiteCode").val(siteCode);
240    if (searchType == 0) {
241        advanceSearchProcess(false);
242    } else if (searchType == 1) {
243        searchProcess("", 1, "", false);
244    }
245}
246
247function imgClick() {
248    if ($("#allSearchWord").val() != "") {
249        $("#allSearchWord").val('')
250        $("#allSearchWord").attr('placeholder','语音输入摸式,点击右侧图标退出')
251        $("#videoWord").val('')
252        $("#imgVideo").attr('src', "../static/images/video1.png")
253        $("#imgVideo").attr('class', 'imgvideo')
254        $("#videoWord").focus()
255    }else if($("#allSearchWord").attr('placeholder') == "语音输入摸式,点击右侧图标退出"){
256        $("#allSearchWord").val(allSearchWord)
257        $("#allSearchWord").attr('placeholder','')
258        $("#imgVideo").attr('src', "../static/images/video.png")
259        $("#imgVideo").removeClass('imgvideo')
260    }else if($("#allSearchWord").attr('placeholder') == ""){
261        allSearchWord = $("#allSearchWord").val()
262        $("#allSearchWord").val('')
263        $("#allSearchWord").attr('placeholder','语音输入摸式,点击右侧图标退出')
264        $("#videoWord").val('')
265        $("#imgVideo").attr('src', "../static/images/video1.png")
266        $("#imgVideo").attr('class', 'imgvideo')
267        $("#videoWord").focus()
268    }
269}
270
271
272function voiceSearch(target) {
273    $(".mask").show();
274    $(".dialogVoiceSearch").show();
275    startRecording();
276}
277
278/**
279 *  站群右侧数量为0提示
280 */
281function noDataRemind(obj,code){
282    var htmlVal=$("#"+code).find('span').html();
283    ///htmlVal=htmlVal.replace(/\s*/g,"");
284    if(htmlVal){
285        searchProcess('', 0, '', '', '',code);
286    }
287}
288
289
290/**
291 *刪除cookie最近搜索记录
292 * @param name
293 */
294function deleteCookieByName(name){
295    //var name="recentSearchRecords";
296    var date=new Date();
297    date.setTime(date.getTime()-10000);
298    document.cookie=name+"=; expire="+date.toGMTString()+"; path=/";
299    $("#recentSearchOrder").html('');
300    $("#clearAll").hide();
301}
302
303/*初始化Cookie*/
304function setUserCookie(word,time,uc){
305    var searchUseTime=0;
306    if(stringNotEmpty(time)){
307        searchUseTime= time;
308    }
309    var searchTime = dateFtt("yyyyMMddhhmmss",new Date(lastVisitTime));
310    var ucount = uc;
311    // 判断是否有查看记录
312    var userSearch;
313    if (ucount == 1) {
314        setCookie("firstWord",word);
315        userSearch = {
316            siteCode: siteCode,
317            column: column,
318            uc: ucount,
319            firstWord: getCookie("firstWord"),
320            searchWord: word,
321            searchTime:searchTime,
322            searchUseTime:searchUseTime
323        };
324    } else {
325        if (null === getCookie("firstWord")) {
326            setCookie("firstWord", word)
327            userSearch = {
328                siteCode: siteCode,
329                column: column,
330                uc: ucount,
331                firstWord: "",
332                searchWord: word,
333                searchTime:searchTime,
334                searchUseTime:searchUseTime
335            };
336        } else {
337            setCookie("firstWord", getCookie("firstWord"))
338            userSearch = {
339                siteCode: siteCode,
340                column: column,
341                uc: ucount,
342                firstWord: getCookie("firstWord"),
343                searchWord: word,
344                searchTime:searchTime,
345                searchUseTime:searchUseTime
346            };
347        }
348    }
349    SubCookieUtil.setAll("userSearch", userSearch);
350}

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.