Toggle navigation
Toggle navigation
This project
Loading...
Sign in
mobile
/
YH_RNComponent
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
陈林
8 years ago
Commit
1dca1cae78d5eed16dfacbb9f47d983bcafb6b37
1 parent
de220916
增加显示已抢光优惠券。review by 孙凯。
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
js/brandStore/components/brandStore/brandStoreSubView/Cells/CouponCell.js
js/brandStore/reducers/brandStore/brandStoreActions.js
js/redPersonBrand/reducers/redBrand/redBrandActions.js
js/brandStore/components/brandStore/brandStoreSubView/Cells/CouponCell.js
View file @
1dca1ca
...
...
@@ -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
=
{
...
...
js/brandStore/reducers/brandStore/brandStoreActions.js
View file @
1dca1ca
...
...
@@ -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
({
...
...
js/redPersonBrand/reducers/redBrand/redBrandActions.js
View file @
1dca1ca
...
...
@@ -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
});
}
});
...
...
Please
register
or
login
to post a comment