yungu-newnotice

1.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i yungu-newnotice

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

140 kB

Total Files

33

Last publish

Collaborators

  • hhbglgg