Authored by 陈林

增加显示已抢光优惠券。review by 孙凯。

... ... @@ -56,9 +56,11 @@ export default class CouponCell extends React.Component {
if (rowData.status == 1) {
statesTitle = '立即领取';
}else if (rowData.status == 2) {
statesTitle = '已领取';
}else {
statesTitle = '已抢光';
}else if (rowData.status == 3) {
statesTitle = '已领取';
}else if (rowData.status == 4){
statesTitle = '已过期';
}
if (yh_exposureData) {
yh_exposureData = {
... ...
... ... @@ -396,14 +396,14 @@ function parseCouponList(json) {
_.forEach(json, value => {
let couPonstatus = parseInt(value.status, 10);
if (couPonstatus === 1 || couPonstatus === 3) {
if (couPonstatus === 1 || couPonstatus === 2 || couPonstatus === 3) {
shopCoupons.push({
validity: value.couponValidity,
id: value.coupon_id,
name: value.coupon_name,
pic: value.coupon_pic,
money: parseInt(value.money, 10),
status: couPonstatus === 1
status: couPonstatus
});
logShopCoupons.push({
... ...
... ... @@ -984,14 +984,14 @@ function parseCouponList(json) {
_.forEach(json, value => {
let couPonstatus = parseInt(value.status, 10);
if (couPonstatus === 1 || couPonstatus === 3) {
if (couPonstatus === 1 || couPonstatus === 2 || couPonstatus === 3) {
shopCoupons.push({
validity: value.couponValidity,
id: value.coupon_id,
name: value.coupon_name,
pic: value.coupon_pic,
money: parseInt(value.money, 10),
status: couPonstatus === 1
status: couPonstatus
});
}
});
... ...