ia_air_purifier.html 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="pragma" content="no-cache">
  6. <meta http-equiv="cache-control" content="no-cache">
  7. <meta http-equiv="expires" content="0">
  8. <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
  9. <meta name="apple-mobile-web-app-capable" content="yes">
  10. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  11. <meta name="format-detection" content="telphone=no, email=no" />
  12. <title>Aiberle爱贝源-内购</title>
  13. <link rel="stylesheet" type="text/css" href="css/mui.min.css" />
  14. <link rel="stylesheet" type="text/css" href="css/iconfont.css" />
  15. <link rel="stylesheet" type="text/css" href="css/main.css" />
  16. <style>
  17. .back{background: url(images/ia_air_purifier_back.jpg);background-size: 100%; background-repeat:no-repeat;}
  18. </style>
  19. </head>
  20. <body>
  21. <div class="back" style="width: 100%; height: 100%;">
  22. <div style="height: 355px;"></div>
  23. <div class="product_to"><img src="images/ia_air_purifier_product.jpg" alt="" style="width: 66%;display: block;margin-left: 18%;"></div>
  24. <div><img src="images/ia_air_purifier.jpg" alt="" style="width: 20%;display: block;margin-left: 40%;margin-top: 9px;"></div>
  25. <div style="height: 20px; text-align: center; font-size: 13px; color: #ffffff; margin-bottom: 0px;">扫码领券购买</div>
  26. </div>
  27. <script src="js/mui.min.js"></script>
  28. <script src="js/jquery-2.1.1.min.js"></script>
  29. <script src="js/jquery.autocompleter.js"></script>
  30. <script src="js/main.js"></script>
  31. </body>
  32. <script>
  33. mui.ready(function() {
  34. $.ajax(base_path + '/wechat/coupon/receive_coupon_end?dates=' + new Date().getTime(), {
  35. data: {
  36. "couponId": 50000
  37. },
  38. dataType: 'json',
  39. xhrFields: {
  40. withCredentials: true
  41. },
  42. crossDomain: true,
  43. type: 'post',
  44. timeout: 15000,
  45. success: function(dt) {
  46. if(dt.isRedirect) {
  47. location.href = dt.redirectURL;
  48. } else {
  49. if(dt.status) {
  50. mui.toast(dt.message);
  51. } else {
  52. mui.toast(dt.message);
  53. }
  54. mui.openWindow({
  55. url: 'pro-details.html?productId=53'
  56. });
  57. }
  58. },
  59. error: function(xhr, type, errorThrown) {
  60. console.log(xhr);
  61. mui.alert("领取失败!网络出小差了", function() {
  62. });
  63. }
  64. });
  65. });
  66. $(document).on('tap', '.product_to', function() {
  67. mui.openWindow({
  68. url: 'pro-details.html?productId=53'
  69. });
  70. });
  71. </script>
  72. </html>