| | |
| | | <html> |
| | | <title> |
| | | <body></body> |
| | | </title> |
| | | <title> 高铁站行李寄存管理系统 </title> |
| | | <body> |
| | | <div id="content">ss</div> |
| | | </body> |
| | | </html> |
| | | <script type="text/javascript"> |
| | | var ifr = document.createElement('iframe'); |
| | | ifr.style.display = 'none'; |
| | | $(function () { |
| | | var flag = getPlatform(); |
| | | if (flag == 1) { |
| | | android_download(); |
| | | } |
| | | if (flag == 2) { |
| | | ios_download(); |
| | | } |
| | | var flag = getPlatform(); |
| | | if (flag == 1) { |
| | | android_download(); |
| | | } |
| | | if (flag == 2) { |
| | | ios_download(); |
| | | } |
| | | |
| | | |
| | | }); |
| | | |
| | | function getPlatform() { |
| | | var result = 0; |
| | |
| | | if (url.indexOf("?") != -1) { |
| | | result = url.substr(url.indexOf("=") + 1); |
| | | } |
| | | document.getElementById("content").innerHTML=result |
| | | return result; |
| | | } |
| | | |
| | | var ua = navigator.userAgent.split("(")[1].split(")")[0]; |
| | | /*var ua = navigator.userAgent.split("(")[1].split(")")[0]; |
| | | document.getElementById("content").innerHTML=ua |
| | | var brand = ""; |
| | | var phone = [/IPHONE/gi, /huawei/gi, /mi/gi, /v1/gi, /OPPO/gi, /vivo/gi, /pcg/gi, /vivo/gi,]; |
| | | if (phone[0].test(ua)) { |
| | |
| | | } else { |
| | | brand = "Android"; |
| | | ifr.src = ''; |
| | | } |
| | | }*/ |
| | | function ios_download() { |
| | | window.location.href = "https://apps.apple.com/cn/app/xxxxxxx"; |
| | | } |