appdownload.html 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <title>APP下载</title>
  8. <script src="../../assets/js/fontSize.js"></script>
  9. </head>
  10. <style>
  11. .wxtip{background: rgba(0,0,0,0.8); text-align: center; position: fixed; left:0; top: 0; width: 100%; height: 100%; z-index: 998; display: none;}
  12. .wxtip-icon{width: 52px; height: 67px; background: url(../../assets/img/weixin-tip.png) no-repeat; display: block; position: absolute; right: 20px; top: 20px;}
  13. .wxtip-txt{margin-top: 107px; color: #fff; font-size: 16px; line-height: 1.5;}
  14. * {
  15. margin:0;
  16. padding:0;
  17. }
  18. body {
  19. background:#edf0f0;
  20. font-family:Helvetica Neue,Helvetica,Arial,sans-serif;
  21. font-size:14px;
  22. color:#333;
  23. padding:0;
  24. margin:0;
  25. }
  26. .page{
  27. position: relative;
  28. left: 0;
  29. top: 0;
  30. right: 0;
  31. bottom: 0;
  32. width: 100vw;
  33. height: 100vh;
  34. background: url(../../assets/img/download.png) no-repeat center/cover;
  35. }
  36. .btn{
  37. width: 290px;
  38. height: 45px;
  39. background: linear-gradient(90deg, #8F68DD, #6B7DDB);
  40. box-shadow: 0px 1px 2px 0px rgba(126, 114, 220, 0.59);
  41. line-height: 45px;
  42. text-align: center;
  43. font-size: 17px;
  44. color: #FFFFFF;
  45. border-radius: 35px;
  46. bottom:80px;
  47. left: 50%;
  48. transform: translateX(-50%);
  49. position: absolute;
  50. }
  51. </style>
  52. <body >
  53. <div class="page">
  54. <a class="btn" href="{$downurl}" id="JdownApp">点击下载</a>
  55. </div>
  56. <div class="wxtip" id="JweixinTip">
  57. <span class="wxtip-icon"></span>
  58. <p class="wxtip-txt">点击右上角<br/>选择在浏览器中打开</p>
  59. </div>
  60. </body>
  61. <script>
  62. function weixinTip(ele){
  63. var ua = navigator.userAgent;
  64. var isWeixin = !!/MicroMessenger/i.test(ua);
  65. if(isWeixin){
  66. ele.onclick=function(e){
  67. window.event? window.event.returnValue = false : e.preventDefault();
  68. document.getElementById('JweixinTip').style.display='block';
  69. }
  70. document.getElementById('JweixinTip').onclick=function(){
  71. this.style.display='none';
  72. }
  73. }
  74. }
  75. var btn1 = document.getElementById('JdownApp');//下载一
  76. weixinTip(btn1);
  77. </script>