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
孙凯
6 years ago
Commit
72918b943a1f6915261fe02de0d3e5d9b8e3d0a4
1 parent
71265793
修改 定时器不对的bug review by chenling
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
js/groupPurchase/components/GroupDetailHeader.js
js/groupPurchase/reducers/groupPurchaseDetail/groupPurchaseDetailReducer.js
js/groupPurchase/components/GroupDetailHeader.js
View file @
72918b9
...
...
@@ -100,6 +100,7 @@ export default class GroupDetailHeader extends React.Component {
if
(
!
resource
){
return
null
;
}
let
groupId
=
resource
.
groupId
;
let
leftTime
=
resource
.
leftTime
;
let
isNewCustomer
=
resource
.
isNewCustomer
;
...
...
@@ -118,9 +119,8 @@ export default class GroupDetailHeader extends React.Component {
let
buttonText
=
''
;
let
tipTitle
=
''
;
let
tipTitlecolor
=
'#D0021B'
;
if
(
diffTime
==
0
){
diffTime
=
parseInt
(
leftTime
);
}
diffTime
=
parseInt
(
leftTime
);
if
(
pageGo
==
1
||
pageGo
==
2
||
pageGo
==
3
){
this
.
startTimer
();
}
else
{
...
...
js/groupPurchase/reducers/groupPurchaseDetail/groupPurchaseDetailReducer.js
View file @
72918b9
...
...
@@ -117,7 +117,7 @@ export default function couponReducer(state = initialState, action) {
.
setIn
([
'groupDetail'
,
'error'
],
action
.
payload
);
}
case
UPDATE_LEFTTIME
:
{
state
.
setIn
([
'groupDetail'
,
'leftTime'
],
action
.
payload
);
return
state
.
setIn
([
'groupDetail'
,
'leftTime'
],
action
.
payload
);
}
}
...
...
Please
register
or
login
to post a comment