index.html
11.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
<!DOCTYPE HTML>
<html lang="zh-CN">
<head>
<title></title>
<meta name="author" content="www.ichunt.com">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0,user-scalable=no,minimal-ui">
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Pragma" content="no-cache">
<meta name="full-screen" content="yes">
<meta name="browsermode" content="application">
<meta name="x5-fullscreen" content="true">
<meta name="x5-page-mode" content="app">
<meta name="description" content="猎芯网,快速成长的专业电子元器件商城,贸泽(MOUSER)全系产品、e络盟(element14)树莓派系列产品授权经销商,已获得多轮风险投资。为客户提供电子元器件现货,IC采购,进口报关,电子元器件寄售,供应链金融等一站式电子元器件采购服务。">
<meta name="keywords" content="猎芯网,电子元器件采购,电子元器件商城,电子元器件现货,IC采购网,电子元器件寄售,电子元件,元器件商城,元器件采购,电子商城,">
<link rel="icon" href="//szh5static.ichunt.com/favicon.ico">
<link rel="stylesheet" href="/v3/dist/res/m/css/font/iconfont.css">
<script type="text/javascript" src="/h5/view/get_time.php"></script>
<script type="text/javascript">
var fwtimes = window.fwtime - (Math.floor((new Date().getTime()) / 1000)); //获取服务器时间差
</script>
<script src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js" type="text/javascript" charset="utf-8"></script>
<script src="//szh5static.ichunt.com/static/js/flexible.min.js" type="text/javascript" charset="utf-8"></script>
<script src="//szh5static.ichunt.com/static/js/shence.min.js" type="text/javascript" charset="utf-8"></script>
<link href="//szh5static.ichunt.com/0.js" rel="prefetch"><link href="//szh5static.ichunt.com/1.js" rel="prefetch"><link href="//szh5static.ichunt.com/2.js" rel="prefetch"><link href="//szh5static.ichunt.com/3.js" rel="prefetch"><link href="//szh5static.ichunt.com/4.js" rel="prefetch"><link href="//szh5static.ichunt.com/5.js" rel="prefetch"><link href="//szh5static.ichunt.com/6.js" rel="prefetch"><link href="//szh5static.ichunt.com/7.fae5a1720441233b00cf.hot-update.js" rel="prefetch"><link href="//szh5static.ichunt.com/7.js" rel="prefetch"><link href="//szh5static.ichunt.com/app.js" rel="preload" as="script"></head>
<body class="boxsiz">
<noscript>
<strong>网站出现了一点小问题,正在紧急修复中.......</strong>
</noscript>
<div id="app"></div>
<script type="text/javascript">
function SetCookie(name, value, time, domain) {
domain = domain ? ";domain=" + domain : "";
var Days = time;
var exp = new Date();
exp.setTime(exp.getTime() + Days * 24 * 60 * 60 * 1000);
document.cookie = name + "=" + encodeURIComponent(value) + ";expires=" + exp.toGMTString() + ";path=/" + domain;
return true;
}
function getCookie(name) {
var arr = document.cookie.match(new RegExp("(^| )" + name + "=([^;]*)(;|$)"));
if (arr != null) return unescape(arr[2]);
return null;
}
function delCookie(name) {
var exp = new Date();
exp.setTime(exp.getTime() - 1);
var cval = getCookie(name);
if (cval != null) document.cookie = name + "=" + cval + ";expires=" + exp.toGMTString();
}
var cookiex = getCookie("Yo4teW_csrf") || "", csrf = "csrf";
var cookieHostname = window.location.hostname.split(".")[1] + "." + window.location.hostname.split(".")[2];
var browser = {
versions: function () {
var u = navigator.userAgent, app = navigator.appVersion;
return { //移动终端浏览器版本信息
trident: u.indexOf('Trident') > -1, //IE内核
presto: u.indexOf('Presto') > -1, //opera内核
webKit: u.indexOf('AppleWebKit') > -1, //苹果、谷歌内核
gecko: u.indexOf('Gecko') > -1 && u.indexOf('KHTML') == -1, //火狐内核
mobile: !!u.match(/AppleWebKit.*Mobile.*/), //是否为移动终端
ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), //ios终端
android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1, //android终端或uc浏览器
iPhone: u.indexOf('iPhone') > -1, //是否为iPhone或者QQHD浏览器
iPad: u.indexOf('iPad') > -1, //是否iPad
webApp: u.indexOf('Safari') == -1 //是否web应该程序,没有头部与底部
};
}(),
language: (navigator.browserLanguage || navigator.language).toLowerCase()
}
//判断是否在微信小程序打开
function is_miniProgram() {
if (window.__wxjs_environment === 'miniprogram') {
SetCookie("Yo4teW_miniProgram", true, 1, cookieHostname);
return true;
} else {
SetCookie("Yo4teW_miniProgram", false, 1, cookieHostname);
return false;
}
}
if (!window.WeixinJSBridge || !WeixinJSBridge.invoke) {
document.addEventListener('WeixinJSBridgeReady', is_miniProgram, false);
} else {
is_miniProgram();
}
if (getCookie("Yo4teW_miniProgram") !== 'true') {
var isMiniProgram = is_miniProgram();
//二次确认
wx.miniProgram.getEnv(function (res) {
if (res.miniprogram == true) {
isMiniProgram = res.miniprogram
SetCookie("Yo4teW_miniProgram", true, 1, cookieHostname);
} else {
SetCookie("Yo4teW_miniProgram", false, 1, cookieHostname);
}
if (isMiniProgram) {
lxpf = 6;
}
})
} else {
isMiniProgram = true
}
var lxpf = 2;
if (isMiniProgram) {
lxpf = 6;
}
//百度统计
var _hmt = _hmt || [];
(function () {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?0c48775abb60d7d7aeb4343bca7a239b";
document.getElementsByTagName('head')[0].appendChild(hm);
})();
//腾讯统计
var host_v = window.location.host;
if (host_v == "m.ichunt.com") {
if (isMiniProgram) {
var _mtac = {};
(function () {
var mta = document.createElement("script");
mta.src = "//pingjs.qq.com/h5/stats.js?v2.0.4";
mta.setAttribute("name", "MTAH5");
mta.setAttribute("sid", "500626053");
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(mta, s);
})();
} else {
var _mtac = {"performanceMonitor": 1, "senseQuery": 1};
(function () {
var mta = document.createElement("script");
mta.src = "//pingjs.qq.com/h5/stats.js?v2.0.4";
mta.setAttribute("name", "MTAH5");
mta.setAttribute("sid", "500482933");
mta.setAttribute("cid", "500485800");
document.getElementsByTagName('head')[0].appendChild(mta);
})();
}
}
</script>
<script type="text/javascript">
//神策统计
var host_v = window.location.host;
var __PUBLIC__;
switch (window.location.hostname) {
case "www.ichunt.com":
__PUBLIC__ = '//static.ichunt.com/dist';
break;
case "m.ichunt.com":
__PUBLIC__ = '//static.ichunt.com/dist';
break;
case "sz.ichunt.com":
__PUBLIC__ = '/v3/dist';
break;
case "szm.ichunt.com":
__PUBLIC__ = '/v3/dist';
break;
case "t.ichunt.com":
__PUBLIC__ = '//t.ichunt.com/v3/dist';
break;
case "tm.ichunt.com":
__PUBLIC__ = '//t.ichunt.com/v3/dist';
break;
case "www.liexin.com":
__PUBLIC__ = '/dist';
break;
default:
__PUBLIC__ = '//res.liexin.com/dist';
}
if (host_v == "m.ichunt.com" || host_v == "sc.ichunt.com") {
(function (para) {
var p = para.sdk_url, n = para.name, w = window, d = document, s = 'script', x = null, y = null;
if (typeof (w['sensorsDataAnalytic201505']) !== 'undefined') {
return false;
}
w['sensorsDataAnalytic201505'] = n;
w[n] = w[n] || function (a) {
return function () {
(w[n]._q = w[n]._q || []).push([a, arguments]);
}
};
var ifs = ['track', 'quick', 'register', 'registerPage', 'registerOnce', 'trackSignup', 'trackAbtest', 'setProfile', 'setOnceProfile', 'appendProfile', 'incrementProfile', 'deleteProfile', 'unsetProfile', 'identify', 'login', 'logout', 'trackLink', 'clearAllRegister', 'getAppStatus'];
for (var i = 0; i < ifs.length; i++) {
w[n][ifs[i]] = w[n].call(null, ifs[i]);
}
if (!w[n]._t) {
x = d.createElement(s), y = d.getElementsByTagName(s)[0];
x.async = 1;
x.src = p;
x.setAttribute('charset', 'UTF-8');
y.parentNode.insertBefore(x, y);
w[n].para = para;
}
})({
sdk_url: __PUBLIC__ + '/res/m/js/global/sensorsdata.min.js',
heatmap_url: __PUBLIC__ + '/res/m/js/global/heatmap.min.js',
name: 'sensors',
server_url: 'https://shence.ichunt.com:4006/sa?project=production',
heatmap: {}
});
//以异步加载 SDK 为例,神策 SDK 初始化完成,此时调用设置公共属性的方法,来保证之后的事件都有这两个属性。
sensors.registerPage({
current_url: location.href,
referrer: document.referrer,
platformType: '2', //H5
is_login: (getCookie("Yo4teW_uid") ? true : false),
user_rank: '0'
});
sensors.quick('autoTrack');
} else {
(function (para) {
var p = para.sdk_url, n = para.name, w = window, d = document, s = 'script', x = null, y = null;
if (typeof (w['sensorsDataAnalytic201505']) !== 'undefined') {
return false;
}
w['sensorsDataAnalytic201505'] = n;
w[n] = w[n] || function (a) {
return function () {
(w[n]._q = w[n]._q || []).push([a, arguments]);
}
};
var ifs = ['track', 'quick', 'register', 'registerPage', 'registerOnce', 'trackSignup', 'trackAbtest', 'setProfile', 'setOnceProfile', 'appendProfile', 'incrementProfile', 'deleteProfile', 'unsetProfile', 'identify', 'login', 'logout', 'trackLink', 'clearAllRegister', 'getAppStatus'];
for (var i = 0; i < ifs.length; i++) {
w[n][ifs[i]] = w[n].call(null, ifs[i]);
}
if (!w[n]._t) {
x = d.createElement(s), y = d.getElementsByTagName(s)[0];
x.async = 1;
x.src = p;
x.setAttribute('charset', 'UTF-8');
y.parentNode.insertBefore(x, y);
w[n].para = para;
}
})({
sdk_url: __PUBLIC__ + '/res/m/js/global/sensorsdata.min.js',
heatmap_url: __PUBLIC__ + '__PUBLIC__/res/m/js/global/heatmap.min.js',
name: 'sensors',
server_url: 'https://shence.ichunt.com:4006/sa',
heatmap: {}
});
//以异步加载 SDK 为例,神策 SDK 初始化完成,此时调用设置公共属性的方法,来保证之后的事件都有这两个属性。
sensors.registerPage({
current_url: location.href,
referrer: document.referrer,
platformType: '2', //H5
is_login: (getCookie("Yo4teW_uid") ? true : false),
user_rank: '0'
});
sensors.quick('autoTrack');
}
</script>
<script type="text/javascript" src="//szh5static.ichunt.com/app.js"></script></body>
</html>