index.js 897 B

1234567891011121314151617181920212223242526272829303132333435
  1. import packages from './packages'
  2. import store from './store'
  3. import goods from './goods'
  4. import levelBenefits from './level-benefits'
  5. import member from './member'
  6. import rechargeCards from './rechargeCards'
  7. import addresses from './addresses'
  8. import attendance from './attendance'
  9. import customPoints from './custom-points'
  10. import pointsMall from './points-mall'
  11. import attendanceList from './attendance-list'
  12. import todayAttendance from './today-attendance'
  13. import orders from './orders'
  14. import customerCoupons from './customer-coupons'
  15. import giftCards from './gift-cards'
  16. const json = {
  17. packages,
  18. store,
  19. goods,
  20. levelBenefits,
  21. member,
  22. rechargeCards,
  23. addresses,
  24. attendance,
  25. customPoints,
  26. pointsMall,
  27. attendanceList,
  28. todayAttendance,
  29. orders,
  30. customerCoupons,
  31. giftCards
  32. }
  33. export default (name) => new Promise(resolve => resolve(json[name]), 500)