ed3fee8054a75f2b02a93908d1a388bd.php 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <?php /*a:2:{s:91:"/Users/sunriseos/Documents/www/wwwroot/www.duobao.com/app/api/view/h5/down_app/downapp.html";i:1676623413;s:83:"/Users/sunriseos/Documents/www/wwwroot/www.duobao.com/app/api/view/public/base.html";i:1648376953;}*/ ?>
  2. <!DOCTYPE html>
  3. <html lang="zh-cn">
  4. <head>
  5. <meta charset="utf-8">
  6. <meta name="viewport"
  7. content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"/>
  8. <title>下载app</title>
  9. <meta name="keywords" content=""/>
  10. <meta name="description" content=""/>
  11. <link rel="stylesheet" href="/h5/static/css/base.css?v20210816">
  12. <!--[if (gte IE 9)|!(IE)]><!-->
  13. <script src="/h5/static/lib/jquery/jquery.1.10.2.min.js"></script>
  14. <script src="/h5/static/lib/vue/vue.min.js"></script>
  15. <script src="/h5/static/lib/vue/axios.min.js"></script>
  16. <script src="/h5/static/lib/layer/3.0.3/layer.js"></script>
  17. <script src="/h5/static/js/common.js?v2021818"></script>
  18. <script src="/h5/static/js/ajaxfileupload.js?v2021818"></script>
  19. <!--<![endif]-->
  20. <link rel="stylesheet" href="__CSS__/user.css">
  21. <style>
  22. </style>
  23. </head>
  24. <body>
  25. <!--头部-->
  26. <!--end头部-->
  27. <!--内容-->
  28. <div class="ect-wrapper user-app back">
  29. <div class="register-box" >
  30. <p class="title" style="text-align: center;font-size: 30px;bold;margin-top: 40px;font-weight: bold"><?php echo htmlentities($info['name']); ?></p>
  31. </div>
  32. <p class="down-app ect-sub-btn" style="margin-top: 80px;color: rgb(240,200,106);"><a style="background-color: rgb(233,26,33);">立即下载(苹果/安卓)</a></p>
  33. <p class="content" style="margin-top: 15px;text-align: center;margin-left: 10px;margin-right: 10px;">苹果手机点击下载app,安装完成请到 设置->通用->VPN与设备管理->选择企业级APP->点击信任</p>
  34. <div class="guide" onclick="closeOpenDiv(['.ect-mask','.guide'])"
  35. style="display: none; position: fixed; top: 0; right: 0; z-index: 99999;bottom: 0; text-align: right;">
  36. <img src="/h5/static/image/user/ad.jpg" style="width: 80%; margin-top: 15%; margin-right: 10%;">
  37. </div>
  38. </div>
  39. <div class="ect-mask" style="z-index: 99;opacity: .9;"></div>
  40. <div class="confirm-box">
  41. <p class="title"></p>
  42. <p class="content">你可以下载或者打开APP查看详情</p>
  43. <ul>
  44. <li class="cancel-btn"><a onclick="closeOpenDiv(['.confirm-box','.ect-mask'])">好的</a></li>
  45. </ul>
  46. </div>
  47. <!--end内容-->
  48. <!--底部-->
  49. <!--end底部-->
  50. <script>
  51. $(function () {
  52. var height = $(window).height();
  53. var u = navigator.userAgent, app = navigator.appVersion;
  54. var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; //g
  55. var isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
  56. var is_fair = "<?php echo htmlentities($is_fair); ?>";
  57. var down_ios_url = "<?php echo htmlentities($iurl); ?>";
  58. var down_android_url = "<?php echo htmlentities($aurl); ?>";
  59. // if (!isAndroid) {
  60. // $('.open-app').hide();
  61. // }
  62. $('.back').height(height);
  63. $('.back').on('click', '.downApp', function () {
  64. if (isIOS) {
  65. // layer.msg('苹果客户端正在更新中,请稍后在试');
  66. // return ;
  67. location.href = down_ios_url;
  68. } else {
  69. var url = down_android_url;
  70. download(url);
  71. }
  72. });
  73. $('.back').on('click', '.openApp', function () {
  74. var key = "<?php echo htmlentities($k); ?>", v = "<?php echo htmlentities($v); ?>", scheme = '';
  75. if (isIOS && false) {
  76. scheme = "maikeWorld://" + key + "/" + v;
  77. } else {
  78. scheme = "maikeworld://" + key + "/" + v;
  79. }
  80. window.open(scheme);
  81. });
  82. function download(url) {
  83. var src = url;
  84. var form = document.createElement('form');
  85. form.action = src;
  86. document.getElementsByTagName('body')[0].appendChild(form);
  87. form.submit();
  88. }
  89. if (is_fair) {
  90. $('.down-app').addClass('downApp');
  91. $('.open-app').addClass('openApp');
  92. } else {
  93. $('.down-app').addClass('notice');
  94. $('.open-app').addClass('notice');
  95. }
  96. $('.back').on('click', '.notice', function () {
  97. openHideDiv([".ect-mask", ".guide"]);
  98. });
  99. var msg = "<?php echo htmlentities(app('request')->param('msg')); ?>";
  100. if (msg) {
  101. $('.confirm-box .title').html(msg);
  102. openHideDiv(['.ect-mask', '.confirm-box']);
  103. }
  104. });
  105. </script>
  106. </body>
  107. </html>