PageSourceSearch

https://oss.rfidworld.com.cn/RFID23/js/RFID.js?8f4d3774-13a2-4285-8e64-b48def10fad0

js rfidworld.com.cn collected 2026-09-26 08:24:40 UTC 16,098 bytes, 298 lines download raw bytes

1var APIDOMAIN = "https://api.rfidworld.com.cn/", USERDOMAIN = "https://user.rfidworld.com.cn/", NEWSDOMAIN ="https://news.rfidworld.com.cn/";
2$(function () {
3    var OurGroupSitesHTML = '<div class="tp-item-logo"><a href="http://www.ulinkmedia.cn/"target="_blank"><img src="https://oss.rfidworld.com.cn/RFID23/Img/wlcm.svg"></a></div><div class="tp-item-logo"><a href="http://www.iotworld.com.cn/"target="_blank"><img src="https://oss.rfidworld.com.cn/RFID23/Img/wlsj.svg"></a></div><div class="tp-item-logo"><a href="http://www.iotworld.com.cn/AIOT.aspx"target="_blank"><img src="https://oss.rfidworld.com.cn/RFID23/Img/yjy.svg"></a></div><div class="tp-item-logo"><a href="https://www.iotku.com/"target="_blank"><img src="https://oss.rfidworld.com.cn/RFID23/Img/AIoT.svg"></a></div><div class="tp-item-logo"><a href="http://www.rfidworld.com.cn/"target="_blank"><img src="https://oss.rfidworld.com.cn/RFID23/Img/logo.svg"></a></div><div class="tp-item-logo"><a href="https://www.iotexpo.com.cn/"target="_blank"><img src="https://oss.rfidworld.com.cn/RFID23/Img/zs.png"></a></div>';
4    $("#OurGroupSites>div").html(OurGroupSitesHTML);
5
6    $.ajax({
7        type: "post", url: APIDOMAIN+"OpenAPI/QLoginInfo",
8        dataType: "jsonp", jsonp: "callback", jsonpCallback: "RFIDLoginCB",
9        success: function (json) { },
10        error: function () { }
11    });
12
13    if (location.href.toLocaleLowerCase().indexOf("myrfid.com") != -1) {
14        APIDOMAIN = "https://api.myrfid.com.cn/";
15        USERDOMAIN = "http://user.myrfid.com.cn/";
16        NEWSDOMAIN = "http://news.myrfid.com.cn/";
17    }
18});
19$(function () {
20    $(".footer img,.cg-rt>p>a>img,.proOnlineContact>a>img").each(function() {
21        if (!this.complete || typeof this.naturalWidth == "undefined" || this.naturalWidth == 0) {
22            this.src = 'https://oss.rfidworld.com.cn/RFID23/Img/qqChat.gif';
23        }
24    });
25});
26layui.use(['form', 'layer'], function () {
27    var form = layui.form, layer = layui.layer;
28
29    $("#spanLoginNotice").click(function () { location.href = USERDOMAIN + 'Passport/Login?ReturnUrl=' + encodeURIComponent(location.href); });
30    $("#hd-search-type").append('<option value="Company">企业</option>');
31    $("#btnRFIDSEARCH").click(function () {
32        
33        var k = $("#txtRFIDSEARCHKEY").val(); if (!k || k.length < 1) { layer.tips('请输入搜索关键词!', '#txtRFIDSEARCHKEY',{tips:3}); return false; }
34        var type = $('#hd-search-type').val();if(!type || !type.length){layer.tips('请选择分类后再搜索', '#hd-search-type',{tips:3}); return false;}
35        location.href = `https://www.rfidworld.com.cn/${type}/Search.aspx?Keywords=` + encodeURIComponent(k);
36    });
37    $("#btnZTSearch").click(function () {
38        var k = $("#txtZTKeywords").val(); if (!k || k.length < 1) { layer.tips('请输入招标关键词!', '#txtZTKeywords'); return false; }
39        location.href = "/RFIDZT/Search.aspx?Keywords=" + encodeURIComponent(k);
40    });
41    $("#btnBIDSearch").click(function () {
42        var k = $("#txtBIDKeywords").val(); if (!k || k.length < 1) { layer.tips('请输入招标关键词!', '#txtBIDKeywords'); return false; }
43        location.href = "/Biz/TenderList.aspx?keywords=" + encodeURIComponent(k);
44    });
45    $("#btnJobSearch").click(function () {
46        var k = $("#txtJobKeywords").val(); if (!k || k.length < 1) { layer.tips('请输入招聘关键词!', '#txtJobKeywords'); return false; }
47        location.href = "/Job/Search.aspx?keywords=" + encodeURIComponent(k);
48    });
49
50    $("#btnNewsSearch").click(function () {
51        var k = $("#txtNewsKeywords").val(); if (!k || k.length < 1) { layer.tips('请输入新闻关键词!', '#txtNewsKeywords'); return false; }
52        location.href = NEWSDOMAIN+"Search.aspx?keywords=" + encodeURIComponent(k);
53    });
54
55    $("#btnSolSearch").click(function () {
56        var k = $("#txtSolKeywords").val(); if (!k || k.length < 1) { layer.tips('请输入方案关键词!', '#txtSolKeywords'); return false; }
57        location.href = "/solution/Search.aspx?keywords=" + encodeURIComponent(k);
58    });
59    $("#btnSuccSearch").click(function () {
60        var k = $("#txtSuccKeywords").val(); if (!k || k.length < 1) { layer.tips('请输入方案关键词!', '#txtSuccKeywords'); return false; }
61        location.href = "/success/Search.aspx?keywords=" + encodeURIComponent(k);
62    });
63    $("#btnTechSearch").click(function () {
64        var k = $("#txtTechKeywords").val(); if (!k || k.length < 1) { layer.tips('请输入方案关键词!', '#txtTechKeywords'); return false; }
65        location.href = "/Tech/Search.aspx?keywords=" + encodeURIComponent(k);
66    });
67
68    $("#btnBizSearch").click(function () {
69        var arr = [];
70        var k = $("#txtBizKeywords").val(), BType = $("#ddlBizType").val(), clsId = $("#ddlBizClsId").val(), zone = $("#ddlBizZone").val();
71        if (k && k.length > 0) { arr.push("Keywords=" + encodeURIComponent(k)); }
72        if (BType && BType.length > 0 && BType != '0') { arr.push("BType=" + BType); }
73        if (clsId && clsId.length > 0 && clsId != '0') { arr.push("clsId=" + clsId); }
74        if (zone && zone.length > 0) { arr.push("Zone=" + encodeURIComponent(zone)); }
75
76        if (!arr || arr.length < 1) { layer.alert("请提供搜索条件!"); return false; }
77        location.href = "/Biz/Search.aspx?" + arr.join("&");
78    });
79    $("#btnProSearch").click(function () {
80        var arr = [];
81        var k = $("#txtProKeywords").val(), clsId = $("#ddlProClsId").val(), sClsId = $("#ddlProSClsId").val(), zone = $("#ddlProZone").val();
82        if (k && k.length > 0) { arr.push("Keywords=" + encodeURIComponent(k)); }
83        if (clsId && clsId.length > 0 && clsId != '0') { arr.push("clsId=" + clsId); }
84        if (sClsId && sClsId.length > 0 && sClsId != '0') { arr.push("sClsId=" + sClsId); }
85        if (zone && zone.length > 0) { arr.push("Zone=" + encodeURIComponent(zone)); }
86
87        if (!arr || arr.length < 1) { layer.alert("请提供搜索条件!"); return false; }
88        location.href = "/product/Search.aspx?" + arr.join("&"); return false;
89    });
90    $("#btnCoSearch").click(function () {
91        var arr = [];
92        var k = $("#txtCoKeywords").val(), clsId = $("#ddlCoClsId").val(), sClsId = $("#ddlProSClsId").val(), sType = $("#ddlCoType").val(), zone = $("#ddlCoZone").val();
93        if (k && k.length > 0) { arr.push("Keywords=" + encodeURIComponent(k)); }
94        if (clsId && clsId.length > 0 && clsId != '0') { arr.push("clsId=" + clsId); }
95        if (sClsId && sClsId.length > 0 && sClsId != '0') { arr.push("sClsId=" + sClsId); }
96        if (sType && sType.length > '' && sType != '0') { arr.push('sType=' + encodeURIComponent(sType)); }
97        if (zone && zone.length > 0) { arr.push("Zone=" + encodeURIComponent(zone)); }
98
99        if (!arr || arr.length < 1) { layer.alert("请提供搜索条件!"); return false; }
100        location.href = "/Company/Search.aspx?" + arr.join("&"); return false
101    });
102});
103function RFIDLoginCB(data) {console.log(data);
104    if (!data || !data.Success || data.Success != 1) { return; }
105    $(".topLogin,.topReg").hide();
106    $("button.login").removeClass("login");
107    $(".t-hd>.t-hd-tp>.t-tp-box>.rt").append(`<span>欢迎【${data.UserName}】光临! <a href="${USERDOMAIN}" target="_blank">进入管理后台</a> <a href="${USERDOMAIN}Singout.aspx" target="_blank">退出</a></span>`);
108}
109
110Element.prototype.addEvent = Document.prototype.addEvent = Window.prototype.addEvent = function (type, func) {
111    let isTouch = isSupportTouch(), addType = '';
112    if (isNaN(type)) {
113        addType = isTouch ? { click: 'click', touchstart: "touchstart", touchmove: "touchmove", touchend: "touchend" } : { click: 'click', mousedown: "mousedown", mousemove: "mousemove", mouseup: "mouseup" }
114    } else {
115        addType = isTouch ? ['click', "touchstart", "touchmove", "touchend"] : ['click', "mousedown", "mousemove", "mouseup"];
116    }
117    this.addEventListener(addType[type], func);
118}
119
120function tab(l, u, type = 0, c) {
121    l = document.getElementsByClassName(l);
122    if (changeDevice('mobile')) { type = 0; }
123    for (let i = 0; i < l.length; i++) {
124        l[i].addEvent(type, function () {
125            if (this.classList.contains('ac')) { return; }
126            let ul = document.getElementsByClassName(u)[i];
127            if (ul) {
128                this.classList.add('ac');
129                this.TheSibling('ac');
130                ul.classList.add('ac');
131                ul.TheSibling('ac');
132                if (c && !this.dataset.requestone) {
133                    c.call(this, ul, i);
134                }
135            } else {
136                this.showToast('缺少切换的容器');
137            }
138        });
139    }
140}
141function isSupportTouch() {
142    var supportsTouch = false;
143    if ('ontouchstart' in window || 'ontouchstart' in document) { supportsTouch = true; } else if (window.navigator.msPointerEnabled) { supportsTouch = true; }
144    return supportsTouch;
145}
146function changeDevice(e) {
147    let res = null;
148
149    switch (e) {
150        case 'mobile': res = Boolean(/(iPhone|iPad|iPod|iOS|Android)/i.test(navigator.userAgent)); break;
151        case 'wx': res = Boolean(navigator.userAgent.match(/MicroMessenger/ig)); break;
152        case 'ali': res = Boolean(navigator.userAgent.match(/AlipayClient/ig)); break;
153        case 'android': res = Boolean(navigator.userAgent.match(/android/ig)); break;
154        case 'iphone': res = Boolean(navigator.userAgent.match(/iphone|ipod|iOS/ig)); break;
155        case 'iphone_x':
156            if (!/iPhone/i.test(navigator.platform)) { return dh.device[e] = false; }
157            if (screen.height >= 812 && screen.width >= 375 && window.devicePixelRatio >= 2) { return dh.device[e] = true; }
158            return dh.device[e] = false;
159        case 'mac': res = /Mac/i.test(navigator.platform); break;
160        case 'window': res = /Win/i.test(navigator.platform); break;
161        case 'linux': res = /Linux/i.test(navigator.platform); break;
162        case 'ios': res = /iOS/i.test(navigator.platform); break;
163        case 'touch': res = isSupportTouch(); break;
164        default:
165            dh.showModal(`
166                    <div style="margin:10px 0">${navigator.userAgent}</div>
167                    <div style="margin:10px 0">是不是iphone端:${/iPhone/i.test(navigator.platform)}</div>
168                    <div style="margin:10px 0">height:${screen.height}</div>
169                    <div style="margin:10px 0">width:${screen.width}</div>
170                    <div style="margin:10px 0">devicePixelRatio:${window.devicePixelRatio}</div>
171                    <div style="margin:10px 0">iphonex:${dh.changeDevice('iphone_x')}</div>
172                    <div style="margin:10px 0">availHeight:${screen.availHeight}</div>
173                    <div style="margin:10px 0">
173availWidth:${screen.availWidth}</div>
174                `);
175            return null;
176    }
177
178    return res;
179}
180Element.prototype.TheSibling = function (cl = '') {
181    var nodes = [], list = this.parentNode.children, len = list.length;
182    for (let i = 0; i < len; i++) {
183        if (list[i] != this) {
184            if (cl) { list[i].classList.remove(cl); } else { nodes.push(list[i]); }
185        }
186    }
187    return nodes;
188}
189
190onpageshow = function(){
191  	console.log('onpageshow')
192	tab('home-1-tab', 'home-1-div', 2);
193    tab('home-2-tab', 'home-2-div', 2);
194    tab('wl-tab-item', 'wl-div-item', 2);
195  
196  	document.querySelector('.footer').innerHTML = `
197        <div class="tw">
198            <div style="text-align:center;line-height:29px">
199                <p>RFID世界网联系电话:0755-86227155(客服) 传真:0755-86227110 E-mail:[email protected] 宣传报道、广告投放:18676385933(微信同号) </p>
200                
201                <p>
202                    版权所有 © 深圳市物联传媒有限公司 RFID世界网|RFID|电子标签
203                    <a href="https://beian.miit.gov.cn/" rel="nofllow" target="_blank">粤ICP备05006090号-1</a>
204                    <a target="_blank" href="https://www.beian.gov.cn/portal/registerSystemInfo?recordcode=44030502001434" style="display:inline-block;text-decoration:none;height:20px;line-height:20px;" rel="nofollow">粤公网安备 44030502001434号</a>
205                </p>
206                <p>Copyright 2005-<span id="SPANCOPYRIGHTYEAR">2025</span> www.rfidworld.com.cn All Rights Reserved</p>
207            </div>
208        </div>
209    `;
210
211
212    const images = document.querySelectorAll('img[data-src]');
213    const observer = new IntersectionObserver((entries, obs) => {
214        entries.forEach(entry => {
215            if (entry.isIntersecting) {
216            const img = entry.target;
217            img.src = img.getAttribute('data-src');
218            obs.unobserve(img);
219            }
220        });
221    });
222    images.forEach(img => observer.observe(img));
223
224}
225
226var _hmt = _hmt || [];
227(function () {
228    var hm = document.createElement("script");
229    hm.src = "https://hm.baidu.com/hm.js?1927157e7ad87b98450aa5b767ab925c";
230    var s = document.getElementsByTagName("script")[0];
231    s.parentNode.insertBefore(hm, s);
232})();
233(function(c,l,a,r,i,t,y){
234        c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
235        t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
236        y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
237})(window, document, "clarity", "script", "j8pfwp236t");
238
239$(function () {
240    setTimeout(BindAdVisitLog, 2000);
241    function BindAdVisitLog() {
242        var VISITUID = QUserId();
243        $(".RFIDAdContainer").each(function () {
244            var pos = $(this).data("id");
245            var pageURI = location.href;
246            $("a", $(this)).click(function () {
247                var uri = $(this).attr("href");
248                var postData = { "PageURI": pageURI, "VisitUri": uri, "VisitPos": pos, "UserId": VISITUID, "UserInfo": navigator.userAgent };
249                $.post("https://api.rfidworld.com.cn/OpenAPI/SaveAdVisit", postData, "JSON");
250            });
251        });
252        function QUserId() {
253            var userId = localStorage.getItem("RFIDVISITUID");
254            if (!userId || userId.length < 1) {
255                userId = UUID();
256                localStorage.setItem("RFIDVISITUID", userId);
257            }
258            return userId;
259        }
260        function UUID() {
261            try {
262                var temp_url = URL.createObjectURL(new Blob());
263                var uuid = temp_url.toString();
264                URL.revokeObjectURL(temp_url);
265                return uuid.substring(uuid.lastIndexOf("/") + 1);
266            } catch (e) {
267                str = Math.random().toString(36).substring(3);
268                str += Date.now().toString(16).substring(4);
269                return str;
270            }
271        }
272    }
273});
274
275$(function () {
276    var isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|micromessenger|IEMobile|Opera Mini/i.test(navigator.userAgent);
277    // document.querySelector('#t-hd-ct').style="height:auto";
278    // document.querySelector('#t-hd-ct').insertAdjacentHTML('afterbegin',`
279    //     <div class="tw">
280    //         <a target="_blank" href="https://pay.iotexpo.com.cn/regvip.aspx?source=RFIDWZ">
281    //             <img src="${isMobile?'https://s1.iotexpo.com.cn/IOTVoteLog/img/www-yd.png':'https://s1.iotexpo.com.cn/IOTVoteLog/img/www-pc.gif'}" style="
282    //             width: 100%;margin-top: 10px;">
283    //         </a>
284    //     </div>
285    // `);
286    if (isMobile == false) { return; }
287
288    var uriPath = location.pathname;
289    if (uriPath == "/") { location.href = "https://m.rfidworld.com.cn/"; return; }
290    if (uriPath.indexOf("/news/") != -1 || uriPath.indexOf("/product/") != -1 ||
291        uriPath.indexOf("/solution/") != -1 || uriPath.indexOf("/success/") != -1 ||
292        uriPath.indexOf("/biz/") != -1 || uriPath.indexOf("/tech/") != -1) { location.href = "https://m.rfidworld.com.cn" + uriPath; return; }
293});
294
295setTimeout(()=>{
296  document.querySelector('#RFIDMainNav').querySelectorAll('a')[5].insertAdjacentHTML('afterend','<a href="/tech" class="hd-menu-item flex dh02 ">技术</a>')
297},200)
298

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.