forked from nsjcy/frontEnd/nsjcy

liuwh
2020-03-31 a0ec2242677dced1e6e098c114460da3d56be157
SunshineIns/src/page/SignIn.jsx
@@ -30,15 +30,18 @@
    }
    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)
@@ -46,7 +49,7 @@
                    code: res.data.code,
                    personList: res.data.personList,
                    activityName: res.data.activityName,
                    loading: false,
                    // loading: false,
                });
            })
    }
@@ -90,7 +93,7 @@
                                        </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> : ''