...
|
...
|
@@ -17,6 +17,8 @@ var itemWidth = $couponItem.outerWidth(true), |
|
|
|
|
|
var indexNum = 0;
|
|
|
|
|
|
var myCouponUrl = '//www.yohobuy.com/home/coupons';
|
|
|
|
|
|
var couponPickConfig = {
|
|
|
success: {
|
|
|
content: '<i class="iconfont"></i>已领取',
|
...
|
...
|
@@ -30,7 +32,7 @@ var couponPickConfig = { |
|
|
name: '查看优惠券',
|
|
|
btnClass: ['btn-close'],
|
|
|
cb: function() {
|
|
|
window.open('//www.yohobuy.com/home/coupons');
|
|
|
window.open(myCouponUrl);
|
|
|
}
|
|
|
}]
|
|
|
},
|
...
|
...
|
@@ -54,7 +56,7 @@ var couponPickConfig = { |
|
|
name: '查看优惠券',
|
|
|
btnClass: ['btn-close'],
|
|
|
cb: function() {
|
|
|
window.open('//www.yohobuy.com/home/coupons');
|
|
|
window.open(myCouponUrl);
|
|
|
}
|
|
|
}]
|
|
|
},
|
...
|
...
|
@@ -188,6 +190,9 @@ function pickCoupon(info) { |
|
|
]}, couponPickConfig.expired);
|
|
|
break;
|
|
|
case 400:
|
|
|
if (data.data && data.data.refer) {
|
|
|
window.location.href = data.data.refer;
|
|
|
}
|
|
|
opt = couponPickConfig.notLogged;
|
|
|
break;
|
|
|
case 401:
|
...
|
...
|
|