notice.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. const List = [
  2. {
  3. email: '@email',
  4. image: 'https://i.gtimg.cn/club/item/face/img/8/15918_100.gif',
  5. notice:
  6. 'github开源地址:<a target="_blank" href="https://github.com/chuzhixin/vue-admin-beautiful">点我</a>',
  7. },
  8. {
  9. email: '@email',
  10. image: 'https://i.gtimg.cn/club/item/face/img/0/15640_100.gif',
  11. notice:
  12. '开源中国地址:<a target="_blank" href="https://www.oschina.net/p/vue-admin-beautiful">点我</a>',
  13. },
  14. {
  15. email: '@email',
  16. image: 'https://i.gtimg.cn/club/item/face/img/9/15919_100.gif',
  17. notice:
  18. "gitee开源地址:<a target='_blank' href='https://gitee.com/chu1204505056/vue-admin-beautiful?_from=gitee_search'>点我</a>",
  19. },
  20. ]
  21. //未读消息
  22. const unreadMsgList = [
  23. {
  24. content: '标题一',
  25. createTime: '2018-01-01',
  26. type: '1',
  27. },
  28. {
  29. content: '标题二',
  30. createTime: '2018-01-01',
  31. type: '1',
  32. },
  33. ]
  34. module.exports = [
  35. {
  36. url: '/notice/getList',
  37. type: 'get',
  38. response: () => {
  39. return {
  40. code: 200,
  41. msg: 'success',
  42. data: {
  43. list: List,
  44. total: List.length,
  45. unreadMsgList: unreadMsgList,
  46. value: unreadMsgList.length,
  47. },
  48. }
  49. },
  50. },
  51. ]