ruihuan.html 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  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. <style>
  8. .box-my {
  9. display: flex;
  10. justify-content: center;
  11. }
  12. </style>
  13. <title>兑换页面</title>
  14. </head>
  15. <script type="text/javascript">
  16. var deviceWidth = document.documentElement.clientWidth;
  17. if (deviceWidth > 760) {
  18. deviceWidth = 760;
  19. }
  20. document.documentElement.style.fontSize = deviceWidth / 7.5 + "px";
  21. </script>
  22. <style>
  23. body {
  24. margin: 0;
  25. }
  26. .overlay {
  27. position: fixed;
  28. top: 0;
  29. right: 0;
  30. bottom: 0;
  31. left: 0;
  32. z-index: 9990;
  33. background-color: rgba(0, 0, 0, 0.3);
  34. min-height: 6.5rem;
  35. }
  36. .close {
  37. position: absolute;
  38. top: 0;
  39. right: 0.45rem;
  40. width: 0.59rem;
  41. height: 0.69rem;
  42. }
  43. img {
  44. width: 51%;
  45. position: absolute;
  46. top: 1.2rem;
  47. left: 2rem;
  48. }
  49. h1 {
  50. font-size: 0.36rem;
  51. font-weight: bold;
  52. text-align: center;
  53. margin-top: 0.6rem;
  54. }
  55. .dialog-alert {
  56. position: fixed;
  57. top: 4.62rem;
  58. left: 0.62rem;
  59. right: 0.62rem;
  60. height: 3.45rem;
  61. border-radius: 0.3rem;
  62. z-index: 9992;
  63. background: #ffffff;
  64. }
  65. .actions {
  66. font-size: 0.3rem;
  67. display: flex;
  68. align-items: center;
  69. margin-left: 1.9rem;
  70. }
  71. .okay {
  72. color: white;
  73. float: left;
  74. background: #0bb577;
  75. }
  76. .btn {
  77. color: white;
  78. font-size: 0.36rem;
  79. background: linear-gradient(-90deg, #1E98DF, #5256D5);
  80. display: flex;
  81. align-items: center;
  82. justify-content: center;
  83. border-radius: 0.4rem;
  84. padding: 0;
  85. margin: 0;
  86. width: 2.34rem;
  87. height: 0.72rem;
  88. }
  89. .content {
  90. font-size: 0.38rem;
  91. text-align: center;
  92. margin-bottom: 0.4rem;
  93. }
  94. .zhi {
  95. position: absolute;
  96. top: 5.3rem;
  97. width: 2rem;
  98. height: 2rem;
  99. left: 2.8rem;
  100. }
  101. .box {
  102. background: url(./cd2img/banner-bg@4x.png);
  103. background-size: 100% 100%;
  104. width: 100%;
  105. height: 4rem;
  106. margin-top: 0.8rem;
  107. }
  108. .fanhui {
  109. position: absolute;
  110. top: 0.05rem;
  111. font-size: 0.5rem;
  112. left: 0.28rem;
  113. }
  114. .text_ac {
  115. margin: 0;
  116. font-size: 0.38rem;
  117. letter-spacing: 0.03rem;
  118. height: 1rem;
  119. border-bottom: solid 0.15rem #eeeeee91;
  120. line-height: 1rem;
  121. font-weight: 600;
  122. text-indent: 0.3rem;
  123. }
  124. .txte {
  125. margin: 0;
  126. font-size: 0.24rem;
  127. width: 6.89rem;
  128. margin-left: 0.3rem;
  129. line-height: 0.45rem;
  130. letter-spacing: 0.01rem;
  131. color: #7c7878;
  132. }
  133. .txte_ace {
  134. font-size: 0.29rem;
  135. margin: 0;
  136. text-indent: 0.3rem;
  137. margin-top: 0.2rem;
  138. margin-bottom: 0.1rem;
  139. letter-spacing: 0.02rem;
  140. font-weight: 500;
  141. }
  142. .tui {
  143. width: 6.8rem;
  144. background: #d60000;
  145. margin-left: 0.35rem;
  146. font-size: 0.36rem;
  147. height: 0.89rem;
  148. border-radius: 0.2rem;
  149. font-weight: 500;
  150. line-height: 0.88rem;
  151. text-align: center;
  152. color: #fff;
  153. letter-spacing: 0.02rem;
  154. margin-top: 1.55rem;
  155. margin-bottom: 0.6rem;
  156. }
  157. </style>
  158. <body>
  159. <span onclick="a()" class="fanhui"><</span>
  160. <div class="box">
  161. <img src="./cd2img/10元红包@4x.png" alt="">
  162. </div>
  163. <p class="text_ac">10元话费劵</p>
  164. <p class="txte_ace">兑换说明</p>
  165. <p class="txte">1.活动时间:2021年7月1日-2021年9月30日;</p>
  166. <p class="txte">2.活动形式:</p>
  167. <p class="txte">(1)活动期间,中国联通用户可参与抽话费活动,5元、10元、15元、20元、50元、100元等不同面额话费券,100%中奖;中将后用户需手动发起话费兑换,兑换成功后话费将于10个工作日内充值至手机号码;</p>
  168. <p class="txte">(2)活动期间,用户可分享给好友可增加抽奖机会;</p>
  169. <p class="txte">3.兑换时间:2021年7月1日-2021年12月31日;</p>
  170. <p class="txte">4.了解更多流量产品,<a style="color: #0059ff;" onclick="b()">点此进入;</a></p>
  171. <p class="txte">5.需在有效期内进行兑换,如话费券过期奖无法进行兑换;</p>
  172. <div class="tui" onclick="c()">马上兑换</div>
  173. </body>
  174. <script src="../public/libs/jquery-min.js"></script>
  175. <script>
  176. function c() {
  177. showAlert("活动已结束!")
  178. }
  179. function b() {
  180. window.location.href = 'https://800.wo.cn/orderchannel/douyin/poly/index9cd.html?fes=jkk&sou=n2&type=poly&ProvincesThreen2&t=1667056926741'
  181. }
  182. function a() {
  183. history.back()
  184. }
  185. function showAlert(message, hideButton, buttonLabel, hideTitle) {
  186. var title = '';
  187. if (hideTitle == undefined || hideTitle == false) {
  188. title = '温馨提示';
  189. }
  190. var $overlay = $('<div class="overlay overlay-alert"></div>');
  191. var $dialog = $(
  192. '<div class="dialog-alert">' +
  193. '<h1>' + title + '</h1>' +
  194. '<div class="content">' + message + '</div>' +
  195. '<div class="actions">' +
  196. ' <div class="btn">' + (buttonLabel == null || buttonLabel == "" ? "关闭" : buttonLabel) + '</div>' +
  197. '</div>' +
  198. '</div>');
  199. $("body").css("overflow", "hidden");
  200. $overlay.appendTo($(document.body));
  201. $dialog.appendTo($(document.body));
  202. if (hideButton == true) {
  203. $dialog.find('.btn').remove();
  204. }
  205. $dialog.close = function() {
  206. $("body").css("overflow", "auto");
  207. $overlay.remove();
  208. $dialog.remove();
  209. $dialog = null;
  210. }
  211. var def = $.Deferred();
  212. $dialog.find('.btn').on('click', function() {
  213. $dialog.close()
  214. def.resolve($dialog);
  215. })
  216. return def;
  217. }
  218. </script>
  219. </html>