...
|
...
|
@@ -137,18 +137,18 @@ function syncCouponStatus() { |
|
|
for (i = 0; i < info.length; i++) {
|
|
|
asyncObj[info[i].coupon_id] = info[i];
|
|
|
}
|
|
|
}
|
|
|
|
|
|
for (i in couponObj) {
|
|
|
if (couponObj.hasOwnProperty(i)) {
|
|
|
coup = asyncObj[i];
|
|
|
|
|
|
if (coup && (coup.status === 1 || coup.status === 3)) {
|
|
|
couponObj[i].status = coup.status;
|
|
|
coup.status === 3 ? setPicked(couponObj[i]) : false;
|
|
|
} else {
|
|
|
couponObj[i].status = 2; // 券不存在设置领取状态为已抢光
|
|
|
couponObj[i].dom.text('已抢光');
|
|
|
for (i in couponObj) {
|
|
|
if (couponObj.hasOwnProperty(i)) {
|
|
|
coup = asyncObj[i];
|
|
|
|
|
|
if (coup && (coup.status === 1 || coup.status === 3)) {
|
|
|
couponObj[i].status = coup.status;
|
|
|
coup.status === 3 ? setPicked(couponObj[i]) : false;
|
|
|
} else {
|
|
|
couponObj[i].status = 2; // 券不存在设置领取状态为已抢光
|
|
|
couponObj[i].dom.text('已抢光');
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
...
|
...
|
|