js19.html 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
  6. <script src="//libs.baidu.com/zepto/0.8/zepto.min.js"></script>
  7. <style>
  8. .pop { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.7); z-index: 1000; height: 100%; width: 100%; animation: poupFadIn 0.5s ease 0s 1; outline: none }
  9. .pop .box { border-radius: 20px; background-color: #fff; position: fixed; z-index: 1001; left: 20px; right: 20px; top: 100px; box-shadow: 0 1px 5px rgba(0, 0, 0, 0.32), 0 -3px 0px 0px rgba(0, 0, 0, 0.15) inset; -webkit-animation: f1 0.5s 0s ease 1; }
  10. @-webkit-keyframes f1 { 0% {
  11. -webkit-transform: translateY(50px);
  12. opacity:0;
  13. }
  14. 100% {
  15. -webkit-transform: translateY(0);
  16. opacity:1;
  17. }
  18. }
  19. #zjl .box { top: 50px; }
  20. .pop .box .closeb { cursor: pointer; position: absolute; display: block; border-radius: 50%; width: 30px; height: 30px; text-indent: -9999px; top: 5px; right: 5px; }
  21. .pop .box .closeb:after { position: absolute; content: '.'; display: block; width: 20px; height: 1px; background: #B9B9B9; -webkit-transform: rotate(45deg); top: 14px; left: 5px; }
  22. .pop .box .closeb:before { position: absolute; content: '.'; display: block; width: 20px; height: 1px; background: #B9B9B9; -webkit-transform: rotate(-45deg); top: 14px; left: 5px; }
  23. .pop .box h1 { color: #333; text-align: center; padding: 10px 0; font-size: 16px; }
  24. .pop .box h2 { color: #ee635f; font-size: 12px; text-align: center; padding: 0 5px 5px 5px; word-wrap: break-word; }
  25. .pop .box .inputqy { margin: 5px 15px; overflow: hidden; }
  26. .pop .box .inputqy input { box-sizing: border-box; padding: 10px; background-color: #FCFCFC; color: #666; border-radius: 40px; width: 100%; margin: 5px auto; font-size: 14px; border: 1px #E9E9E9 solid; }
  27. .pop .box .inputqy select { box-sizing: border-box; padding: 10px; background-color: #FCFCFC; color: #666; border-radius: 40px; width: 100%; margin: 5px auto; font-size: 14px; border: 1px #E9E9E9 solid; }
  28. .pop .box .but_con { margin: 10px 15px 20px 15px; overflow: hidden; }
  29. .pop .box .w49 { width: 49%; }
  30. .pop .button_yes { width: 100%; text-align: center; display: inline-block; box-sizing: border-box; font-size: 16px; font-weight: bold; color: #fff; border-radius: 40px; padding: 10px 0; border: 1px solid #04be02; background-color: #04be02; cursor: pointer; }
  31. .pop .button_yes:active { border: 1px solid #DA443F; background-color: #04be02; }
  32. .pop .button_no { width: 100%; text-align: center; display: inline-block; box-sizing: border-box; font-size: 16px; color: #999; border-radius: 40px; padding: 10px 0; border: 1px solid #ccc; background-color: transparent; cursor: pointer; }
  33. .pop .button_no:active { background-image: linear-gradient(to top, #dedede, #f2f2f2); }
  34. .pop .jpimg { text-align: center }
  35. .pop .jpimg img { max-height: 240px; max-width: 100%; border-radius: 10px; margin-bottom: 5px; }
  36. .pop .jptext { text-align: center; font-size: 14px }
  37. .pop .jptext .ncz { margin: 20px 0; display: block; color: #04be02; }
  38. .copyright { color: #f9dc97; font-size: 14px; text-align: center; margin: 20px 0; }
  39. #pwdjp .box { top: 50px; bottom: 50px; }
  40. .popjiangpin { position: absolute; top: 40px; bottom: 15px; left: 15px; right: 15px; border-radius: 6px; }
  41. .popjiangpin ul { height: 100%;overflow: auto;-webkit-overflow-scrolling: touch }
  42. .popjiangpin ul li { margin-bottom: 5px; text-align: center; position: relative; }
  43. .popjiangpin ul li:nth-child(2n) { margin-right: 0; }
  44. .popjiangpin ul li .hdjptp { padding: 0; overflow: hidden; border-radius: 6px; background-color: #F9F9F9; }
  45. .popjiangpin ul li .jptu { position: relative; margin-bottom: 0; border-radius: 6px 0 0 6px; overflow: hidden; background-color: #FFF; width: 80px; height: 80px; float: left; }
  46. .popjiangpin ul li .jptu img { width: 100% }
  47. .popjiangpin ul li .jpms { margin-left: 90px; overflow: hidden; text-align: left; display: -webkit-box; -webkit-box-pack: center; -webkit-box-align: center; -webkit-box-orient: vertical; height: 80px; }
  48. .popjiangpin ul li .jpgs { position: absolute; bottom: 0; background-color: rgba(0, 0, 0, 0.3); color: #FFF; padding: 0; width: 100%; font-size: 12px; text-align: center }
  49. .popjiangpin ul li .jpdj { font-size: 16px; line-height: 18px; width: 100%; color: #FF4A4A; }
  50. .popjiangpin ul li .jpmc { font-size: 14px; width: 100%; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  51. .popjiangpin ul li .jptime { font-size: 12px; width: 100%; color: #777; }
  52. .popjiangpin ul li .jpduihuan { position: absolute; top: 0; right: 0; font-size: 12px; color: #fff; background-color: #EA1B29; border-radius: 0 10px; padding: 5px 10px; }
  53. .popjiangpin ul li .jpduihuan-ok { position: absolute; top: 0; right: 0; font-size: 12px; color: #fff; background-color: #ccc; border-radius: 0 10px; padding: 5px 10px; }
  54. .poupFadIn { animation: poupFadIn .2s ease 0s 1; -webkit-animation: poupFadIn .2s ease 0s 1; -moz-animation: poupFadIn .2s ease 0s 1; -o-animation: poupFadIn .2s ease 0s 1; }
  55. .poupFadOut { animation: poupFadOut .2s ease 0s 1; -webkit-animation: poupFadOut .2s ease 0s 1; -moz-animation: poupFadOut .2s ease 0s 1; -o-animation: poupFadOut .2s ease 0s 1; }
  56. @-webkit-keyframes poupFadIn { from {
  57. opacity:0
  58. }
  59. to { opacity: 1 }
  60. }
  61. @-webkit-keyframes poupFadOut { from {
  62. opacity:1
  63. }
  64. to { opacity: 0 }
  65. }
  66. </style>
  67. <title>弹出注册框</title>
  68. </head>
  69. <body>
  70. <script>
  71. $(function(){
  72. $('#a1').click(function(){
  73. $('#s1').show();
  74. });
  75. $('#a3').click(function(){
  76. $('#s3').show();
  77. });
  78. $('#a4').click(function(){
  79. $('#s4').show();
  80. });
  81. $('#a5').click(function(){
  82. $('#s5').show();
  83. });
  84. })
  85. </script>
  86. <a href="javascript:;" id="a1">注册</a>
  87. <a href="javascript:;" id="a3">兑奖</a>
  88. <a href="javascript:;" id="a4">中奖</a>
  89. <a href="javascript:;" id="a5">提示</a>
  90. <div id="s1" class="pop" style="display:none;">
  91. <div class="box">
  92. <h1>填写您的资料</h1>
  93. <div class="inputqy">
  94. <h2 id="error_tip" style="color:#F00;"></h2>
  95. <input type="text" id="true_name" placeholder="请填入真实姓名" />
  96. <input type="text" id="phone" placeholder="请填入手机号码" />
  97. <input type="text" id="address" placeholder="请填入详细地址" />
  98. <select>
  99. <option>中国</option>
  100. <option>美国</option>
  101. </select>
  102. </div>
  103. <div class="but_con" >
  104. <button class="button_yes" onClick="sendtel()">确定</button>
  105. <div class="clr"></div>
  106. </div>
  107. </div>
  108. </div>
  109. <!--申请兑换-->
  110. <div id="s3" class="pop" style="display:none;">
  111. <div class="box">
  112. <b class="closeb" onClick="document.getElementById('s3').style.display='none';" ></b>
  113. <h1>申请兑换</h1>
  114. <div class="inputqy">
  115. <input type="hidden" id="winner_id" value="" />
  116. <input type="text" readonly id="snid" value="" />
  117. <input type="password" id="password" placeholder="请输入兑换密码" />
  118. </div>
  119. <div class="but_con">
  120. <button class="button_yes" onClick="ckpass();">确定</button>
  121. </div>
  122. </div>
  123. </div>
  124. <!--中奖了-->
  125. <div id="s4" class="pop" style="display:none;">
  126. <div class="box">
  127. <b class="closeb" onClick="document.getElementById('s4').style.display='none';"></b>
  128. <h1>恭喜您!您中奖了!</h1>
  129. <div class="inputqy">
  130. <div class="jpimg"><img id="jpimg" src="http://pic.xmjdwl.com/index/9gg/images/prize.png" /></div>
  131. <div class="jptext">
  132. <p id="jptype">等奖名称</p>
  133. <p id="jpname">奖品具体名称</p>
  134. </div>
  135. </div>
  136. <div id="zjlbtn" class="but_con" style="display:none;">
  137. <button class="button_yes" onClick="document.getElementById('wszlBox').style.display='';">领奖</button>
  138. </div>
  139. </div>
  140. </div>
  141. <!--未中奖-->
  142. <div id="s5" class="pop" style="display:none;">
  143. <div class="box">
  144. <h1></h1>
  145. <div class="inputqy">
  146. <div class="jptext"><span class="ncz">很遗憾,没抽中任何奖品!</span></div>
  147. </div>
  148. <div class="but_con">
  149. <button class="button_yes" onClick="document.getElementById('s5').style.display='none';">知道啦</button>
  150. </div>
  151. </div>
  152. </div>
  153. </body>
  154. </html>