goods.js 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. const List = [
  2. {
  3. uuid: '@uuid',
  4. icon: 'dashboard-2-line',
  5. title: 'Dash' + 'board Pro',
  6. price: 'Admin Pro + Admin Plus 1299版' + '本赠品',
  7. label: ['敬请期待', '人工智能', '科技风'],
  8. company: 'vdp',
  9. url: 'https://vue-admin-bea' + 'utiful.com/dashboard-pro',
  10. description: 'Admin Pro + Adm' + 'in Plus 1299版本赠品',
  11. },
  12. {
  13. uuid: '@uuid',
  14. image:
  15. 'https://p3-armor.byteimg.com/tos-cn-i-49unhts6dw/dfdba' +
  16. '5317c0c20ce20e64fac8' +
  17. '03d52bc.svg~tplv-49unhts6dw-image.image',
  18. title: 'vue-admin-arco',
  19. price: '免费',
  20. label: ['vue3', 'arco-design', 'MIT协议'],
  21. company: 'vab',
  22. url: 'https://github.com/chuzhixin/vue-admin-arco',
  23. description:
  24. '在字节跳动' +
  25. 'arco-desi' +
  26. 'gn-pro-vue基础上修改的' +
  27. 'vue3版本,仅供学' +
  28. '习参考',
  29. },
  30. {
  31. uuid: '@uuid',
  32. svg:
  33. 'https://fastly.jsdelivr.net/gh/' +
  34. 'chuzh' +
  35. 'ixin/image' +
  36. '/logo/vab.svg',
  37. title: 'vue-admin-better',
  38. price: '免费',
  39. label: ['vue', 'element-ui', 'MIT协议'],
  40. company: 'vab',
  41. url: 'https://github.com/chuzhixin/vue-admin-better',
  42. description: '绝佳的开源、' + '企业级、' + '中后台前端框架',
  43. },
  44. {
  45. uuid: '@uuid',
  46. svg:
  47. 'https://fastly.jsdelivr.net/gh/' +
  48. 'chuzh' +
  49. 'ixin/image' +
  50. '/logo/vdb.svg',
  51. title: 'vue-datav-beautiful-pro',
  52. price: 'Admin Pro + Adm' + 'in Plus 1299版本赠品',
  53. label: ['数据大屏'],
  54. company: 'vdb',
  55. url: 'https://github.com/vue-' + 'datav-beautiful',
  56. description: '立志做' + '国内最好' + '的数据大屏应用',
  57. },
  58. {
  59. uuid: '@uuid',
  60. image:
  61. 'https://fastly.jsdelivr.net/gh/' +
  62. 'chuzh' +
  63. 'ixin/image' +
  64. '/goods/uview.gif',
  65. title: 'uview',
  66. price: '免费',
  67. label: ['uniapp', '跨平台', '组件'],
  68. company: '言信网络',
  69. url: 'http://uviewui.com',
  70. description:
  71. '跨 7 端移动端框架,全面的组件和便' + '捷的工具会让您信手拈来,如鱼得水',
  72. },
  73. {
  74. uuid: '@uuid',
  75. title: 'form-generator',
  76. icon: 'newspaper-line',
  77. price: '免费',
  78. label: ['element-ui', '表单设计器'],
  79. company: 'form-generator',
  80. url: 'https://mrhj.gitee.io/form-generator',
  81. description: 'Element UI表单设' + '计及代码生成器',
  82. },
  83. {
  84. uuid: '@uuid',
  85. title: 'OPSLI',
  86. image:
  87. 'https://fastly.jsdelivr.net/gh/' +
  88. 'chuzh' +
  89. 'ixin/image' +
  90. '/goods/OPSLI.png',
  91. price: '免费',
  92. label: ['spring-boot', 'vue-admin-better'],
  93. company: 'OPSLI',
  94. url: 'https://www.op' + 'sli.com',
  95. description: 'vue-admin-better开源' + '版结合spring boot的最佳实践',
  96. },
  97. {
  98. uuid: '@uuid',
  99. title: 'WangEditor',
  100. image: 'https://www.wangedi' + 'tor.com/image/logo.png',
  101. price: '免费',
  102. label: ['富文本编辑器'],
  103. company: 'WangEditor',
  104. url: 'https://www.wangeditor.com/v5/',
  105. description: '绝佳' + '的富文本' + '编辑器组件,感谢巨人',
  106. },
  107. ]
  108. module.exports = [
  109. {
  110. url: '/goods/getList',
  111. type: 'get',
  112. response(config) {
  113. const { title, pageNo = 1, pageSize = 20 } = config.query
  114. const mockList = List.filter(
  115. (item) => !(title && item.title.indexOf(title) < 0)
  116. )
  117. const list = mockList.filter(
  118. (item, index) =>
  119. index < pageSize * pageNo && index >= pageSize * (pageNo - 1)
  120. )
  121. return {
  122. code: 200,
  123. msg: 'success',
  124. data: { list, ...{ total: mockList.length } },
  125. }
  126. },
  127. },
  128. ]