guide.html 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Hello MUI</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
  7. <meta name="apple-mobile-web-app-capable" content="yes">
  8. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  9. <link rel="stylesheet" href="../css/mui.min.css">
  10. <style>
  11. #close1 {
  12. position: absolute;
  13. width: 160px;
  14. left: 50%;
  15. margin-left: -80px;
  16. bottom: 15%;
  17. padding: 10px;
  18. color: #fff;
  19. border-color: #fff;
  20. }
  21. .item-logo {
  22. width: 100%;
  23. height: 100%;
  24. position: relative;
  25. }
  26. .item-logo a {
  27. width: 200px;
  28. height: 200px;
  29. display: block;
  30. border: 1px solid #FFFFFF;
  31. border-color: rgba(255, 255, 255, 0.5);
  32. text-align: center;
  33. line-height: 200px;
  34. border-radius: 50%;
  35. font-size: 40px;
  36. color: #fff;
  37. position: absolute;
  38. top: 15%;
  39. left: 50%;
  40. margin-left: -100px;
  41. }
  42. .animate {
  43. position: absolute;
  44. left: 0;
  45. bottom: 15%;
  46. width: 100%;
  47. color: #fff;
  48. display: -moz-box;
  49. }
  50. .animate h2 {
  51. text-align: center;
  52. margin-bottom: 20px;
  53. }
  54. .animate li {
  55. width: 50%;
  56. height: 30px;
  57. line-height: 30px;
  58. list-style: none;
  59. font-size: 16px;
  60. text-align: right;
  61. }
  62. .animate li:nth-child(3) {
  63. text-align: left;
  64. float: right;
  65. }
  66. .animated {
  67. -webkit-animation-duration: 1s;
  68. -webkit-animation-play-state: paused;
  69. -webkit-animation-fill-mode: both;
  70. }
  71. .guide-show .bounceInDown {
  72. -webkit-animation-name: bounceInDown;
  73. -webkit-animation-play-state: running;
  74. -webkit-animation-delay: 1s;
  75. display: block;
  76. }
  77. .guide-show .bounceInLeft {
  78. -webkit-animation-name: bounceInLeft;
  79. display: block;
  80. -webkit-animation-play-state: running;
  81. }
  82. .guide-show .bounceInRight {
  83. -webkit-animation-name: bounceInRight;
  84. display: block;
  85. -webkit-animation-play-state: running;
  86. -webkit-animation-delay: 0.5s;
  87. }
  88. </style>
  89. </head>
  90. <body style="background-color: white;">
  91. <div id="slider" class="mui-slider mui-fullscreen">
  92. <div class="mui-slider-group">
  93. <!-- 第一张 -->
  94. <div class="mui-slider-item" style="text-align: center;">
  95. <div style="top:10%;position: relative;font-size: 2em;color: #DAA520;">
  96. 健康,时时在线
  97. </div>
  98. <div style="width:100%;">
  99. <img style="width:90%;top: 140px;position: relative;" src="../images/guide/01_02.jpg" />
  100. </div>
  101. <div style="bottom: 30px;position: absolute;width:100%;">
  102. <img style="width:40%;" src="../images/guide/01_05.jpg" />
  103. </div>
  104. </div>
  105. <!-- 第二张 -->
  106. <div class="mui-slider-item" style="text-align: center;">
  107. <div style="width:100%;">
  108. <img style="width:90%;top: 100px;position: relative;" src="../images/guide/02_02.jpg" />
  109. </div>
  110. <div style="bottom: 30px;position: absolute;width:100%;">
  111. <img style="width:40%;" src="../images/guide/01_05.jpg" />
  112. </div>
  113. </div>
  114. <!-- 第三张 -->
  115. <div class="mui-slider-item" style="text-align: center;">
  116. <div style="top: 60px;position: absolute;width:100%;">
  117. <img style="width:40%;" src="../images/guide/01_05.jpg" />
  118. </div>
  119. <div style="width:100%;">
  120. <img style="width:90%;top: 190px;position: relative;" src="../images/guide/03_02.jpg" />
  121. </div>
  122. <div style="width: 100%;position: absolute;bottom: 40px;">
  123. <button style="" id='close' class="mui-btn mui-btn-warning mui-btn-outlined">立即体验</button>
  124. </div>
  125. </div>
  126. </div>
  127. <div class="mui-slider-indicator">
  128. <div class="mui-indicator mui-active"></div>
  129. <div class="mui-indicator"></div>
  130. <div class="mui-indicator"></div>
  131. </div>
  132. </div>
  133. <script src="../js/mui.min.js"></script>
  134. <script>
  135. mui.back = function() {};
  136. mui.plusReady(function() {
  137. if (mui.os.ios) {
  138. plus.navigator.setFullscreen(true);
  139. }
  140. plus.navigator.closeSplashscreen();
  141. });
  142. //立即体验按钮点击事件
  143. document.getElementById("close").addEventListener('tap', function(event) {
  144. mui.openWindow({
  145. id: 'login-win',
  146. url: '../login.html',
  147. show: {
  148. duration: 200
  149. }
  150. });
  151. }, false);
  152. //图片切换时,触发动画
  153. document.querySelector('.mui-slider').addEventListener('slide', function(event) {
  154. //注意slideNumber是从0开始的;
  155. var index = event.detail.slideNumber + 1;
  156. if (index == 2 || index == 3) {
  157. var item = document.getElementById("tips-" + index);
  158. }
  159. });
  160. </script>
  161. </body>
  162. </html>