Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
h5
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
376c1f4d
authored
Feb 20, 2019
by
林翔
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
html
parent
458fa5e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
271 additions
and
0 deletions
view/index.html
view/index.html
0 → 100644
View file @
376c1f4d
<!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/app.js"
rel=
"preload"
as=
"script"
></head>
<body>
<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>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment