|
@@ -589,35 +589,35 @@
|
|
|
|
|
|
// $(document).on('tap', '.coupon_class>ul>li', function() {
|
|
|
// var couponId = this.getAttribute("couponId");
|
|
|
- // $.ajax(base_path + '/wechat/coupon/receive_coupon_end?dates=' + new Date().getTime(), {
|
|
|
- // data: {
|
|
|
- // "couponId": couponId
|
|
|
- // },
|
|
|
- // dataType: 'json',
|
|
|
- // xhrFields: {
|
|
|
- // withCredentials: true
|
|
|
- // },
|
|
|
- // crossDomain: true,
|
|
|
- // type: 'post',
|
|
|
- // timeout: 15000,
|
|
|
- // success: function(dt) {
|
|
|
- // if(dt.isRedirect) {
|
|
|
- // location.href = dt.redirectURL;
|
|
|
- // } else {
|
|
|
- // if(dt.status) {
|
|
|
- // mui.toast(dt.message);
|
|
|
- // } else {
|
|
|
- // mui.toast(dt.message);
|
|
|
- // }
|
|
|
- // }
|
|
|
- // },
|
|
|
- // error: function(xhr, type, errorThrown) {
|
|
|
- // console.log(xhr);
|
|
|
- // mui.alert("领取失败!网络出小差了", function() {
|
|
|
+ // $.ajax(base_path + '/wechat/coupon/receive_coupon_end?dates=' + new Date().getTime(), {
|
|
|
+ // data: {
|
|
|
+ // "couponId": couponId
|
|
|
+ // },
|
|
|
+ // dataType: 'json',
|
|
|
+ // xhrFields: {
|
|
|
+ // withCredentials: true
|
|
|
+ // },
|
|
|
+ // crossDomain: true,
|
|
|
+ // type: 'post',
|
|
|
+ // timeout: 15000,
|
|
|
+ // success: function(dt) {
|
|
|
+ // if(dt.isRedirect) {
|
|
|
+ // location.href = dt.redirectURL;
|
|
|
+ // } else {
|
|
|
+ // if(dt.status) {
|
|
|
+ // mui.toast(dt.message);
|
|
|
+ // } else {
|
|
|
+ // mui.toast(dt.message);
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // },
|
|
|
+ // error: function(xhr, type, errorThrown) {
|
|
|
+ // console.log(xhr);
|
|
|
+ // mui.alert("领取失败!网络出小差了", function() {
|
|
|
|
|
|
- // });
|
|
|
- // }
|
|
|
- // });
|
|
|
+ // });
|
|
|
+ // }
|
|
|
+ // });
|
|
|
// });
|
|
|
|
|
|
/**
|