Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mr-julyedu
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
baiguangyao
mr-julyedu
Commits
017c3861
Commit
017c3861
authored
Aug 22, 2019
by
wangshuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
打包
parent
2d2e08c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
src/components/detail/single/index.js
+9
-2
No files found.
src/components/detail/single/index.js
View file @
017c3861
...
...
@@ -22,6 +22,7 @@ class Single extends Component {
endTime
:
''
,
groupOrderId
:
''
,
payType
:
'0'
,
// 1支付宝 0微信
singleBox
:
false
,
}
}
...
...
@@ -34,6 +35,12 @@ class Single extends Component {
}
}
componentWillReceiveProps
(
nextProps
,
nextContext
)
{
this
.
setState
({
singleBox
:
nextProps
.
singleBox
,
})
}
// 选择支付方式
check
=
(
type
)
=>
{
this
.
setState
({
...
...
@@ -282,6 +289,7 @@ class Single extends Component {
}
render
()
{
let
{
singleBox
}
=
this
.
state
;
if
(
this
.
state
.
endTime
)
{
let
date
=
this
.
state
.
endTime
*
1000
let
now
=
Date
.
now
()
...
...
@@ -299,10 +307,9 @@ class Single extends Component {
}
return
(
<
div
>
{
this
.
props
.
singleBox
&&
singleBox
&&
<
div
className
=
'popup-box'
>
{
this
.
state
.
status
===
1
&&
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment