index.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. import config from '@/core/config/index.js'
  2. /**
  3. * 页面静态列表
  4. */
  5. export const useStaticData = () => {
  6. const userServiceGrid = [{
  7. title: '我的订单',
  8. path: 'pages/order/index',
  9. img: config.getResource('my/my_release.png'),
  10. icon: 'order',
  11. isLogin: true,
  12. }, {
  13. title: '绑定信息',
  14. path: 'pages/user/bindInfo/index',
  15. img: config.getResource('my/my_enroll.png'),
  16. icon: 'edit-pen',
  17. isLogin: true,
  18. }]
  19. const userOtherGrid = [
  20. /* {
  21. title: '投诉建议',
  22. path: 'pages/user/feedback/index',
  23. img: config.getResource('my/complaint_suggestions.png'),
  24. isLogin: true,
  25. }, */
  26. {
  27. title: '客服',
  28. path: 'contact',
  29. img: config.getResource('my/customer_service.png'),
  30. isLogin: false,
  31. icon: 'kefu-ermai'
  32. },
  33. {
  34. title: '设置',
  35. path: 'pages/user/setting/index',
  36. img: config.getResource('my/privacy_protocol.png'),
  37. isLogin: false,
  38. icon: 'setting'
  39. },
  40. /* {
  41. title: '注销账号',
  42. path: 'pages/user/log_off/index',
  43. img: config.getResource('my/log_out.png'),
  44. isLogin: true,
  45. },
  46. {
  47. title: '退出登陆',
  48. path: 'log_out',
  49. img: config.getResource('my/log_out.png'),
  50. isLogin: true,
  51. },
  52. */
  53. ]
  54. // 协议列表
  55. const protocolList = [{
  56. title: '用户协议',
  57. path: 'pages/article/index',
  58. parmas: {
  59. code: 'agreement'
  60. },
  61. isLogin: false,
  62. },
  63. {
  64. title: '隐私协议',
  65. path: 'pages/article/index',
  66. parmas: {
  67. code: 'policy'
  68. },
  69. isLogin: false,
  70. },
  71. ]
  72. return {
  73. userServiceGrid,
  74. userOtherGrid,
  75. protocolList
  76. }
  77. }