ia_air_purifier.html 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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: 107px;"></div>
  23. <div class="receive"><img src="images/ia_air_receive.png" alt="" style="width: 66%;display: block;margin-left: 19%;margin-top: 20px;margin-bottom: 35px;"></div>
  24. <div class="product_to"><img src="images/ia_air_purifier_product.jpg" alt="" style="width: 66%;display: block;margin-left: 18%; margin-bottom: 85px;"></div>
  25. <!-- <div><img src="images/ia_air_purifier.jpg" alt="" style="width: 20%;display: block;margin-left: 40%;margin-top: 9px;"></div> -->
  26. <!-- <div style="height: 20px; text-align: center; font-size: 13px; color: #ffffff; margin-bottom: 0px;">扫码领券购买</div> -->
  27. </div>
  28. <script src="js/mui.min.js"></script>
  29. <script src="js/jquery-2.1.1.min.js"></script>
  30. <script src="js/jquery.autocompleter.js"></script>
  31. <script src="js/main.js"></script>
  32. </body>
  33. <script>
  34. mui.ready(function() {
  35. $.ajax(base_path + '/wechat/getUserInfo?dates=' + new Date().getTime(), {
  36. dataType: 'json',
  37. type: 'post',
  38. timeout: 15000,
  39. xhrFields: {
  40. withCredentials: true
  41. },
  42. crossDomain: true,
  43. success: function(dt) {
  44. if(dt.isRedirect) {
  45. location.href = dt.redirectURL;
  46. } else {
  47. console.log("用户信息刷新成功或今日已经刷新");
  48. }
  49. },
  50. error: function(xhr, type, errorThrown) {
  51. console.log(xhr)
  52. }
  53. });
  54. });
  55. $(document).on('tap', '.receive', function() {
  56. $.ajax(base_path + '/wechat/coupon/receive_coupon_end?dates=' + new Date().getTime(), {
  57. data: {
  58. "couponId": 50000
  59. },
  60. dataType: 'json',
  61. xhrFields: {
  62. withCredentials: true
  63. },
  64. crossDomain: true,
  65. type: 'post',
  66. timeout: 15000,
  67. success: function(dt) {
  68. if(dt.isRedirect) {
  69. location.href = dt.redirectURL;
  70. } else {
  71. // if(dt.status) {
  72. // mui.toast(dt.message);
  73. // } else {
  74. // mui.toast(dt.message);
  75. // }
  76. mui.alert(dt.message, function() {
  77. mui.openWindow({
  78. url: 'pro-details.html?productId=53'
  79. });
  80. });
  81. }
  82. },
  83. error: function(xhr, type, errorThrown) {
  84. console.log(xhr);
  85. mui.alert("领取失败!网络出小差了", function() {
  86. });
  87. }
  88. });
  89. });
  90. $(document).on('tap', '.product_to', function() {
  91. mui.openWindow({
  92. url: 'pro-details.html?productId=53'
  93. });
  94. });
  95. </script>
  96. </html>