product.js 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. let productList = [];
  2. const statuses = ['NORMAL', 'DEL'];
  3. for (let i = 1; i < 300; i++) {
  4. productList.push({
  5. id: String(i),
  6. code: 'course-code-' + i,
  7. name: '小学语文二年级上册' + i,
  8. title: '小学语文二年级上册' + i,
  9. digest: '这段是课程描述,很长很长很长很长很长很长很长很长很长很长很长很长...',
  10. detail: '这段是课程详情,这门课程讲的是小学语文,有很多很多很多很多很多很多很多很多的故事...',
  11. keyword: null,
  12. coverUrl: 'http://efunimgs.oss-cn-beijing.aliyuncs.com/resources/J/02/01/612102.jpg',
  13. bgUrl: 'http://efunimgs.oss-cn-beijing.aliyuncs.com/resources/J/02/01/612102.jpg',
  14. type: 'COURSE',
  15. status: statuses[i % 2],
  16. subItemList: null,
  17. supportList: null,
  18. gmtCreated: 1512981450000,
  19. gmtModified: 1512981450000,
  20. })
  21. }
  22. for (let i = 300; i < 600; i++) {
  23. productList.push({
  24. id: String(i),
  25. code: 'support-code-' + i,
  26. name: '小学语文二年级上册练习册' + i,
  27. title: '小学语文二年级上册练习册' + i,
  28. digest: '这段是周边描述,很长很长很长很长很长很长很长很长很长很长很长很长...',
  29. detail: '这段是周边详情,这个周边是小学语文练习册,有很多很多很多很多很多很多很多很多的题目...',
  30. keyword: null,
  31. subItemList: null,
  32. supportList: null,
  33. type: 'SUPPORT',
  34. status: statuses[i % 2],
  35. gmtCreated: 1512981450000,
  36. gmtModified: 1512981450000,
  37. })
  38. }
  39. for (let i = 600; i < 1000; i++) {
  40. productList.push({
  41. id: String(i),
  42. code: 'package-code-' + i,
  43. name: '小学语文二年级课程包-' + i,
  44. title: '小学语文二年级课程包',
  45. digest: '小学二年级语文的全部课程,包括相关的联系册,文具,教具...',
  46. detail: '该课程包的详情描述,很长很长很长很长很长很长很长很长很长很长...',
  47. keyword: null,
  48. subItemList: null,
  49. supportList: null,
  50. type: 'PACKAGE',
  51. status: statuses[i % 2],
  52. gmtCreated: 15129876650000,
  53. gmtModified: 1512289450000,
  54. })
  55. }
  56. module.exports = { productList };