soldProduct.js 888 B

123456789101112131415161718192021222324252627282930
  1. const soldProductList = [];
  2. const productType = ['COURSE', 'SUPPORT'];
  3. for (let i = 1; i < 500; i++) {
  4. soldProductList.push({
  5. uid: String(i),
  6. userCode: '198712190818' + i,
  7. userName: '湖南省-长沙市-天水区-安宁校区-教室' + i,
  8. campusId: String(i * 100),
  9. campusCode: '324589243945' + i,
  10. campusName: '湖南省-长沙市-天水区-安宁校区',
  11. orderId: 'order-id-' + i,
  12. goodsId: 'goods-id-' + i,
  13. pkgId: 'package-id-' + i,
  14. pid: String(i * 200),
  15. productType: productType[i % 2],
  16. productCode: 'product-code-' + i,
  17. productName: '小学一年级语文上册',
  18. merchantId: 'merchant-id-' + i,
  19. duration: 5878834,
  20. cpId: 'cp-id-' + i,
  21. cpPrice: 2000,
  22. merchantPrice: 3000,
  23. terminalPrice: 4000,
  24. chargeUnit: '年',
  25. quantity: 2,
  26. gmtCreated: 15789789893,
  27. })
  28. }
  29. module.exports = { soldProductList };