usercenter.js 872 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. const userInfo = {
  2. avatarUrl:
  3. 'https://we-retail-static-1300977798.cos.ap-guangzhou.myqcloud.com/retail-ui/components-exp/avatar/avatar-1.jpg',
  4. nickName: 'TDesign 🌟',
  5. phoneNumber: '13438358888',
  6. gender: 2,
  7. };
  8. const countsData = [
  9. {
  10. num: 2,
  11. name: '积分',
  12. type: 'point',
  13. },
  14. {
  15. num: 10,
  16. name: '优惠券',
  17. type: 'coupon',
  18. },
  19. ];
  20. const orderTagInfos = [
  21. {
  22. orderNum: 1,
  23. tabType: 5,
  24. },
  25. {
  26. orderNum: 1,
  27. tabType: 10,
  28. },
  29. {
  30. orderNum: 1,
  31. tabType: 40,
  32. },
  33. {
  34. orderNum: 0,
  35. tabType: 0,
  36. },
  37. ];
  38. const customerServiceInfo = {
  39. servicePhone: '4006336868',
  40. serviceTimeDuration: '每周三至周五 9:00-12:00 13:00-15:00',
  41. };
  42. export const genSimpleUserInfo = () => ({ ...userInfo });
  43. export const genUsercenter = () => ({
  44. userInfo,
  45. countsData,
  46. orderTagInfos,
  47. customerServiceInfo,
  48. });