import React, {Component} from 'react'; import {Row, Col, List, Avatar} from 'antd'; import {stores_Context} from '../config' import {observer} from 'mobx-react'; import { toJS } from "mobx"; class Wechat_session extends Component { static contextType = stores_Context; constructor(props) { super(props); } handleUserClick(user) { ///weixin/wxwork/get_externalcontact_list?userid=misscarol&searchstr= const {wechatStore} = this.context; wechatStore.fetchContactList(user); } render() { const {wechatStore} = this.context; const userList = wechatStore.userList; const contactList = wechatStore.contactList; return (
( {this.handleUserClick(user)}}> } title={user.username} description="" /> )} /> ( {console.info(contact)}}> } title={contact.username} description="" /> )} />
); } } export default observer(Wechat_session);