123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="viewport"
- content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
- <title>极速驾培app下载</title>
- <style type="text/css">
- * {
- margin: 0;
- padding: 0;
- box-sizing: border-box;
- border: 0;
- }
- #app {
- width: 100%;
- position: relative;
- overflow: hidden;
- }
- .password1 {
- top: 31vw;
- position: absolute;
- left: 12.8vw;
- width: 74vw;
- }
- .download1 {
- top: 54vw;
- position: absolute;
- left: 12.8vw;
- width: 74vw;
- }
- .password2 {
- top: 125vw;
- position: absolute;
- left: 12.8vw;
- width: 74vw;
- }
- .download2 {
- top: 147vw;
- position: absolute;
- left: 12.8vw;
- width: 74vw;
- }
- .logo1 {
- width: 50%;
- position: absolute;
- left: 25%;
- top: 17vw;
- }
- .logo2 {
- width: 50%;
- position: absolute;
- left: 25%;
- top: 108vw;
- }
- .icon1 {
- position: absolute;
- width: 98vw;
- left: 1vw;
- top: 39vw;
- }
- .icon2 {
- position: absolute;
- width: 98vw;
- left: 1vw;
- top: 123vw;
- }
- .bg {
- width: 100%;
- overflow: hidden;
- font-size: 0;
- }
- .qr {
- position: absolute;
- top: 121vw;
- width: 25vw;
- height: 25vw;
- left: 37.5vw;
- }
- .button1 {
- width: 64vw;
- line-height: 12.8vw;
- background: #498EF5;
- border-radius: 48px;
- font-size: 6.4vw;
- position: absolute;
- top: 125vw;
- left: 18vw;
- color: #fff;
- text-align: center;
- }
- .button2 {
- position: absolute;
- width: 64vw;
- line-height: 12.8vw;
- background: #498EF5;
- border-radius: 48px;
- font-size: 6.4vw;
- top: 145vw;
- left: 18vw;
- color: #fff;
- text-align: center;
- }
- #wx-download {
- position: fixed;
- top: 0;
- left: 0;
- width: 100vw;
- z-index: 999;
- display: none;
- }
- #wx-download>img {
- width: 100vw;
- }
- </style>
- </head>
- <body>
- <div class="#app">
- <div id="wx-download">
- <img src="./assets/wx_download.png">
- </div>
- <img class="bg" src="https://t1-1305573081.file.myqcloud.com/test/adown/bg3.png">
- <img class="icon1" src="https://t1-1305573081.file.myqcloud.com/test/adown/icon1.png">
- <img class="icon2" src="https://t1-1305573081.file.myqcloud.com/test/adown/icon2.png">
- <img class="logo1" src="https://t1-1305573081.file.myqcloud.com/test/adown/logo2.png">
- <img class="logo2" src="https://t1-1305573081.file.myqcloud.com/test/adown/logo3.png">
- <a href="./password1.html"> <img class="password1"
- src="https://t1-1305573081.file.myqcloud.com/test/adown/student_password.png"></a>
- <img class="download1" onclick="downLoadApp1()"
- src="https://t1-1305573081.file.myqcloud.com/test/adown/download_button1.png">
- <a href="./password2.html"><img class="password2"
- src="https://t1-1305573081.file.myqcloud.com/test/adown/teacher_password.png"></a>
- <img class="download2" onclick="downLoadApp2()"
- src="https://t1-1305573081.file.myqcloud.com/test/adown/download_button2.png">
- <!-- <img class="qr" src="https://t1-1305573081.file.myqcloud.com/test/adown/qr.png"> -->
- <!-- <div onclick="downLoadApp1()" class="button1">
- 点击下载1
- </div>
- <div onclick="downLoadApp2()" class="button2">
- 点击下载2
- </div> -->
- </div>
- <script>
- var jsjp_android = 'https://t1-1305573081.cos.ap-shanghai.myqcloud.com/apk/fj_student_2.1.5.apk'
- var jlgj_android = 'https://t1-1305573081.file.myqcloud.com/apk/jlgj1.2.6.apk'
- var ajax1 = new XMLHttpRequest()
- var ajax2 = new XMLHttpRequest()
- ajax1.open('get', "https://jsjp-admin.zzxcx.net/jsjp-admin/open-api/gzpt/userInfo/configKey/jsjp_android")
- ajax1.send()
- ajax1.onreadystatechange = function () {
- if (ajax1.status == 200 && ajax1.readyState == 4) {
- jsjp_android = JSON.parse(ajax1.responseText).data
- }
- }
- ajax2.open('get', "https://jsjp-admin.zzxcx.net/jsjp-admin/open-api/gzpt/userInfo/configKey/coach_android")
- ajax2.send()
- ajax2.onreadystatechange = function () {
- if (ajax2.status == 200 && ajax2.readyState == 4) {
- jlgj_android = JSON.parse(ajax2.responseText).data
- }
- }
- function getPhoneSystem() {
- var u = navigator.userAgent;
- if (u.indexOf('Android') > -1) {
- return 'android'
- }
- if (u.indexOf("iPhone") > -1 || u.indexOf("iOS") > -1) {
- return 'ios';
- }
- }
- function isWeixin() {
- var ua = navigator.userAgent.toLowerCase();
- if (ua.search('micromessenger') !== -1) {
- return true;
- } else {
- return false;
- }
- }
- function downLoadApp1() {
- if (getPhoneSystem() == 'ios') {
- // window.location.href = 'https://apps.apple.com/us/app/极速驾培/id1214200225'
- window.location.href = "https://apps.apple.com/cn/app/极速驾培/id1214200225"
- return
- }
- else if (getPhoneSystem() == 'android' && isWeixin() == false) {
- window.location.href = jsjp_android
- return
- }
- else {
- document.getElementById('wx-download').style = 'display:block'
- document.getElementById('wx-download').onclick = function (e) {
- document.getElementById('wx-download').style = 'display:none'
- }
- // const a = document.createElement('a')
- // a.href = jsjp_android
- // a.download = 'fj_student.apk'
- // document.body.append(a)
- // a.click()
- // document.body.removeChild(a)
- // window.location.href = "https://itunes.apple.com/cn/app/id1214200225"
- }
- }
- function downLoadApp2() {
- if (getPhoneSystem() == 'ios') {
- // window.location.href = 'https://apps.apple.com/us/app/极速驾培/id1214200225'
- window.location.href = "https://apps.apple.com/cn/app/教练管家/id1214203182"
- return
- }
- else if (getPhoneSystem() == 'android' && isWeixin() == false) {
- window.location.href = jlgj_android
- return
- }
- else {
- document.getElementById('wx-download').style = 'display:block'
- document.getElementById('wx-download').onclick = function (e) {
-
- document.getElementById('wx-download').style = 'display:none'
- }
- // window.location.href = "https://itunes.apple.com/cn/app/id1214200225"
- }
- }
- </script>
- </body>
- </html>
|