|
@@ -20,13 +20,11 @@
|
|
|
</head>
|
|
|
|
|
|
<body>
|
|
|
- <div class="back" style="width: 100%; height: 100%;">
|
|
|
+ <!-- <div class="back" style="width: 100%; height: 100%;">
|
|
|
<div style="height: 107px;"></div>
|
|
|
<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>
|
|
|
<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>
|
|
|
- <!-- <div><img src="images/ia_air_purifier.jpg" alt="" style="width: 20%;display: block;margin-left: 40%;margin-top: 9px;"></div> -->
|
|
|
- <!-- <div style="height: 20px; text-align: center; font-size: 13px; color: #ffffff; margin-bottom: 0px;">扫码领券购买</div> -->
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
|
|
|
<script src="js/mui.min.js"></script>
|
|
|
<script src="js/jquery-2.1.1.min.js"></script>
|
|
@@ -47,6 +45,7 @@
|
|
|
if(dt.isRedirect) {
|
|
|
location.href = dt.redirectURL;
|
|
|
} else {
|
|
|
+ receiveCoupon();
|
|
|
console.log("用户信息刷新成功或今日已经刷新");
|
|
|
}
|
|
|
},
|
|
@@ -56,8 +55,7 @@
|
|
|
});
|
|
|
});
|
|
|
|
|
|
-
|
|
|
- $(document).on('tap', '.receive', function() {
|
|
|
+ function receiveCoupon(){
|
|
|
$.ajax(base_path + '/wechat/coupon/receive_coupon_end?dates=' + new Date().getTime(), {
|
|
|
data: {
|
|
|
"couponId": 50001
|
|
@@ -78,11 +76,11 @@
|
|
|
// } else {
|
|
|
// mui.toast(dt.message);
|
|
|
// }
|
|
|
- mui.alert(dt.message, function() {
|
|
|
- mui.openWindow({
|
|
|
- url: 'pro-details.html?productId=53'
|
|
|
- });
|
|
|
+ mui.openWindow({
|
|
|
+ url: 'pro-details.html?productId=53'
|
|
|
});
|
|
|
+ // mui.alert(dt.message, function() {
|
|
|
+ // });
|
|
|
}
|
|
|
},
|
|
|
error: function(xhr, type, errorThrown) {
|
|
@@ -91,7 +89,7 @@
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
- });
|
|
|
+ }
|
|
|
|
|
|
$(document).on('tap', '.product_to', function() {
|
|
|
mui.openWindow({
|