Commit 1ff1646f by wangshuo

打包

parent f8f1f32f
...@@ -35,12 +35,6 @@ class Single extends Component { ...@@ -35,12 +35,6 @@ class Single extends Component {
} }
} }
componentWillReceiveProps(nextProps, nextContext) {
this.setState({
showSingleBox: nextProps.singleBox
})
}
// 选择支付方式 // 选择支付方式
check = (type) => { check = (type) => {
this.setState({ this.setState({
...@@ -314,7 +308,7 @@ class Single extends Component { ...@@ -314,7 +308,7 @@ class Single extends Component {
return ( return (
<div> <div>
{ {
showSingleBox && this.props.singleBox &&
<div className='popup-box'> <div className='popup-box'>
{ {
this.state.status === 1 && this.state.status === 1 &&
...@@ -351,6 +345,11 @@ class Single extends Component { ...@@ -351,6 +345,11 @@ class Single extends Component {
<div className='btn btn-18B4ED' onClick={this.toBuy}>确认购买</div> <div className='btn btn-18B4ED' onClick={this.toBuy}>确认购买</div>
</div> </div>
} }
</div>
}
{
showSingleBox &&
<div className='popup-box'>
{ {
this.state.status === 2 && this.state.status === 2 &&
<div className='content payment-success'> <div className='content payment-success'>
......
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