| | |
| | | } |
| | | |
| | | componentDidMount() { |
| | | |
| | | document.title = '签到上墙'; |
| | | this.getData(); |
| | | setInterval(() => this.getData(), 5000) |
| | | } |
| | | |
| | | componentWillMount() { |
| | | this.getData() |
| | | } |
| | | |
| | | getData = () => { |
| | | // signinfo |
| | | const { id } = this.props.match.params; |
| | | this.setState({ loading: true }) |
| | | // this.setState({ loading: true }) |
| | | Fetch.signinfo(id) |
| | | .then(res => { |
| | | console.log(res) |
| | |
| | | code: res.data.code, |
| | | personList: res.data.personList, |
| | | activityName: res.data.activityName, |
| | | loading: false, |
| | | // loading: false, |
| | | }); |
| | | }) |
| | | } |
| | |
| | | </div> |
| | | { |
| | | item.signStatus == 3 ? |
| | | <div style={{ padding: '0 12px',width:'168px' }}> |
| | | <div style={{ padding: '0 12px', width: '168px' }}> |
| | | <div>签到人:{item.proposerName}</div> |
| | | <div>签到时间:{moment(item.updateTime).format(format)}</div> |
| | | </div> : '' |