import React from 'react'
import 'antd-mobile/dist/antd-mobile.css'; 
import { Card, WingBlank, WhiteSpace } from 'antd-mobile';
import { Http } from '../Utils/help';


//钉钉代办显示窗口
export default class DingTalkWork extends React.Component {
    constructor(props) {
        super(props);
    }

    componentWillMount(){
        //console.log(this.props)
        Http.getJSON2("dingtalk/update",{"userid":this.props.location.query.userid, "record_id":this.props.location.query.record_id})
    }
   
    render() {        
        return (
            <WingBlank size="lg">
            <WhiteSpace size="lg" />
            <Card>
            <Card.Header
                title={this.props.location.query.title}
                // extra={<span></span>}
            />
            <Card.Body>
                <div>{this.props.location.query.subtitle} : {this.props.location.query.subcontent}</div>
            </Card.Body>
            <Card.Footer extra={<div>{this.props.location.query.time}</div>} />
            </Card>
            <WhiteSpace size="lg" />
        </WingBlank>
        )
    }   
}