Commit 96c62e90 by FE

invite data modify

parent d2d71749
...@@ -13,6 +13,7 @@ class Invite extends Component { ...@@ -13,6 +13,7 @@ class Invite extends Component {
isWeiXin: false, isWeiXin: false,
showTip: false, showTip: false,
hotValue: 0, hotValue: 0,
hot_schedule: '',
userList: [], userList: [],
} }
} }
...@@ -60,6 +61,7 @@ class Invite extends Component { ...@@ -60,6 +61,7 @@ class Invite extends Component {
let {code, data, msg} = res.data; let {code, data, msg} = res.data;
if(code === 200) { if(code === 200) {
this.setState({ this.setState({
hot_schedule: data.hot_schedule,
hotValue: data.hot_value hotValue: data.hot_value
}); });
} else { } else {
...@@ -123,7 +125,7 @@ class Invite extends Component { ...@@ -123,7 +125,7 @@ class Invite extends Component {
} }
render() { render() {
let {userList, showTip, hotValue, isWeiXin} = this.state; let {userList, showTip, hotValue, hot_schedule, isWeiXin} = this.state;
return ( return (
<div className="activity__con"> <div className="activity__con">
<div className='banner__con'></div> <div className='banner__con'></div>
...@@ -145,7 +147,7 @@ class Invite extends Component { ...@@ -145,7 +147,7 @@ class Invite extends Component {
<div className="hot__progress"> <div className="hot__progress">
<span>0</span> <span>0</span>
<div className="progress__bar"> <div className="progress__bar">
<div className="progress__point" style={{'width': hotValue + '%'}}></div> <div className="progress__point" style={{'width': hot_schedule}}></div>
</div> </div>
<span>3600</span> <span>3600</span>
</div> </div>
......
...@@ -47,7 +47,6 @@ class BlessingRank extends Component { ...@@ -47,7 +47,6 @@ class BlessingRank extends Component {
Popup({ Popup({
title: '收货信息', title: '收货信息',
content: <AddressPopup handleToHide={() => this.handleToSwitch(false)}/> content: <AddressPopup handleToHide={() => this.handleToSwitch(false)}/>
}) })
} }
} }
......
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