Commit 9680d36c by FE

param of barcode modify in bargain

parent 31dad9b9
...@@ -8,7 +8,8 @@ class FollowBarcode extends Component { ...@@ -8,7 +8,8 @@ class FollowBarcode extends Component {
constructor(props) { constructor(props) {
super(props); super(props);
this.state = { this.state = {
url: '' url: '',
codeUrl: ''
} }
} }
...@@ -38,7 +39,7 @@ class FollowBarcode extends Component { ...@@ -38,7 +39,7 @@ class FollowBarcode extends Component {
} }
render() { render() {
const { codeSrc } = this.state; const { codeUrl } = this.state;
const { firendBaigainPrice, userInfo: { avatar }, money } = this.props; const { firendBaigainPrice, userInfo: { avatar }, money } = this.props;
return ( return (
<div className='bargain-popup__barcode'> <div className='bargain-popup__barcode'>
...@@ -48,7 +49,7 @@ class FollowBarcode extends Component { ...@@ -48,7 +49,7 @@ class FollowBarcode extends Component {
<p className='bargain-popup__title'>谢谢你帮我砍了{money}元!</p> <p className='bargain-popup__title'>谢谢你帮我砍了{money}元!</p>
} }
<p className='bargain-popup__desc'>关注公众号,可以再砍一刀哦~</p> <p className='bargain-popup__desc'>关注公众号,可以再砍一刀哦~</p>
<i className="bargain-popup__imgage" style={{backgroundImage: `url(${codeSrc})`}}></i> <i className="bargain-popup__imgage" style={{backgroundImage: `url(${codeUrl})`}}></i>
</div> </div>
); );
} }
......
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