Commit 626bbb43 by zhanghaozhe

领取页面bug

parent c428b2b9
......@@ -60,10 +60,8 @@ class GiveCourseAssistance extends Component {
componentWillUpdate(nextProps) {
const {user} = this.props
if (nextProps.user.hasError !== user.hasError) {
console.log(this.state.baseCode[0])
console.log(nextProps.user.data.uid)
this.setState({
getBtnStatus: nextProps.user.data.uid === this.state.baseCode[0] ? '2' : '1'
getBtnStatus: nextProps.user.data.uid === this.state.baseCode ? '2' : '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