config.js 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. const COLOR = [
  2. "#EE6A66", "#6BC588", "#FFC300", "#24ABFD"
  3. ];
  4. var ISCANVAS2D = true;
  5. switch (uni.getSystemInfoSync().platform) {
  6. case 'android':
  7. ISCANVAS2D = true
  8. break;
  9. case 'ios':
  10. ISCANVAS2D = true
  11. break;
  12. default:
  13. ISCANVAS2D = false
  14. break;
  15. }
  16. const RESPOND = {
  17. success: 0,
  18. warn: 301,
  19. error: 500,
  20. };
  21. const TIMEARRAY = [
  22. {
  23. text: '当天',
  24. value: 'today'
  25. },
  26. {
  27. text: '昨天',
  28. value: 'yesterday'
  29. },
  30. {
  31. text: '本周',
  32. value: 'week'
  33. },
  34. {
  35. text: '上周',
  36. value: 'weeklast'
  37. },
  38. {
  39. text: '本月',
  40. value: 'month'
  41. },
  42. {
  43. text: '上月',
  44. value: 'monthlast'
  45. },
  46. {
  47. text: '指定日期',
  48. value: 'auto'
  49. }
  50. ];
  51. const TABLIST = [
  52. {name:"企业微信",type:"WECHAT"},
  53. {name:"会员运营",type:"OPERATE"},
  54. {name:"会员健康",type:"GJJK"},
  55. {name:"会员服务",type:"SERVICE"},
  56. ];
  57. const CARD_MENU = [
  58. {title:"会员报表中心",author:"howcode",img:"https://s1.ax1x.com/2023/03/31/ppRp4iV.jpg",url:"/myPackageA/pages/main/index"},
  59. {title:"智慧教育报表中心",author:"howcode",img:"https://s1.ax1x.com/2023/03/31/ppRp5GT.jpg",url:"/myPackageA/pages/school/index"},
  60. {title:"差旅报表中心",author:"秋云",img:"https://s1.ax1x.com/2023/03/31/ppRpfI0.jpg",url:""},
  61. {title:"运动报表中心",author:"howcode",img:"https://s1.ax1x.com/2023/03/31/ppRpWaq.jpg",url:"/myPackageA/pages/sport/index"},
  62. {title:"财务报表中心",author:"howcode",img:"https://s1.ax1x.com/2023/03/31/ppRpozF.jpg",url:"/myPackageA/pages/finance/index"},
  63. ]
  64. export default {
  65. COLOR,
  66. TIMEARRAY,
  67. TABLIST,
  68. RESPOND,
  69. ISCANVAS2D,
  70. CARD_MENU
  71. }