update
1.替换所有小助手字样为全科医师 2.添加app下载地址
This commit is contained in:
@@ -0,0 +1,107 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>健康咨询专家端APP下载</title>
|
||||
</head>
|
||||
<style>
|
||||
html, body, #outer {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
#text {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: url('./images/noOpen.png') no-repeat;
|
||||
background-size: 100% 100%;
|
||||
display: none;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
#text1 {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.down-container {
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
background: url('./images/bg.png') no-repeat;
|
||||
background-size: 100% 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.android {
|
||||
width: 400px;
|
||||
height: 400px;
|
||||
background: url('./images/exportAndroid.png') no-repeat;
|
||||
background-size: 100% 100%;
|
||||
margin-top: 14%;
|
||||
}
|
||||
.ios {
|
||||
width: 400px;
|
||||
height: 400px;
|
||||
background: url('./images/exportIos.png') no-repeat;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
<div id="outer">
|
||||
<div id="text">
|
||||
</div>
|
||||
<div id="text1">
|
||||
<div class="down-container">
|
||||
<div class="ios" onclick="down('ios')"></div>
|
||||
<div class="android" onclick="down('android')"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
<script>
|
||||
function isWeiXin() {
|
||||
return navigator.userAgent.toLocaleLowerCase().indexOf('micromessenger') != -1;
|
||||
}
|
||||
|
||||
function f() {
|
||||
if (isWeiXin()) {
|
||||
document.getElementById('text1').style.display = 'none';
|
||||
document.getElementById('text').style.display = 'flex';
|
||||
}
|
||||
}
|
||||
|
||||
f();
|
||||
function isType() {
|
||||
let userAgent = navigator.userAgent || navigator.vendor || window.opera;
|
||||
if (userAgent.match(/iPad/i) || userAgent.match(/iPhone/i) || userAgent.match(/iPod/i)) {
|
||||
return 'ios';
|
||||
} else if (userAgent.match(/Android/i)) {
|
||||
return 'android';
|
||||
}
|
||||
}
|
||||
function androidLoad() {
|
||||
window.open('https://api.cqygjk.com/health-system/api/anon/sys/toAppDown?pkg=com.sw.healthexpertclient&type=1');
|
||||
}
|
||||
function iosLoad() {
|
||||
// 响应App store
|
||||
const appID = '6482987307';
|
||||
const link = 'https://itunes.apple.com/app/id'+ appID;
|
||||
window.location.href = link;
|
||||
}
|
||||
function down(type) {
|
||||
if (type === 'ios') {
|
||||
iosLoad();
|
||||
} else {
|
||||
androidLoad();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user