Commit 017c3861 by wangshuo

打包

parent 2d2e08c4
...@@ -22,6 +22,7 @@ class Single extends Component { ...@@ -22,6 +22,7 @@ class Single extends Component {
endTime: '', endTime: '',
groupOrderId: '', groupOrderId: '',
payType: '0', // 1支付宝 0微信 payType: '0', // 1支付宝 0微信
singleBox: false,
} }
} }
...@@ -34,6 +35,12 @@ class Single extends Component { ...@@ -34,6 +35,12 @@ class Single extends Component {
} }
} }
componentWillReceiveProps(nextProps, nextContext) {
this.setState({
singleBox: nextProps.singleBox,
})
}
// 选择支付方式 // 选择支付方式
check = (type) => { check = (type) => {
this.setState({ this.setState({
...@@ -282,6 +289,7 @@ class Single extends Component { ...@@ -282,6 +289,7 @@ class Single extends Component {
} }
render() { render() {
let {singleBox} = this.state;
if (this.state.endTime) { if (this.state.endTime) {
let date = this.state.endTime * 1000 let date = this.state.endTime * 1000
let now = Date.now() let now = Date.now()
...@@ -299,10 +307,9 @@ class Single extends Component { ...@@ -299,10 +307,9 @@ class Single extends Component {
} }
return ( return (
<div> <div>
{ {
this.props.singleBox && singleBox &&
<div className='popup-box'> <div className='popup-box'>
{ {
this.state.status === 1 && this.state.status === 1 &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment