| | |
| | | sync: false, // 是否统一请求数据 |
| | | data: null, // 数据 |
| | | BData: '', |
| | | card: null |
| | | card: null, |
| | | description: false |
| | | } |
| | | |
| | | /** |
| | |
| | | message: '未获取到快递信息', |
| | | duration: 10 |
| | | }) |
| | | } else if (/查询无结果/.test(res)) { |
| | | this.setState({description: res, data: [], loading: false}) |
| | | } else { |
| | | let data = res.split(/\n/).filter(Boolean) |
| | | |
| | |
| | | } |
| | | |
| | | render() { |
| | | const { config, loading, data } = this.state |
| | | const { config, loading, data, description } = this.state |
| | | |
| | | return ( |
| | | <div className="normal-timeline-box" id={'anchor' + config.uuid} style={{...config.style}}> |
| | |
| | | {data.map(item => this.getMknodes(item))} |
| | | </div> : null} |
| | | {data && data.length === 0 ? <div className="card-row-list" style={{height: config.wrap.contentHeight}}> |
| | | <Empty description={false}/> |
| | | <Empty description={description}/> |
| | | </div> : null} |
| | | </div> |
| | | ) |