1.0.0 • Published 5 years ago

yungu-newnotice v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

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: 标记已读,方法传入(必填)