PageSourceSearch

https://www.ppzhan.com/JS/Version/2022/search.js?v=2024

js ppzhan.com collected 2026-10-07 22:50:34 UTC 2,814 bytes, 76 lines download raw bytes

1$(function(){
2//原 init 里的JS代码放在这里,, 调用方法
3var searchUrl = "https://www.ppzhan.com/product/t0/list_p0.html";
4					$(".select-bot").find("li").click(function() {
5						var str = $(this).text();
6						switch (str) {
7							case "产品":
8								searchUrl = "https://www.ppzhan.com/gongying/t0_p0/";
9								break;
10							case "供应":
11								searchUrl = "https://www.ppzhan.com/offer_sale/t0/list_p0.html";
12								break;
13							case "求购":
14								searchUrl = "https://www.ppzhan.com/offer_buy/t0/list_p0.html";
15								break;
16							case "招标":
17								searchUrl = "https://www.ppzhan.com/offer_tender/t0/list_p0.html";
18								break;
19							case "资讯":
20								searchUrl = "https://www.ppzhan.com/news/t0/list_p0.html";
21								break;
22							case "企讯":
23								searchUrl = "https://www.ppzhan.com/company_news/t0/list_p0.html";
24								break;
25							case "企业":
26								searchUrl = "https://www.ppzhan.com/company/a_t0/list_p0.html";
27								break;
28							case "展会":
29								searchUrl = "https://www.ppzhan.com/exhibition/t0/list_p0.html";
30								break;
31							case "专题":
32								searchUrl = "https://www.ppzhan.com/topics/t0/list.html";
33								break;
34							case "技术":
35								searchUrl = "https://www.ppzhan.com/tech_news/t0/list_p0.html";
36								break;
37							case "资料":
38								searchUrl = "https://www.ppzhan.com/technology/t0/list_p0.html";
39								break;
40							case "样本":
41								searchUrl = "https://www.ppzhan.com/sample/t0/list_p0.html";
42								break;
43							case "品牌":
44								searchUrl = "https://www.ppzhan.com/brands/t0/list_p0.html";
45								break;
46							case "直播":
47								searchUrl = "https://www.ppzhan.com/video/ct0/";
48								break;
49							case "视频":
50								searchUrl = "https://www.ppzhan.com/video/ht0/";
51								break;
52							case "人才":
53								searchUrl = "https://www.ppzhan.com/job/recruitment/t0/list_p0.html";
54								break;
55							default:
56								searchUrl = "https://www.ppzhan.com/product/t0/list_p0.html";
57								break;
58						}
59					});
60					utils.focusBlur($("input[name='K']"));
61					$("#searchForm").submit(function () {
62						var searchStr = $(this).find("input").val();
63						searchStr = searchStr.replace("多个关键词间加空格,如:法兰  电动球阀", "");
64						if (searchStr == "请输入关键字") {
65							searchStr = "";
66						}
67						if (searchUrl.indexOf('product') > -1) {
68							var classidBykey = Vivian.GetClassIDByKey(searchStr).value;//"0";
69							searchUrl = "/gongying/t" + classidBykey + "_p1/";
70						}
71						$(this).find("input").val(searchStr);
72						$(this).attr("method", "post");
73						$(this).attr("target", "_blank");
74						$(this).attr("action", searchUrl);
75					});
76})

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.