item.js 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. import { randomSelectOne, randomSelectN } from './utils';
  2. // mock ItemList
  3. let itemList= [];
  4. for (let i = 1; i < 400; i++) {
  5. itemList.push(
  6. {
  7. id: '525694229fb148afb3c10585964f9583' + i,
  8. subId: null,
  9. code: 'K-test-' + i,
  10. name: `音乐律动[sub]跟我一起做运动${i}`,
  11. digest: `简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介简介`,
  12. type: 'COURSE',
  13. status: 'SALE',
  14. cpId: 0,
  15. cpName: '鲨鱼公园',
  16. merchantId: 0,
  17. gmtCreated: 1512033359000,
  18. gmtModified: 1512033359000,
  19. tagList: [{
  20. id: 'da60114402734d2eb3ac6589ef25564d',
  21. code: 'T-test-301',
  22. name: '小学310',
  23. type: 'COURSE',
  24. merchantId: null,
  25. sort: null,
  26. status: 'NORMAL',
  27. gmtCreated: 1512032955000,
  28. gmtModified: 1512032955000,
  29. },{
  30. id: 'da60114402734d2eb3ac6589ef25564c',
  31. code: 'T-test-311',
  32. name: '小学310',
  33. type: 'COURSE',
  34. merchantId: null,
  35. sort: null,
  36. status: 'NORMAL',
  37. gmtCreated: 1511969532000,
  38. gmtModified: 1511969532000,
  39. }],
  40. priceList: [{
  41. id: 'ff808081600c2d6e01600c36171a0000',
  42. name: 'price-test-1',
  43. itemId: '525694229fb148afb3c10585964f9583',
  44. type: 'NORMAL',
  45. duration: 20,
  46. cpPrice: 1.0,
  47. merchantPrice: 2.0,
  48. terminalPrice: 4.0,
  49. status: null,
  50. gmtCreated: null,
  51. gmtModified: null,
  52. },{
  53. id:'ff808081600c2d6e01600c36171b0001',
  54. name:'test-1-month',
  55. itemId: '525694229fb148afb3c10585964f9583',
  56. type: 'NORMAL',
  57. duration: 20,
  58. cpPrice: 1.0,
  59. merchantPrice: 2.0,
  60. terminalPrice: 4.0,
  61. status: null,
  62. gmtCreated: null,
  63. gmtModified: null
  64. },{
  65. id: 'ff808081600c2d6e01600c36171e0003',
  66. name: 'test-1-month',
  67. itemId: '525694229fb148afb3c10585964f9583',
  68. type: 'NORMAL',
  69. duration: 30,
  70. cpPrice: 5.0,
  71. merchantPrice: 2.0,
  72. terminalPrice: 4.0,
  73. status: null,
  74. gmtCreated: null,
  75. gmtModified: null
  76. },{
  77. id: 'ff808081600c2d6e01600c36171d0002',
  78. name: 'test-1-month',
  79. itemId: '525694229fb148afb3c10585964f9583',
  80. type: 'NORMAL',
  81. duration: 100,
  82. cpPrice: 1.0,
  83. merchantPrice: 2.0,
  84. terminalPrice: 4.0,
  85. status: null,
  86. gmtCreated: null,
  87. gmtModified: null,
  88. }],
  89. }
  90. );
  91. }
  92. module.exports = {
  93. itemList,
  94. }