goods.js 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. const List = [
  2. {
  3. uuid: '@uuid',
  4. icon: 'dashboard-2-line',
  5. title: 'Dashboard Pro',
  6. price: '众筹版 ¥899',
  7. label: ['敬请期待', '人工智能', '科技风'],
  8. company: 'vdp',
  9. url: 'http://vue-admin-beautiful.com/dashboard-pro',
  10. description:
  11. '为答谢付费版用户支持:凡是购买过Admin Pro、Admin Plus版本老用户新购买Dashboard Pro版本立返现金红包100元',
  12. },
  13. {
  14. uuid: '@uuid',
  15. svg: 'https://gitee.com/chu1204505056/image/raw/master/logo/vab.svg',
  16. title: 'vue-admin-beautiful',
  17. price: '免费',
  18. label: ['vue', 'element-ui', 'MIT协议'],
  19. company: 'vab',
  20. url: 'https://github.com/chuzhixin/vue-admin-beautiful',
  21. description: '绝佳的开源、企业级、中后台前端框架',
  22. },
  23. {
  24. uuid: '@uuid',
  25. svg: 'https://gitee.com/chu1204505056/image/raw/master/logo/vdb.svg',
  26. title: 'vue-datav-beautiful-pro',
  27. price: 'Admin Pro + Admin Plus 1299版本赠品',
  28. label: ['数据大屏'],
  29. company: 'vdb',
  30. url: 'https://github.com/vue-datav-beautiful',
  31. description: '立志做国内最好的数据大屏应用',
  32. },
  33. {
  34. uuid: '@uuid',
  35. image: 'https://gitee.com/chu1204505056/image/raw/master/goods/uview.gif',
  36. title: 'uview',
  37. price: '免费',
  38. label: ['uniapp', '跨平台', '组件'],
  39. company: '言信网络',
  40. url: 'http://uviewui.com',
  41. description:
  42. '跨 7 端移动端框架,全面的组件和便捷的工具会让您信手拈来,如鱼得水',
  43. },
  44. {
  45. uuid: '@uuid',
  46. title: 'form-generator',
  47. icon: 'newspaper-line',
  48. price: '免费',
  49. label: ['element-ui', '表单设计器'],
  50. company: 'form-generator',
  51. url: 'https://mrhj.gitee.io/form-generator',
  52. description: 'Element UI表单设计及代码生成器',
  53. },
  54. {
  55. uuid: '@uuid',
  56. title: 'OPSLI',
  57. image: 'https://gitee.com/chu1204505056/image/raw/master/goods/OPSLI.png',
  58. price: '免费',
  59. label: ['spring-boot', 'vue-admin-beautiful'],
  60. company: 'OPSLI',
  61. url: 'https://www.opsli.com',
  62. description: 'vue-admin-beautiful开源版即可spring boot的最佳实践',
  63. },
  64. {
  65. uuid: '@uuid',
  66. title: 'fuep物料库',
  67. image: 'https://gitee.com/chu1204505056/image/raw/master/goods/fuep.png',
  68. price: '免费',
  69. label: ['物料库', '可视化布局', 'vue3'],
  70. company: '火叶',
  71. url: 'http://www.fuep.net/',
  72. },
  73. ]
  74. module.exports = [
  75. {
  76. url: '/goods/getList',
  77. type: 'get',
  78. response(config) {
  79. const { title, pageNo = 1, pageSize = 20 } = config.query
  80. const mockList = List.filter(
  81. (item) => !(title && item.title.indexOf(title) < 0)
  82. )
  83. const list = mockList.filter(
  84. (item, index) =>
  85. index < pageSize * pageNo && index >= pageSize * (pageNo - 1)
  86. )
  87. return {
  88. code: 200,
  89. msg: 'success',
  90. data: { list, ...{ total: mockList.length } },
  91. }
  92. },
  93. },
  94. ]