yungu-newnotice
v1.0.0
Published
npm install yungu-newnotice --save
Downloads
3
Readme
npm install yungu-newnotice --save
import { NewNotice } from 'yungu-global-util';
getNoticeData = (payload) => { this.props.dispatch({ type:'record/getNoticeList', payload: payload }) }
pushRead = (ids) => { this.props.dispatch({ type:'record/noticeRead', payload: { ids: ids, }, onSuccess: () => { const payload = { pageNo: 1, pageSize: 10, read: false, } this.getNoticeData(payload); } }) } /参数说明/: noReadNoticeList: 未读消息列表(必填) readNoticeList: 已读消息列表 (选填) unreadTotal: 未读数量(必填) getNoticeData: 获取消息列表,方法传入 (必填) pushRead: 标记已读,方法传入(必填)